Update css/js + few configs

This commit is contained in:
2021-01-01 20:12:34 +01:00
parent 2cfa706a42
commit 85e9caebe4
95 changed files with 15754 additions and 16561 deletions

266
sxhkd.org
View File

@@ -1,28 +1,12 @@
#+TITLE: Simple X Hotkey Daemon
:DRAWER:
#+STARTUP: overview
#+LANGUAGE: en
#+EMAIL: dehaeze.thomas@gmail.com
#+AUTHOR: Dehaeze Thomas
#+HTML_LINK_HOME: ./index.html
#+HTML_LINK_UP: ./index.html
#+HTML_HEAD: <link rel="stylesheet" type="text/css" href="./css/htmlize.css"/>
#+HTML_HEAD: <link rel="stylesheet" type="text/css" href="./css/readtheorg.css"/>
#+HTML_HEAD: <script type="text/javascript" src="./js/jquery.min.js"></script>
#+HTML_HEAD: <script type="text/javascript" src="./js/bootstrap.min.js"></script>
#+HTML_HEAD: <script type="text/javascript" src="./js/jquery.stickytableheaders.min.js"></script>
#+HTML_HEAD: <script type="text/javascript" src="./js/readtheorg.js"></script>
#+SETUPFILE: ./setup/org-setup-file.org
#+PROPERTY: header-args :comments no
#+PROPERTY: header-args+ :mkdirp yes
#+PROPERTY: header-args+ :tangle ~/.config/sxhkd/sxhkdrc
:END:
* Basic
#+begin_src conf
# Kill Windows
super + ctrl + x
xkill
#+end_src
@@ -30,54 +14,117 @@
#+begin_src conf
# make sxhkd reload its configuration files:
super + Escape
pkill -USR1 -x sxhkd
pkill -usr1 -x sxhkd; notify-send 'sxhkd' 'Reloaded config'
# Update Polybar
super + r
$HOME/.config/polybar/scripts/launch.sh
super + shift + r
polybar-msg cmd restart
#+end_src
* Set shut down, restart and locking features
#+begin_src conf
# Exit Screen
XF86PowerOff
i3exit
# Exit Screen
super + 0
i3exit
#+end_src
* Start Applications
Change Keyboard Layout:
#+begin_src conf
# Start program launcher
# Change keyboard to US-International layout
super + ctrl + d
setxkbmap -layout us -variant intl -option caps:escape
# Change keyboard to US layout
super + shift + d
setxkbmap -layout us -option caps:escape
#+end_src
* Multimedia keys
** Sound
#+begin_src conf
# Mute/Unmute
XF86AudioMute
amixer -D pulse sset Master toggle
# Increase Volume
XF86AudioRaiseVolume
amixer -D pulse sset Master 2%+
# Decrease Volume
XF86AudioLowerVolume
amixer -D pulse sset Master 2%-
#+end_src
** Backlight
#+begin_src conf
# Increase Backlight
XF86MonBrightnessUp
xbacklight -inc 10
# Descrease Backlight
XF86MonBrightnessDown
xbacklight -dec 10
#+end_src
** Change Tracks
#+begin_src conf
# Play/Pause music
super + period
mpc toggle
# Previous/Next music
super + {greater,less}
mpc {next,prev}
#+end_src
#+begin_src conf
# Play/Pause music
XF86AudioPlay
mpc toggle
# Next music
XF86AudioNext
mpc next
# Previous music
XF86AudioPrev
mpc prev
#+end_src
** Print Screen
#+begin_src conf
# Screenshot script
Print
~/.local/bin/screenshot
# Switch Windows
XF86Display
rofi -show window
#+end_src
** Other
#+begin_src conf
# Run Command
XF86Search
rofi -show run
#+end_src
* =Super + key= - Start Applications
#+begin_src conf
# Switch Windows
super + w
rofi -show window
# program launcher
super + d
rofi -show run
# Launch categorized menu
# categorized menu
super + z
rofi -show drun
# Start network manager
super + w
$TERMINAL -e 'sudo nmtui'
# Start Sound Manager
super + shift + s
pavucontrol
# Start Bluetooth Manager
super + shift + b
blueman-manager
# Windows Switch
super + shift + w
rofi -show window
# Bookmarks
# super + shift + f
# $HOME/bin/bukurun
# Passwords
super + shift + p
rofi-pass
#+end_src
#+begin_src conf
@@ -85,14 +132,6 @@
super + Return
$TERMINAL
# Tmux Terminal
super + shift + Return
$TERMINAL -e 'tmux'
# Start Command line Calendar
super + shift + c
$TERMINAL -e "khal interactive"
# File Manager
super + o
$TERMINAL -e "tmux new-session -A -s ranger ranger"
@@ -100,59 +139,43 @@
# Browser
super + i
qutebrowser
# Mails with neomutt
super + m
$TERMINAL -e "tmux new-session -A -s neomutt neomutt"
# Emacs Client
super + e
emacsclient -create-frame --alternate-editor=""
#+end_src
* Multimedia keys
** Sound
* =Super + Shift= - Managing Applications
#+begin_src conf
XF86AudioMute
amixer -D pulse sset Master toggle
XF86AudioRaiseVolume
amixer -D pulse sset Master 2%+
XF86AudioLowerVolume
amixer -D pulse sset Master 2%-
#+end_src
# Network Manager
super + shift + w
$TERMINAL -e 'sudo nmtui'
** Backlight
#+begin_src conf
XF86MonBrightnessUp
xbacklight -inc 10
XF86MonBrightnessDown
xbacklight -dec 10
#+end_src
# Bluetooth Manager
super + shift + b
blueman-manager
** Change Tracks
#+begin_src conf
super + period
mpc toggle
super + {greater,less}
mpc {next,prev}
# Sound Manager
super + shift + s
pavucontrol
#+end_src
#+begin_src conf
XF86AudioPlay
mpc toggle
XF86AudioNext
mpc next
XF86AudioPrev
mpc prev
# Bookmarks
super + shift + f
bukurun
# Passwords
super + shift + p
rofi-pass
#+end_src
** Print Screen
#+begin_src conf
Print
~/.local/bin/screenshot
XF86Display
rofi -show window
#+end_src
* =Super + Space= - Command Mode
** Other
#+begin_src conf
XF86Search
rofi -show run
#+end_src
* Command Mode
#+begin_src conf
# Command line Calendar Client (khal)
super + space ; c
@@ -168,12 +191,13 @@ XF86Display
# Download with Aria2c
super + space ; d
$TERMINAL -e "tmux new-session -A -s aria2p aria2p"
$TERMINAL -e "tmux new-session -A -s aria2p aria2p --port 6800 --host http://dl.tdehaeze.xyz --secret $(pass dl.tdehaeze.xyz/tdehaeze | sed -n 1p)"
# Mails with neomutt
super + space ; m
$TERMINAL -e "tmux new-session -A -s neomutt neomutt"
# Run another instance of Neomutt in read-only mode
super + space ; shift + m
$TERMINAL -e "neomutt -R"
@@ -197,35 +221,19 @@ XF86Display
super + space ; i
$BROWSER;
# Start Terminal Application
# Start Torrent Managaer
super + space ; t
$TERMINAL -e "tremc"
# Alternative Browser
super + space ; shift + i
brave;
# Emacs
super + space ; e
emacs;
# Emacs Client
super + space ; shift + e
emacsclient -create-frame --alternate-editor=""
# Weather
super + space ; shift + w
weather;
#+end_src
* Change Keyboard Layout
#+begin_src conf
super + ctrl + d
setxkbmap -layout us -variant intl -option caps:escape
super + shift + d
setxkbmap -layout us -option caps:escape
#+end_src
* BSPWM related
:PROPERTIES:
:header-args:conf+: :tangle ~/.config/sxhkd/sxhkdrc.bspwm
@@ -350,15 +358,11 @@ super + ctrl + space
:header-args:conf+: :tangle ~/.config/sxhkd/sxhkdrc.i3
:END:
** Quit/Restart hotkeys
** Kill Window
#+begin_src conf
# quit/restart bspwm
super + alt + {q,r}
i3-msg {quit,restart}
# close and kill
super + {_,shift + }q
i3-msg {kill,kill}
super + q
i3-msg kill
#+end_src
** Set the window State
@@ -402,15 +406,19 @@ super + ctrl + space
super + {p,n}
i3-msg workspace {prev,next}
# focus the last Desktop
# Focus the last Desktop
super + b
i3-msg workspace back_and_forth
# focus or send to the given desktop
# Focus to the given desktop
super + {1-9}
i3-msg workspace '{1-9}'
# Send to the given desktop
super + ctrl + {1-9}
i3-msg move container to workspace '{1-9}'
# Focus and Send to the given desktop
super + shift + {1-9}
WP={1-9} && i3-msg move container to workspace $WP && i3-msg workspace $WP
#+end_src
@@ -418,9 +426,11 @@ super + ctrl + space
** Preselect
Preselect the direction
#+begin_src conf
# Set Horizontal Layout
super + ctrl + {h,l,Left,Right}
i3-msg split h
# Set Vertical Layout
super + ctrl + {j,k,Up,Down}
i3-msg split v
#+end_src
@@ -428,12 +438,16 @@ Preselect the direction
** Resize
Expand/Shrink a window
#+begin_src conf
# Horizontal Shrink
super + alt + h
i3-msg resize shrink width 10 px or 10 ppt
# Vertical Grow
super + alt + j
i3-msg resize grow height 10 px or 10 ppt
# Vertical Shrink
super + alt + k
i3-msg resize shrink height 10 px or 10 ppt
# Horizontal Grow
super + alt + l
i3-msg resize grow width 10 px or 10 ppt
#+end_src