Adjusts after using the system for some time

This commit is contained in:
2022-03-06 09:40:49 +01:00
parent e0e26d4488
commit 768a45b3d4
13 changed files with 869 additions and 750 deletions

View File

@@ -11,18 +11,21 @@ pgrep -x sxhkd > /dev/null || sxhkd &
# Run xrandr in the terminal.
#xrandr -s 1920x1080 &
bspc monitor -d 1 2 3 4 5 6 7 8 9 0
# Monitor Setup / Multi monitor and desktops
#bspc monitor -d 1 2 3 4 5 6 7 8 9 0
# Desktops / Workspaces 1-9 + 0 = Desktop 10
bspc monitor DP-2 -d 1 2 3 4 5 6 7 8 9
#bspc monitor DP-2 -d 1 2 3 4 5 6 7
#bspc monitor DP-1 -d 8
#bspc monitor DP-7 -d 9
#bspc monitor DP-7 -d 8 9
# Top padding on the other monitors.
#bspc config -m DP-1 top_padding 0
#bspc config -m DP-7 top_padding 0
# Top padding monitors so there is room for Polybar.
#bspc config -m DP-1 top_padding 0
#bspc config -m DP-2 top_padding 28
#bspc config -m DP-7 top_padding 0
# BSPwm - Setting.
bspc config border_width 1
@@ -33,7 +36,7 @@ bspc config focused_border_color "#FF0A1B2A"
bspc config window_gap 7
bspc config split_ratio 0.50
# top_padding - Polybar.
# top_padding so there is room for Polybar.
bspc config top_padding 28
bspc config bottom_padding 0
bspc config left_padding 0
@@ -51,7 +54,10 @@ bspc config pointer_follows_monitor true
bspc config click_to_focus false
bspc config pointer_modifier mod1
bspc config pointer_action1 resize_side
bspc config pointer_action1 resize_side
bspc config pointer_action3 move
#bspc config pointer_action2 resize_corner
# Rule Commands - General Syntax.
# bspc rule -a, --add (<class_name>|*)[:(<instance_name>|\*)[:(<name>|*)]]
@@ -66,25 +72,31 @@ bspc config pointer_action1 resize_side
bspc rule -a Nitrogen state=floating follow=on center=true rectangle=1050x700+0+0
bspc rule -a Screenkey manage=off
bspc rule -a xfreerdp state=floating
bspc rule -a xfreerdp state=floating center=true
bspc rule -a Gvncviewer state=floating center=true
bspc rule -a Google-chrome desktop=^2 follow=on border=off
bspc rule -a Mozilla Firefox desktop=^2 follow=on border=off
bspc rule -a Gimp desktop=^6 follow=on layer=above border=off
bspc rule -a Inkscape desktop=^7 follow=on border=off
bspc rule -a LibreCAD desktop=^7 follow=on border=off
bspc rule -a mpv desktop=^9 state=floating follow=on
bspc rule -a Code desktop=^3 follow=on border=off
bspc rule -a TeamViewer desktop=^8 state=floating follow=on border=off
bspc rule -a Steam desktop=^6 follow=on border=off
bspc rule -a Google-chrome desktop=1 follow=on border=off
bspc rule -a Mozilla Firefox desktop=1 follow=on border=off
bspc rule -a Code desktop=3 follow=on border=off
bspc rule -a TeamViewer desktop=5 state=floating center=true follow=on border=off
bspc rule -a Steam desktop=6 follow=on border=off
bspc rule -a Gimp desktop=7 follow=on layer=above border=off
bspc rule -a Inkscape desktop=7 follow=on border=off
bspc rule -a LibreCAD desktop=7 follow=on border=off
bspc rule -a mpv desktop=7 state=fullscreen follow=on border=off
# Automatically start up programs.
picom &
xsetroot -cursor_name left_ptr &
nitrogen --restore &
pkill picom
sleep 1
picom -b --experimental-backends &
$HOME/.config/polybar/run-polybar.sh &
xfce4-power-manager &
# lock computer automatically after X time of minutes.
xautolock -time 120 -locker "xsecurelock" -detectsleep -secure &
xautolock -time 120 -locker "xsecurelock" -detectsleep -secure &