mirror of
https://codeberg.org/andyscott/dotfiles.git
synced 2024-11-13 15:50:50 -05:00
90 lines
3 KiB
Bash
90 lines
3 KiB
Bash
#!/bin/bash
|
|
{{ if ne .chezmoi.hostname "hydrus" }}
|
|
bspc monitor eDP-1 -d 1 2 3 4 5 6 7 8 9 10
|
|
{{ else }}
|
|
bspc monitor DP-0 -d 1 2 3 4 5
|
|
bspc monitor DVI-I-1 -d 6 7 8 9 10
|
|
{{ end }}
|
|
bspc config border_width 2
|
|
{{- if eq .chezmoi.hostname "helix" }}
|
|
bspc config window_gap 10
|
|
bspc config top_padding 70
|
|
bspc config bottom_padding 0
|
|
{{ else if eq .chezmoi.hostname "hydrus"}}
|
|
bspc config window_gap 5
|
|
bspc config top_padding 0
|
|
bspc config bottom_padding 32
|
|
{{ else }}
|
|
bspc config window_gap 5
|
|
bspc config top_padding 38
|
|
bspc config bottom_padding 0
|
|
{{- end}}
|
|
|
|
bspc config split_ratio 0.50
|
|
bspc config borderless_monocle true
|
|
bspc config gapless_monocle true
|
|
|
|
bspc rule -a Galculator state=floating
|
|
bspc rule -a vlc state=floating
|
|
bspc rule -a Blueman-manager state=floating
|
|
bspc rule -a Blueberry.py state=floating
|
|
bspc rule -a Bitwarden state=floating
|
|
bspc rule -a Leafpad state=floating
|
|
bspc rule -a KeePassXC state=floating
|
|
bspc rule -a Mousepad state=floating
|
|
|
|
bspc rule -a firefox desktop='^1' follow=on
|
|
bspc rule -a firefoxdeveloperedition desktop='^1' follow=on
|
|
bspc rule -a Chromium desktop='^2' follow=on
|
|
bspc rule -a Vivaldi-stable desktop='^2' follow=on
|
|
bspc rule -a Evince desktop='4' follow=on
|
|
bspc rule -a Soffice desktop='^4' follow=on
|
|
bspc rule -a Simple-scan='^4' follow=on
|
|
bspc rule -a Xsane desktop='^4' follow=on state=floating
|
|
bspc rule -a Alacritty desktop='^6' follow=on
|
|
bspc rule -a kitty desktop='^6' follow=on
|
|
bspc rule -a URxvt desktop='^6' follow=on
|
|
bspc rule -a URxvt:Ranger desktop='^3' follow=on
|
|
bspc rule -a Thunar desktop='3' follow=on
|
|
bspc rule -a Steam desktop='^5' follow=on state=floating
|
|
bspc rule -a Lutris desktop='^5' follow=on state=floating
|
|
bspc rule -a origin.exe desktop='^5' state=floating
|
|
bspc rule -a Emacs desktop='^7' follow=on state=fullscreen
|
|
bspc rule -a Dino desktop='^8'
|
|
bspc rule -a Gajim desktop='^8'
|
|
bspc rule -a discord desktop='^8'
|
|
bspc rule -a Element desktop='^9'
|
|
bspc rule -a Mattermost desktop='^9'
|
|
bspc rule -a Slack desktop='^9'
|
|
bspc rule -a teams-for-linux desktop='^9'
|
|
bspc rule -a thunderbird desktop='^10'
|
|
bspc rule -a tutanota-desktop desktop='^10'
|
|
|
|
### Focus on 1st workspace by default
|
|
bspc desktop -f 1
|
|
|
|
### Autostart
|
|
grep -x sxhkd > /dev/null || sxhkd &
|
|
/usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1 &
|
|
xss-lock -n /usr/lib/xsecurelock/dimmer -l -- xsecurelock &
|
|
xsettingsd &
|
|
{{- if eq .chezmoi.hostname "helix" }}
|
|
$HOME/.local/bin/pipewire-launcher &
|
|
{{- end }}
|
|
{{- if (or (eq .chezmoi.hostname "helix") (eq .chezmoi.hostname "triangulum")) }}
|
|
$HOME/.local/bin/xidlehook-laptop &
|
|
cbatticon -u 20 -i standard -c "loginctl suspend" &
|
|
$HOME/.local/bin/tint2-launcher &
|
|
{{- end }}
|
|
{{- if eq .chezmoi.hostname "hydrus"}}
|
|
xidlehook --not-when-audio --not-when-fullscreen --timer 360 "xset s activate" "" &
|
|
$HOME/.local/bin/dual-polybar-launcher &
|
|
{{- end }}
|
|
sh ~/.fehbg &
|
|
redshift -r &
|
|
picom &
|
|
dunst &
|
|
dex -a &
|
|
birdtray &
|
|
sleep 5 && pa-notify -t 3 &
|
|
sleep 5 && nextcloud --background &
|