2023-07-07 10:28:48 +08:00
|
|
|
#!/bin/bash
|
|
|
|
|
2023-07-08 22:54:30 +08:00
|
|
|
# 颜色定义, 同系统主题
|
|
|
|
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'
|
2023-07-07 10:28:48 +08:00
|
|
|
|
|
|
|
|
|
|
|
# 干掉已经运行的进程
|
2023-07-08 22:54:30 +08:00
|
|
|
killall -9 sxhkd picom
|
2023-07-07 10:28:48 +08:00
|
|
|
|
2023-07-08 22:54:30 +08:00
|
|
|
bspc monitor -d I II III IV
|
2023-07-07 10:28:48 +08:00
|
|
|
|
|
|
|
# bspwm 基础配置
|
|
|
|
bspc config border_width 2
|
|
|
|
bspc config window_gap 8
|
|
|
|
bspc config split_ratio 0.52
|
|
|
|
|
|
|
|
bspc config focused_border_color "$color_blue"
|
2023-07-08 22:54:30 +08:00
|
|
|
bspc config normal_border_color "$color_background"
|
|
|
|
bspc config active_border_color "$color_background"
|
|
|
|
bspc config presel_feedback_color "$color_background"
|
2023-07-07 10:28:48 +08:00
|
|
|
|
|
|
|
|
|
|
|
# 删除已有的规则
|
|
|
|
bspc rule -r *:*
|
|
|
|
|
|
|
|
# 终端默认设为浮动
|
2023-07-08 17:32:08 +08:00
|
|
|
bspc rule -a Alacritty state=floating focus=on
|
|
|
|
bspc rule -a Xfce4-terminal state=floating focus=on
|
2023-07-07 10:28:48 +08:00
|
|
|
|
|
|
|
# 一些软件, 也设为浮动
|
2023-07-08 22:54:30 +08:00
|
|
|
for app_c in Thunar Code Sublime_text Google-chrome Inkscape Gnome-boxes \
|
|
|
|
dingtalk_run Crossover
|
2023-07-08 17:32:08 +08:00
|
|
|
do
|
|
|
|
bspc rule -a "$app_c" state=floating focus=on
|
2023-07-07 10:28:48 +08:00
|
|
|
done
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# 设置壁纸
|
|
|
|
feh --bg-fill ~/.local/share/debian.png
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
sxhkd &
|
|
|
|
|
|
|
|
~/.local/bin/scripts/polybar.sh
|
|
|
|
|
2023-07-08 22:54:30 +08:00
|
|
|
|
2023-07-08 17:32:08 +08:00
|
|
|
picom -b --experimental-backends
|