Update multiple configs

This commit is contained in:
Tobias Reisinger 2022-01-10 14:25:26 +01:00
parent d7228bcfb0
commit 377429c2f5
Signed by: serguzim
GPG key ID: 13AD60C237A28DFE
6 changed files with 18 additions and 26 deletions

View file

@ -11,8 +11,6 @@ host_name=$(cat /proc/sys/kernel/hostname)
if [ "$host_name" = "portalo" ]; then
xrandr --output "$MONITOR_PRIMARY" --mode 2560x1440 --refresh 144
xrandr --output "$MONITOR_SECONDARY" --left-of "$MONITOR_PRIMARY"
#primary="HDMI-A-0"
#secondary="DVI-D-0"
bspc monitor "$MONITOR_PRIMARY" -d web terminal 3 4 5 6 focus
bspc monitor "$MONITOR_SECONDARY" -d side-view voip messenger
@ -24,8 +22,6 @@ if [ "$host_name" = "portalo" ]; then
elif echo "$host_name" | grep -Eq "laptop"; then
xrandr --output "$MONITOR_PRIMARY" --auto
xrandr --output "$MONITOR_SECONDARY" --left-of "$MONITOR_PRIMARY" --auto
#primary="eDP-1"
#secondary="HDMI-2"
bspc monitor "$MONITOR_PRIMARY" -d web terminal 3 4 5 6 focus messenger
bspc monitor "$MONITOR_SECONDARY" -d side-view 10
@ -82,13 +78,17 @@ bspc rule -a 'TeamSpeak 3' desktop='voip' locked='true'
bspc rule -a '*:*:TeamSpeak' desktop='voip'
bspc rule -a 'Alacritty:mail' desktop='voip' locked='true'
bspc rule -a 'Element' desktop='voip' locked='true'
bspc rule -a 'Element (Riot)' desktop='voip' locked='true'
bspc rule -a 'discord' desktop='voip'
bspc rule -a 'Evolution' desktop='messenger'
bspc rule -a 'Signal' desktop='messenger'
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/bspwm/swallow.py" &

View file

@ -61,14 +61,14 @@
modules-left = bspwm bsp-layout-primary
monitor = HDMI-A-0
monitor = ${env:MONITOR_PRIMARY}
[bar/portalo-secondary]
inherit = bar/portalo-base
modules-left = bspwm bsp-layout-secondary
monitor = DVI-D-0
monitor = ${env:MONITOR_SECONDARY}
tray-position = none
@ -85,12 +85,12 @@
[bar/laptop-primary]
inherit = bar/laptop-base
monitor = eDP-1
monitor = ${env:MONITOR_PRIMARY}
[bar/laptop-secondary]
inherit = bar/laptop-base
monitor = HDMI-2
monitor = ${env:MONITOR_SECONDARY}
tray-position = none
; vim: ft=dosini

View file

@ -15,15 +15,10 @@ def init(c):
gpg_key = '723B78C0BF8D8C721D2C4EEF41E544A54E2533B2'
#c.bind(',Pp', 'spawn --userscript qute-keepassxc --key ABC1234', mode='insert')
c.bind(',p', 'spawn --userscript qute-keepassxc --key ' + gpg_key, mode='normal')
c.bind(',Po', 'spawn --userscript qute-keepassxc --otp --key ' + gpg_key, mode='normal')
#pass_script_default = 'spawn --userscript qute-pass --no-insert-mode --username-target secret --username-pattern "login: (.+)" '
#c.bind(',p', pass_script_default)
#c.bind(',Pu', pass_script_default + '--username-only')
#c.bind(',Pi', pass_script_default + '--password-only')
#c.bind(',Po', pass_script_default + '--otp-only')
c.bind(',Pu', 'spawn --userscript qute-keepassxc --only-username --key ' + gpg_key, mode='normal')
c.bind(',Pi', 'spawn --userscript qute-keepassxc --only-password --key ' + gpg_key, mode='normal')
c.bind(',Po', 'spawn --userscript qute-keepassxc --only-otp --key ' + gpg_key, mode='normal')
c.bind(',q', 'spawn --userscript qr {url}')
c.bind(',Q', 'hint links spawn --userscript qr {hint-url}')

View file

@ -72,7 +72,6 @@ ZSH_CUSTOM=$ZDOTDIR/custom
# Example format: plugins=(rails git textmate ruby lighthouse)
# Add wisely, as too many plugins slow down shell startup.
plugins=(
'cargo'
'colored-man-pages'
'copydir'
'copyfile'
@ -86,7 +85,7 @@ plugins=(
'httpie'
'jump'
'laravel5'
'rustup'
'rust'
'safe-paste'
'sudo'
'vi-mode'