更新bswpm配置
parent
896d53a0ff
commit
88e1d2f26a
|
@ -1,19 +1,33 @@
|
|||
#!/bin/bash
|
||||
|
||||
# 颜色定义, 同alacritty主题
|
||||
color_black='#323F4D'
|
||||
color_red='#F33E22'
|
||||
color_green='#19BC9C'
|
||||
color_yellow='#F5BD07'
|
||||
color_blue='#62aeef'
|
||||
color_magenta='#9595D0'
|
||||
color_cyan='#05979A'
|
||||
color_white='#CED6E0'
|
||||
# 颜色定义, 同系统主题
|
||||
color_background='#475569'
|
||||
color_foreground='#d8dee9'
|
||||
color_altbackground='#39404f'
|
||||
color_altforeground='#768bb2'
|
||||
color_accent='#81a1c1'
|
||||
color_black='#3b4252'
|
||||
color_red='#bf616a'
|
||||
color_green='#a3be8c'
|
||||
color_yellow='#ebcb8b'
|
||||
color_blue='#81a1c1'
|
||||
color_magenta='#b48ead'
|
||||
color_cyan='#88c0d0'
|
||||
color_white='#e5e9f0'
|
||||
color_altblack='#4c566a'
|
||||
color_altred='#bf616a'
|
||||
color_altgreen='#a3be8c'
|
||||
color_altyellow='#ebcb8b'
|
||||
color_altblue='#81a1c1'
|
||||
color_altmagenta='#b48ead'
|
||||
color_altcyan='#8fbcbb'
|
||||
color_altwhite='#eceff4'
|
||||
|
||||
|
||||
# 干掉已经运行的进程
|
||||
killall -9 sxhkd picom
|
||||
|
||||
bspc monitor -d I II III IV
|
||||
|
||||
# bspwm 基础配置
|
||||
bspc config border_width 2
|
||||
|
@ -21,9 +35,9 @@ bspc config window_gap 8
|
|||
bspc config split_ratio 0.52
|
||||
|
||||
bspc config focused_border_color "$color_blue"
|
||||
bspc config normal_border_color "$color_blue"
|
||||
bspc config active_border_color "$color_blue"
|
||||
bspc config presel_feedback_color "$color_blue"
|
||||
bspc config normal_border_color "$color_background"
|
||||
bspc config active_border_color "$color_background"
|
||||
bspc config presel_feedback_color "$color_background"
|
||||
|
||||
|
||||
# 删除已有的规则
|
||||
|
@ -34,7 +48,8 @@ bspc rule -a Alacritty state=floating focus=on
|
|||
bspc rule -a Xfce4-terminal state=floating focus=on
|
||||
|
||||
# 一些软件, 也设为浮动
|
||||
for app_c in Thunar Code Sublime_text Google-chrome Inkscape Gnome-boxes
|
||||
for app_c in Thunar Code Sublime_text Google-chrome Inkscape Gnome-boxes \
|
||||
dingtalk_run Crossover
|
||||
do
|
||||
bspc rule -a "$app_c" state=floating focus=on
|
||||
done
|
||||
|
@ -52,4 +67,5 @@ sxhkd &
|
|||
|
||||
~/.local/bin/scripts/polybar.sh
|
||||
|
||||
|
||||
picom -b --experimental-backends
|
||||
|
|
|
@ -1,4 +1,97 @@
|
|||
# 键盘绑定
|
||||
|
||||
super + Return
|
||||
# ---------------- 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/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}
|
||||
|
||||
# --------------- end --------------------
|
||||
|
||||
|
||||
|
||||
# ------------ 一些应用的快捷键 -------------
|
||||
|
||||
# 启动终端
|
||||
ctrl + alt + t
|
||||
alacritty
|
||||
|
||||
# 截屏和延时截屏
|
||||
ctrl + alt + a
|
||||
flameshot gui
|
||||
|
||||
ctrl + alt + shift + a
|
||||
flameshot gui -d 2000
|
||||
|
||||
# --------------- end --------------------
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
# ------------ 桌面和工作区 -------------
|
||||
|
||||
# 工作区切换
|
||||
ctrl + {_,shift + }Tab
|
||||
bspc desktop -f {next.local, prev.local}
|
||||
|
||||
# 直接定位到 工作区1
|
||||
ctrl + 1
|
||||
bspc desktop -f '^1' --follow
|
||||
|
||||
# --------------- end --------------------
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue