54 lines
978 B
Bash
54 lines
978 B
Bash
#!/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'
|
|
|
|
|
|
# 干掉已经运行的进程
|
|
killall -9 sxhkd bspc
|
|
|
|
|
|
# bspwm 基础配置
|
|
bspc config border_width 2
|
|
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 rule -r *:*
|
|
|
|
# 终端默认设为浮动
|
|
bspc rule -a Alacritty follow=on focus=on
|
|
bspc rule -a Xfce4-terminal follow=on focus=on
|
|
|
|
# 一些软件, 也设为浮动
|
|
for app_c in Thunar Code Sublime_text Google-chrome Inkscape do
|
|
bspc rule -a $app_c follow=on focus=on
|
|
done
|
|
|
|
|
|
|
|
|
|
|
|
# 设置壁纸
|
|
feh --bg-fill ~/.local/share/debian.png
|
|
|
|
|
|
|
|
sxhkd &
|
|
|
|
~/.local/bin/scripts/polybar.sh
|
|
|