Add bspwm modes
This commit is contained in:
parent
9eca41e227
commit
f79e4ac0ff
3 changed files with 38 additions and 18 deletions
|
@ -12,7 +12,9 @@ alias aliases.local='$EDITOR ~/.config/aliasrc.local && . ~/.config/aliasrc'
|
||||||
alias artisan='./artisan'
|
alias artisan='./artisan'
|
||||||
|
|
||||||
alias bfg='java -jar ~/tools/bfg-1.13.0.jar'
|
alias bfg='java -jar ~/tools/bfg-1.13.0.jar'
|
||||||
alias bspwm-present='pkill xcompmgr; bspc monitor "$MONITOR_PRIMARY" -d web terminal 3 4 5 6 7 8 9 presenter1; bspc monitor "$MONITOR_SECONDARY" -d presenter2'
|
alias bspwm-default='echo "default" > /tmp/bspwm_mode; bspc wm -r'
|
||||||
|
alias bspwm-present='echo "presenter" > /tmp/bspwm_mode; bspc wm -r'
|
||||||
|
alias bspwm-single='echo "single" > /tmp/bspwm_mode; bspc wm -r'
|
||||||
|
|
||||||
alias clip='xclip -selection clipboard'
|
alias clip='xclip -selection clipboard'
|
||||||
alias cp='cp -iv'
|
alias cp='cp -iv'
|
||||||
|
|
|
@ -2,18 +2,39 @@
|
||||||
|
|
||||||
. "$HOME/.config/environment"
|
. "$HOME/.config/environment"
|
||||||
|
|
||||||
|
pgrep -x sxhkd > /dev/null || sxhkd &
|
||||||
|
pgrep -x xcompmgr > /dev/null || xcompmgr -cnfFn -D3 &
|
||||||
|
|
||||||
|
|
||||||
|
bspc config remove_disabled_monitors true
|
||||||
|
bspc config remove_unplugged_monitors true
|
||||||
|
|
||||||
bspc config normal_border_color "#44475a"
|
bspc config normal_border_color "#44475a"
|
||||||
bspc config active_border_color "#bd93f9"
|
bspc config active_border_color "#bd93f9"
|
||||||
bspc config focused_border_color "#ff79c6"
|
bspc config focused_border_color "#ff79c6"
|
||||||
bspc config presel_feedback_color "#6272a4"
|
bspc config presel_feedback_color "#6272a4"
|
||||||
|
|
||||||
host_name=$(cat /proc/sys/kernel/hostname)
|
host_name=$(cat /proc/sys/kernel/hostname)
|
||||||
if [ "$host_name" = "portalo" ]; then
|
mode=$(cat /tmp/bspwm_mode)
|
||||||
xrandr --output "$MONITOR_PRIMARY" --mode 2560x1440 --refresh 144
|
|
||||||
xrandr --output "$MONITOR_SECONDARY" --left-of "$MONITOR_PRIMARY"
|
|
||||||
|
|
||||||
bspc monitor "$MONITOR_PRIMARY" -d web terminal 3 4 5 6 focus
|
if [ "$host_name" = "portalo" ]; then
|
||||||
bspc monitor "$MONITOR_SECONDARY" -d side-view voip messenger
|
if [ "$mode" = "presenter" ]; then
|
||||||
|
xrandr --output "$MONITOR_PRIMARY" --mode 2560x1440 --refresh 144
|
||||||
|
xrandr --output "$MONITOR_SECONDARY" --auto --left-of "$MONITOR_PRIMARY"
|
||||||
|
|
||||||
|
pkill xcompmgr;
|
||||||
|
bspc monitor "$MONITOR_PRIMARY" -d web terminal 3 4 5 6 focus voip messenger presenter1
|
||||||
|
bspc monitor "$MONITOR_SECONDARY" -d presenter2
|
||||||
|
elif [ "$mode" = "single" ]; then
|
||||||
|
xrandr --output "$MONITOR_SECONDARY" --off
|
||||||
|
bspc monitor "$MONITOR_PRIMARY" -d web terminal 3 4 5 6 focus side-view voip messenger
|
||||||
|
else
|
||||||
|
xrandr --output "$MONITOR_PRIMARY" --mode 2560x1440 --refresh 144
|
||||||
|
xrandr --output "$MONITOR_SECONDARY" --auto --left-of "$MONITOR_PRIMARY"
|
||||||
|
|
||||||
|
bspc monitor "$MONITOR_PRIMARY" -d web terminal 3 4 5 6 focus
|
||||||
|
bspc monitor "$MONITOR_SECONDARY" -d side-view voip messenger
|
||||||
|
fi
|
||||||
|
|
||||||
bspc wm -O "$MONITOR_PRIMARY" "$MONITOR_SECONDARY"
|
bspc wm -O "$MONITOR_PRIMARY" "$MONITOR_SECONDARY"
|
||||||
sleep 1
|
sleep 1
|
||||||
|
@ -85,11 +106,14 @@ bspc rule -a 'Signal' desktop='messenger'
|
||||||
bspc rule -a 'Thunderbird:Mail' desktop='messenger' locked='true'
|
bspc rule -a 'Thunderbird:Mail' desktop='messenger' locked='true'
|
||||||
|
|
||||||
|
|
||||||
pgrep -x sxhkd > /dev/null || sxhkd &
|
|
||||||
pgrep -x xcompmgr > /dev/null || xcompmgr -cnfFn -D3 &
|
|
||||||
|
|
||||||
|
|
||||||
"$HOME/.config/polybar/launch.sh" &
|
"$HOME/.config/polybar/launch.sh" &
|
||||||
|
|
||||||
"$HOME/.config/bspwm/swallow.py" &
|
"$HOME/.config/bspwm/swallow.py" &
|
||||||
"$HOME/.config/bspwm/focus-voip.py" &
|
"$HOME/.config/bspwm/focus-voip.py" &
|
||||||
|
|
||||||
|
feh --bg-fill "$XDG_PICTURES_DIR/wallpaper/active_wallpaper"
|
||||||
|
|
||||||
|
killall conky
|
||||||
|
conky --daemonize --config="$HOME/.config/conky/clock.conf"
|
||||||
|
conky --daemonize --config="$HOME/.config/conky/system.conf"
|
||||||
|
conky --daemonize --config="$HOME/.config/conky/archlinux-updates.conf"
|
||||||
|
|
10
.xprofile
10
.xprofile
|
@ -54,7 +54,6 @@ _autostart_apps()
|
||||||
conky --daemonize --config="$HOME/.config/conky/clock.conf"
|
conky --daemonize --config="$HOME/.config/conky/clock.conf"
|
||||||
conky --daemonize --config="$HOME/.config/conky/system.conf"
|
conky --daemonize --config="$HOME/.config/conky/system.conf"
|
||||||
conky --daemonize --config="$HOME/.config/conky/archlinux-updates.conf"
|
conky --daemonize --config="$HOME/.config/conky/archlinux-updates.conf"
|
||||||
feh --bg-fill "$XDG_PICTURES_DIR/wallpaper/active_wallpaper"
|
|
||||||
|
|
||||||
#actkbd --grab --config ~/.config/actkbd/actkbd.conf --device /dev/input/by-id/usb-Dell_Dell_USB_Keyboard-event-kbd &
|
#actkbd --grab --config ~/.config/actkbd/actkbd.conf --device /dev/input/by-id/usb-Dell_Dell_USB_Keyboard-event-kbd &
|
||||||
|
|
||||||
|
@ -72,6 +71,8 @@ _autostart_apps()
|
||||||
qutebrowser &
|
qutebrowser &
|
||||||
|
|
||||||
mopidy &
|
mopidy &
|
||||||
|
|
||||||
|
/usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1 &
|
||||||
}
|
}
|
||||||
|
|
||||||
_autostart()
|
_autostart()
|
||||||
|
@ -90,13 +91,6 @@ _autostart()
|
||||||
_autostart_workspace_messenger &
|
_autostart_workspace_messenger &
|
||||||
}
|
}
|
||||||
|
|
||||||
#host_name=$(cat /proc/sys/kernel/hostname)
|
|
||||||
#if [[ $host_name == "portalo" ]]; then
|
|
||||||
# _autostart_portalo &
|
|
||||||
#elif [[ $host_name == *"laptop"* ]]; then
|
|
||||||
# _autostart_laptop &
|
|
||||||
#fi
|
|
||||||
|
|
||||||
_autostart &
|
_autostart &
|
||||||
|
|
||||||
# vim: ft=sh
|
# vim: ft=sh
|
||||||
|
|
Loading…
Reference in a new issue