-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbspwmrc
executable file
·150 lines (113 loc) · 4.72 KB
/
bspwmrc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
#!/bin/bash
# {{{ Simple run function.
run() { if ! pgrep -f "$1"; then "$@" & fi }
# -------------------------------------------------------------------------- }}}
# {{{ Start Super X Hot Key Deamon (sxhkd) and mouse settings first.
"$HOME"/.config/sxhkd/launch.sh
run numlockx off
# if [[ ! $(xrandr | rg -e ' connected' | rg -c) ]]
run setxkbmap -option caps:swapescape
# fi
run xmodmap -e "pointer = 3 2 1 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20"
# -------------------------------------------------------------------------- }}}
# {{{ Configure physical displays.
# Desktops
if [[ $HOSTNAME =~ "DarkKnight" ||
$HOSTNAME =~ "Monk" ||
$HOSTNAME =~ "Warrior" ]] \
; then
# Three 27" monitors
xrandr \
--output DisplayPort-0 --mode 2560x1440 --pos 0x0 --rotate normal \
--output DisplayPort-1 --mode 2560x1440 --pos 2560x0 --rotate normal \
--output DisplayPort-2 --mode 2560x1440 --pos 5120x0 --rotate normal
bspc monitor DisplayPort-0 -d 1 2 3 4
bspc monitor DisplayPort-1 -d 5 6 7
bspc monitor DisplayPort-2 -d 8 9 10
# One 27" Monitor and One 70" Display
# xrandr \
# --output DP-1 --mode 2560x1440 --pos 0x0 --rotate normal --primary \
# --output HDMI-1 --mode 4096x2160 --pos 0x0 --rotate normal --above DP-1
# bspc monitor DP-1 -d 6 7 8 9 10
# bspc monitor HDMI-1 -d 1 2 3 4 5
# # One 27" Monitor
# xrandr \
# --output DP-1 --mode 2560x1440 --pos 0x0 --rotate normal --primary
# bspc monitor DP-1 -d 1 2 3 4 5 6 7 8 9 10
bspc rule -a Scratchpad state=floating rectangle=1200x800+680+300
# bspc rule -a okular state=floating rectangle=1278x1440+6400+33
# Virutal machines.
# elif [[ $(xrandr | rg -e ' connected' | rg -c) ]]
# bspc monitor -d 1 2 3 4 5 6 7 8 9 10
# xrandr \
# --output Virtual1 --mode 2560x1600 --pos 0x0
else
bspc monitor -d 1 2 3 4 5 6 7 8 9 10
bspc rule -a Scratchpad state=floating rectangle=1200x800+340+150
# bspc rule -a okular state=floating rectangle=958x1044+958+33
fi
# -------------------------------------------------------------------------- }}}
# {{{ Simple wallpaper.
run feh --bg-scale "$HOME"/.config/wallpaper/*
# -------------------------------------------------------------------------- }}}
# {{{ Polybar, Picom, dunst, and volumicon
"$HOME"/.config/polybar/launch.sh
"$HOME"/.config/picom/launch.sh
"$HOME"/.config/dunst/launch.sh
"$HOME"/.config/volumeicon/launch.sh
# -------------------------------------------------------------------------- }}}
# {{{ Extra programs to launch.
run /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1
run dex "$HOME"/.config/autostart/arcolinux-welcome-app.desktop
run blueberry-tray
run nm-applet
run pamac-tray
run xfce4-power-manager
# 2022.02.22 - Disable conky. See if you miss it.
# run conky -c "$HOME"/.config/bspwm/system-overview
# -------------------------------------------------------------------------- }}}
# {{{ BSPWM configuration
bspc config border_width 1
bspc config borderless_monocle false
bspc config bottom_padding 1
bspc config focus_follows_pointer true
bspc config gapless_monocle true
bspc config left_padding 0
bspc config merge_overlapping_monitors true
bspc config pointer_action1 move
bspc config pointer_action2 resize_side
bspc config pointer_action3 resize_corner
bspc config pointer_modifier mod4
bspc config remove_disabled_monitors true
bspc config right_padding 0
bspc config single_monocle true
bspc config split_ratio 0.50
bspc config top_padding 33
bspc config window_gap 0
# -------------------------------------------------------------------------- }}}
# {{{ BSPWM coloring
bspc config active_border_color "#4682B4"
bspc config focused_border_color "#5e81ac"
bspc config presel_feedback_color "#5e81ac"
# -------------------------------------------------------------------------- }}}
# {{{ Window state and flag rules
bspc rule -a arandr state=floating
bspc rule -a Arcolinux-tweak-tool.py state=floating
bspc rule -a Arcolinux-welcome-app.py state=floating
bspc rule -a Zathura state=tiled
bspc rule -a pamac-manager state=floating flag=sticky
bspc rule -a xfce4-appfinder state=floating flag=sticky
bspc rule -a xfce4-settings-manager state=floating flag=sticky
# -------------------------------------------------------------------------- }}}
# {{{ open applications on specific workspaces
bspc rule -a HEY desktop='^2'
bspc rule -a "ONLYOFFICE Desktop Editors" desktop='^3'
bspc rule -a obs desktop='^4'
bspc rule -a Shotcut desktop='^6'
bspc rule -a "Microsoft Teams - Preview" desktop='^8'
bspc rule -a discord desktop='^9'
bspc rule -a Slack desktop='^9'
bspc rule -a dbeaver desktop='^0'
bspc rule -a xfce4-appfinder desktop='^0' state=floating
bspc rule -a xfce4-settings-manager desktop='^0'
# -------------------------------------------------------------------------- }}}