From 8a559daf10cb7a2a0e4d6d9297b7af82baf450ff Mon Sep 17 00:00:00 2001 From: yutent Date: Mon, 10 Jul 2023 09:57:29 +0000 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4bspwm=E9=85=8D=E7=BD=AE?= =?UTF-8?q?=E5=92=8C=E7=83=AD=E9=94=AE=E7=BB=91=E5=AE=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- home/config/bspwm/bspwmrc | 33 ++++++++++++++++++++++++--------- home/config/sxhkd/sxhkdrc | 11 ++++++++++- 2 files changed, 34 insertions(+), 10 deletions(-) diff --git a/home/config/bspwm/bspwmrc b/home/config/bspwm/bspwmrc index 853238b..974803c 100644 --- a/home/config/bspwm/bspwmrc +++ b/home/config/bspwm/bspwmrc @@ -51,22 +51,38 @@ bspc config normal_border_color "$color_background" bspc config active_border_color "$color_background" bspc config presel_feedback_color "$color_background" +# 工作区跟随鼠标切换 +bspc config focus_follows_pointer true + +# monocle 布局关闭边框、边距 +bspc config borderless_monocle true +bspc config gapless_monocle true + + +# 工作区只有一个窗口时, 将工作区切为monocle布局 +bspc config single_monocle true + + + # 删除已有的规则 bspc rule -r *:* +# 默认所有的应用都浮动 +bspc rule -a *:* state=floating focus=on follow=on + # 终端默认设为浮动 -bspc rule -a Alacritty state=floating focus=on -bspc rule -a Xfce4-terminal state=floating focus=on +# bspc rule -a Alacritty state=floating focus=on follow=on +# bspc rule -a Xfce4-terminal state=floating focus=on follow=on # 一些软件, 也设为浮动 -for app_c in Thunar Code Sublime_text Google-chrome Inkscape Gnome-boxes \ - dingtalk_run Crossover TelegramDesktop -do - bspc rule -a "$app_c" state=floating focus=on -done +# for app_c in Thunar Code Sublime_text Google-chrome Inkscape Gnome-boxes \ +# dingtalk_run Crossover TelegramDesktop +# do +# bspc rule -a "$app_c" state=floating focus=on follow=on +# done -bspc rule -a *:* state=floating focus=on +# bspc rule -a Code state=tiled focus=on follow=on @@ -79,7 +95,6 @@ xsetroot -cursor_name left_ptr # 设置系统主题 xsettingsd & -# 认证agent if [[ ! "$(pidof xfce-polkit)" ]]; then xfce-polkit & fi diff --git a/home/config/sxhkd/sxhkdrc b/home/config/sxhkd/sxhkdrc index 481787a..df209b6 100644 --- a/home/config/sxhkd/sxhkdrc +++ b/home/config/sxhkd/sxhkdrc @@ -63,6 +63,9 @@ ctrl + alt + q shift + super + space bspc node -t "~"{floating,tiled} +shift + super + backslash + bspc desktop -l {monocle,tiled} + # --------------- end -------------------- @@ -77,9 +80,15 @@ ctrl + alt + t ctrl + alt + a flameshot gui +Print + flameshot screen + ctrl + alt + shift + a flameshot gui -d 2000 +shift + Print + flameshot screen -d 2000 + # --------------- end -------------------- @@ -110,7 +119,7 @@ ctrl + alt + shift + {Left, Right} # 水平方向增加/减小窗口尺寸 super + {minus,equal} - bspc node -z {left -20 0,left 20 0} + bspc node -z {left 20 0,left -20 0} # 竖直方向增加/减小窗口尺寸 super + shift + {minus,equal}