gianmarco
/
dotfiles
Archived
1
0
Fork 0
This repository has been archived on 2024-02-08. You can view files and clone it, but cannot push or open issues/pull-requests.
dotfiles/.config/sxhkd/sxhkdrc

165 lines
3.1 KiB
Plaintext

#
# wm independent hotkeys
#
# Konsole
super + t
konsole
# program launcher
super + @space
rofi -show drun
# command launcher
alt + @space
rofi -show run
# LibreWolf
super + b
librewolf
# LibreWolf (private)
super + alt + b
librewolf --private-window
# Kate
super + k
kate
# Elisa
super + j
elisa
# Yakuake
super + y
yakuake
# KSysGuard
ctrl + {shift + Escape,alt + Delete}
ksysguard
# KCalc
super + c
kcalc
# Dolphin
super + e
dolphin
# Screenshot (Flameshot)
Print
flameshot gui
# Notification center
super + a
if [[ $(dunstctl count history) == "0" ]]; then play '/data/Altro/suoni talkback/uD.ogg'; fi; dunstctl history-pop
# Pause notifications
super + alt + a
dunstctl set-paused toggle; if [[ $(dunstctl is-paused) == "false" ]]; then play '/data/Altro/suoni talkback/b2.ogg'; fi
#
# other keys
#
# lock screen
super + l
play '/data/Download/OSMK Part 2 - Sounds/3 - Linux/KDE/KDE 3/Newer/KDE_Logout_2.ogg' & betterlockscreen -l && play '/data/Download/OSMK Part 2 - Sounds/3 - Linux/KDE/KDE 3/Newer/KDE_Logout_3.ogg'
# xkill
ctrl + alt + Escape
xkill
#
# media keys
#
# raise volume
XF86AudioRaiseVolume
pulseaudio-control --volume-max 100 up && play '/data/Creazioni/Dream Sounds/Harmony/Volume Change.wav'
# lower volume
XF86AudioLowerVolume
pulseaudio-control --volume-max 100 down && play '/data/Creazioni/Dream Sounds/Harmony/Volume Change.wav'
# mute volume
XF86AudioMute
pulseaudio-control togmute && play '/data/Creazioni/Dream Sounds/Harmony/Volume Change.wav'
# stop media
XF86AudioStop
playerctl stop
# play pause media
XF86AudioPlay
playerctl play-pause
# next media
XF86AudioNext
playerctl next
# previous media
XF86AudioPrev
playerctl previous
#
# bspwm hotkeys
#
# restart bspwm
super + alt + r
bspc wm -r && pkill -USR1 -x sxhkd
# close and kill
super + {_,shift + }q
bspc node -{c,k}
# alternate between the tiled and monocle layout
super + Tab
bspc desktop -l next
#
# focus/swap
#
# focus the next/previous desktop in the current monitor
super + alt + {Left,Right}
bspc desktop -f {prev,next}.local
# focus or send to the given desktop
super + {alt + ,shift + }{1-9,0}
bspc {desktop -f,node -d} '^{1-9,10}'
#
# move/resize
#
super + shift + {Left,Down,Up,Right}
bspc node -z {left -20 0 || bspc node -z right -20 0, \
bottom 0 20 || bspc node -z top 0 20, \
top 0 -20 || bspc node -z bottom 0 -20, \
right 20 0 || bspc node -z left 20 0, \}
# floating window
super + f
bspc node -t '~floating'
# fullscreen window
super + Up
bspc node -t '~fullscreen'
# sticky window
super + alt + space
bspc node -g sticky && play '/data/Altro/suoni talkback/wb.ogg'
# make window master
super + Return
bspc node -s biggest.local || play '/data/Altro/suoni talkback/uD.ogg'
# cycle windows
alt + {_,shift + }Tab
bspc node -f {next,prev}.local.!hidden.window
# send window to desktop and follow view
super + {Left,Right}
bspc node focused -d {prev,next} --follow