225 lines
4.2 KiB
Plaintext
225 lines
4.2 KiB
Plaintext
#
|
|
# wm independent hotkeys
|
|
#
|
|
|
|
# Alacritty
|
|
super + t
|
|
alacritty
|
|
|
|
# Konsole
|
|
super + alt + t
|
|
konsole
|
|
|
|
# program launcher
|
|
super + @space
|
|
rofi -show drun
|
|
|
|
# command launcher
|
|
alt + @space
|
|
rofi -show run
|
|
|
|
# rofi calculator
|
|
super + alt + c
|
|
rofi -show calc -modi calc -no-show-match -no-sort
|
|
|
|
# rofimoji
|
|
super + period
|
|
rofimoji
|
|
|
|
# LibreWolf
|
|
super + b
|
|
librewolf
|
|
|
|
# LibreWolf (private)
|
|
super + alt + b
|
|
librewolf --private-window
|
|
|
|
# Chromium
|
|
super + shift + b
|
|
chromium
|
|
|
|
# Chromium (incognito)
|
|
super + shift + alt + b
|
|
chromium --incognito
|
|
|
|
# Kate
|
|
super + k
|
|
kate
|
|
|
|
# Clementine
|
|
super + j
|
|
clementine
|
|
|
|
# drop down Alacritty
|
|
super + y
|
|
~/Scripts/bspdropterm.sh --toggle
|
|
|
|
# KSysGuard
|
|
ctrl + {shift + Escape,alt + Delete}
|
|
ksysguard
|
|
|
|
# KCalc
|
|
super + c
|
|
kcalc
|
|
|
|
# Dolphin
|
|
super + e
|
|
dolphin
|
|
|
|
# KMail
|
|
super + m
|
|
kmail
|
|
|
|
# KAddressBook
|
|
super + alt + m
|
|
kaddressbook
|
|
|
|
# ARandr
|
|
super + p
|
|
arandr
|
|
|
|
# QOwnNotes
|
|
super + n
|
|
QOwnNotes
|
|
|
|
# Screenshot (Flameshot)
|
|
Print
|
|
flameshot gui
|
|
|
|
# Screenshot window (maim)
|
|
super + Print
|
|
maim -i $(xdotool getactivewindow) | xclip -selection clipboard -t image/png && dunstify -i monitor -u low "Catturata finestra attuale negli appunti" -a Screenshot & if [[ $(dunstctl is-paused) == "false" ]]; then play '~/Sounds/shutter.ogg'; fi
|
|
|
|
# Screenshot selection or window (maim)
|
|
alt + Print
|
|
maim -su | xclip -selection clipboard -t image/png && dunstify -i monitor -u low "Catturata selezione negli appunti" -a Screenshot & if [[ $(dunstctl is-paused) == "false" ]]; then play '~/Sounds/shutter.ogg'; fi
|
|
|
|
# Screenshot screen (maim)
|
|
shift + Print
|
|
maim | xclip -selection clipboard -t image/png && dunstify -i monitor -u low "Catturato schermo negli appunti" -a Screenshot & if [[ $(dunstctl is-paused) == "false" ]]; then play '~/Sounds/shutter.ogg'; fi
|
|
|
|
# Notification center
|
|
super + a
|
|
if [[ $(dunstctl count history) == "0" ]]; then play '~/Sounds/ding.ogg'; fi; dunstctl history-pop
|
|
|
|
# Pause notifications
|
|
super + alt + a
|
|
dunstctl set-paused toggle; if [[ $(dunstctl is-paused) == "false" ]]; then play '~/Sounds/unmute.ogg'; fi
|
|
|
|
#
|
|
# other keys
|
|
#
|
|
|
|
# lock screen
|
|
super + l
|
|
play '~/Sounds/lock.ogg' & betterlockscreen -l && play '~/Sounds/unlock.ogg'
|
|
|
|
# xkill
|
|
ctrl + alt + Escape
|
|
xkill
|
|
|
|
# eject disc drive
|
|
super + F12
|
|
eject -T
|
|
|
|
XF86Eject
|
|
eject -T
|
|
|
|
#
|
|
# media keys
|
|
#
|
|
|
|
# raise volume
|
|
XF86AudioRaiseVolume
|
|
pulseaudio-control --volume-max 100 up && ~/Scripts/volume.sh up
|
|
|
|
# lower volume
|
|
XF86AudioLowerVolume
|
|
pulseaudio-control --volume-max 100 down && ~/Scripts/volume.sh down
|
|
|
|
# mute volume
|
|
XF86AudioMute
|
|
pulseaudio-control togmute && ~/Scripts/volume.sh mute
|
|
|
|
# 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
|
|
|
|
# minimize window
|
|
super + Down
|
|
wmctrl -ir $(xdotool getactivewindow) -b toggle,hidden
|
|
|
|
#
|
|
# 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 '~/Sounds/sticky.ogg'
|
|
|
|
# make window master
|
|
super + Return
|
|
bspc node -s biggest.local || play '~/Sounds/ding.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
|