127 lines
2.2 KiB
Plaintext
127 lines
2.2 KiB
Plaintext
# ========================================================= #
|
|
# #
|
|
# 键盘/鼠标绑定, 键名可执行 `xev -event keyboard` 获取 #
|
|
# #
|
|
# ========================================================= #
|
|
|
|
|
|
|
|
# ---------------- wm自身 ------------------
|
|
# 重启bspwm
|
|
super + shift + r
|
|
bspc wm -r
|
|
|
|
# 重新加载热键绑定
|
|
super + Escape
|
|
pkill -USR1 -x sxhkd
|
|
|
|
# --------------- end --------------------
|
|
|
|
|
|
|
|
|
|
|
|
# ---------------- rofi 相关 ----------------
|
|
|
|
# 启动器
|
|
super + d
|
|
rofi -show drun -theme launcher
|
|
|
|
# 工作区中的窗口
|
|
alt + Tab
|
|
rofi -show windowcd -theme launcher
|
|
|
|
# ssh书签
|
|
super + shift + k
|
|
rofi -show ssh -theme launcher
|
|
|
|
# 电源快捷键
|
|
ctrl + alt + shift + Escape
|
|
~/.local/bin/scripts/rofi_powermenu.sh
|
|
|
|
# --------------- end --------------------
|
|
|
|
|
|
|
|
|
|
|
|
# ---------------- 系统 相关 ----------------
|
|
|
|
# 关闭窗口
|
|
super + q
|
|
bspc node -c
|
|
|
|
# 全屏
|
|
F11
|
|
bspc node -t "~"fullscreen
|
|
|
|
# 锁屏
|
|
ctrl + alt + q
|
|
~/.local/bin/scripts/xlock.sh --lock
|
|
|
|
# 将窗口在浮动和平铺中切换
|
|
shift + super + space
|
|
bspc node -t "~"{floating,tiled}
|
|
|
|
shift + super + backslash
|
|
bspc desktop -l {monocle,tiled}
|
|
|
|
# --------------- end --------------------
|
|
|
|
|
|
|
|
# ------------ 一些应用的快捷键 -------------
|
|
|
|
# 启动终端
|
|
ctrl + alt + t
|
|
alacritty
|
|
|
|
# 截屏和延时截屏
|
|
ctrl + alt + a
|
|
flameshot gui
|
|
|
|
Print
|
|
flameshot screen
|
|
|
|
ctrl + alt + shift + a
|
|
flameshot gui -d 2000
|
|
|
|
shift + Print
|
|
flameshot screen -d 2000
|
|
|
|
# --------------- end --------------------
|
|
|
|
|
|
|
|
|
|
|
|
# ------------ 桌面和工作区 -------------
|
|
|
|
# 工作区切换
|
|
ctrl + {_,shift + }Tab
|
|
bspc desktop -f {next.local, prev.local}
|
|
|
|
# 直接定位到 工作区1
|
|
ctrl + 1
|
|
bspc desktop -f '^1' --follow
|
|
|
|
# 将当前窗口移动到上一个/下一个工作区
|
|
ctrl + alt + shift + {Left, Right}
|
|
bspc node -d {prev.local, next.local} --follow
|
|
|
|
# --------------- end --------------------
|
|
|
|
|
|
|
|
|
|
|
|
# --------------- 其他 --------------------
|
|
|
|
# 水平方向增加/减小窗口尺寸
|
|
super + {minus,equal}
|
|
bspc node -z {left 20 0,left -20 0}
|
|
|
|
# 竖直方向增加/减小窗口尺寸
|
|
super + shift + {minus,equal}
|
|
bspc node -z {top 0 20,top 0 -20}
|