5.5 KiB
5.5 KiB
Simple X Hotkey Daemon
- Basic
- Multimedia keys
Super + key- Start ApplicationsSuper + Shift- Managing ApplicationsSuper + Space- Command Mode- I3 related
Basic
# Kill Windows
super + ctrl + x
xkill
# make sxhkd reload its configuration files:
super + Escape
pkill -usr1 -x sxhkd; notify-send 'sxhkd' 'Reloaded config'
# Update Polybar
super + shift + r
polybar-msg cmd restart
# Exit Screen
XF86PowerOff
i3exit
# Exit Screen
super + 0
i3exit
Change Keyboard Layout:
# 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
Notifications:
alt + space
dunstctl close
alt + BackSpace
dunstctl history-pop
Multimedia keys
Sound
# Mute/Unmute
XF86AudioMute
pactl set-sink-mute @DEFAULT_SINK@ toggle
# Increase Volume
XF86AudioRaiseVolume
pactl -- set-sink-volume 0 +2%
# Decrease Volume
XF86AudioLowerVolume
pactl -- set-sink-volume 0 -2%
Backlight
# Increase Backlight
XF86MonBrightnessUp
light -A 10
# Descrease Backlight
XF86MonBrightnessDown
light -U 10
Change Tracks
# Play/Pause music
super + period
playerctl --player=jellyfin-tui play-pause
# Previous/Next music
super + {greater,less}
playerctl --player=jellyfin-tui {next,previous}
Print Screen
# Screenshot script
Print
~/.local/bin/screenshot
# Switch Windows
XF86Display
rofi -show window
Other
# Run Command
XF86Search
rofi -show run
Super + key - Start Applications
# Switch Windows
super + w
rofi -show window
# program launcher
super + d
rofi -show run
# categorized menu
super + z
rofi -show drun
# Start Terminal
super + Return
$TERMINAL
# Start Terminal (floating)
super + shift + Return
$TERMINAL --class floating
# File Manager
super + o
$TERMINAL -e tmux new-session -A -s yazi yazi
# Unicode Insert
super + u
insert-unicode
# Browser
super + i
qutebrowser
# Mails with neomutt
super + m
$TERMINAL -e tmux new-session -A -s neomutt neomutt
# Emacs Client
super + shift + e
emacs
super + e
emacsclient -create-frame --alternate-editor=""
Super + Shift - Managing Applications
# Bluetooth Manager
super + shift + b
blueman-manager
# Calculator
super + shift + c
rofi -show calc -modi calc -no-show-match -no-sort -calc-command "echo -n '\{result\}' | xclip -selection clipboard"
# Sound Manager
super + shift + s
pwvucontrol
# Passwords
super + shift + p
rofi-pass
# Fill ESRF password
super + shift + f
xdotool key $(pass esrf.fr/dehaeze | head -n 1 | sed 's/./& /g' | sed 's/}/braceright/g')
Super + Space - Command Mode
# Command line Calendar Client (khal)
super + space ; c
$TERMINAL --title khal -e ikhal
# pcmanfm: GUI file manager
super + space ; o
pcmanfm;
# Run another instance of Neomutt in read-only mode
super + space ; m
$TERMINAL -e neomutt -R
# Matrix Client
super + space ; w
$TERMINAL -e tmux new-session -A -s gomuks gomuks
# Music with ncmpcpp
super + space ; p
$TERMINAL --class jellyfin-tui -e tmux new-session -A -s jellyfin jellyfin-tui
# TODO Torrent Client with stig
super + space ; t
$TERMINAL -e tmux new-session -A -s stig stig
I3 related
Kill Window
# close and kill
super + q
i3-msg kill
Set the window State
# Set the window to full-screen
super + f
i3-msg fullscreen toggle
# Set the window to floating
super + s
i3-msg floating toggle
# Alternate between the tiled and normal layout
super + t
i3-msg layout toggle tabbed split
# Change focus between tiling / floating windows
super + c
i3-msg focus mode_toggle
# Sticky window
super + y
i3-msg sticky toggle
focus/swap
# Focus/swap the node in the given direction
super + {_,shift + }{h,Left}
i3-msg {focus,move} left
super + {_,shift + }{j,Down}
i3-msg {focus,move} down
super + {_,shift + }{k,Up}
i3-msg {focus,move} up
super + {_,shift + }{l,Right}
i3-msg {focus,move} right
# Focus the next/previous desktop in the current monitor
super + {p,n}
i3-msg workspace {prev,next}
# Focus the last Desktop
super + b
i3-msg workspace back_and_forth
# 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
Preselect
Preselect the direction
# 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
Resize
Expand/Shrink a window
# 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