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 if [ "$host_name" = "portalo" ]; then
xrandr --output "$MONITOR_PRIMARY" --mode 2560x1440 --refresh 144 xrandr --output "$MONITOR_PRIMARY" --mode 2560x1440 --refresh 144
xrandr --output "$MONITOR_SECONDARY" --left-of "$MONITOR_PRIMARY" 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_PRIMARY" -d web terminal 3 4 5 6 focus
bspc monitor "$MONITOR_SECONDARY" -d side-view voip messenger 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 elif echo "$host_name" | grep -Eq "laptop"; then
xrandr --output "$MONITOR_PRIMARY" --auto xrandr --output "$MONITOR_PRIMARY" --auto
xrandr --output "$MONITOR_SECONDARY" --left-of "$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_PRIMARY" -d web terminal 3 4 5 6 focus messenger
bspc monitor "$MONITOR_SECONDARY" -d side-view 10 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 '*:*:TeamSpeak' desktop='voip'
bspc rule -a 'Alacritty:mail' desktop='voip' locked='true' bspc rule -a 'Alacritty:mail' desktop='voip' locked='true'
bspc rule -a 'Element' 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 'discord' desktop='voip'
bspc rule -a 'Evolution' desktop='messenger' bspc rule -a 'Evolution' desktop='messenger'
bspc rule -a 'Signal' desktop='messenger' 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" &

View file

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

View file

@ -15,15 +15,10 @@ def init(c):
gpg_key = '723B78C0BF8D8C721D2C4EEF41E544A54E2533B2' 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(',p', 'spawn --userscript qute-keepassxc --key ' + gpg_key, mode='normal')
c.bind(',Po', 'spawn --userscript qute-keepassxc --otp --key ' + gpg_key, mode='normal') 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')
#pass_script_default = 'spawn --userscript qute-pass --no-insert-mode --username-target secret --username-pattern "login: (.+)" ' c.bind(',Po', 'spawn --userscript qute-keepassxc --only-otp --key ' + gpg_key, mode='normal')
#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(',q', 'spawn --userscript qr {url}') c.bind(',q', 'spawn --userscript qr {url}')
c.bind(',Q', 'hint links spawn --userscript qr {hint-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) # Example format: plugins=(rails git textmate ruby lighthouse)
# Add wisely, as too many plugins slow down shell startup. # Add wisely, as too many plugins slow down shell startup.
plugins=( plugins=(
'cargo'
'colored-man-pages' 'colored-man-pages'
'copydir' 'copydir'
'copyfile' 'copyfile'
@ -86,7 +85,7 @@ plugins=(
'httpie' 'httpie'
'jump' 'jump'
'laravel5' 'laravel5'
'rustup' 'rust'
'safe-paste' 'safe-paste'
'sudo' 'sudo'
'vi-mode' 'vi-mode'

View file

@ -20,8 +20,8 @@ sleep 1
systemctl --user start pulseaudio systemctl --user start pulseaudio
sleep 1 sleep 1
#alsa_out -d hw:PCH -j "Speaker" -c 2 & alsa_out -d hw:PCH -j "Speaker" -c 2 &
alsa_out -d "hdmi:CARD=HDMI,DEV=5" -j "Speaker" -c 2 & #alsa_out -d "hdmi:CARD=HDMI,DEV=5" -j "Speaker" -c 2 &
sleep 1 sleep 1
jack_connect "PulseAudio JACK Sink":front-left Speaker:playback_1 jack_connect "PulseAudio JACK Sink":front-left Speaker:playback_1

View file

@ -1,6 +1,5 @@
. $HOME/.config/environment . $HOME/.config/environment
xcompmgr -cnfFn -D3 &
numlockx on numlockx on
setxkbmap de setxkbmap de
@ -52,8 +51,6 @@ _autostart_apps()
parcellite & parcellite &
solaar --window hide & solaar --window hide &
sxhkd &
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"
@ -75,8 +72,6 @@ _autostart_apps()
qutebrowser & qutebrowser &
mopidy & mopidy &
(pass notes/keepass | head -n 1 | keepassxc --pw-stdin ~/sync/passwords.kdbx) &
} }
_autostart() _autostart()
@ -87,6 +82,9 @@ _autostart()
### wait for internet ### wait for internet
wait_for_service "network-online.target" wait_for_service "network-online.target"
pass x
(pass notes/keepass | head -n 1 | keepassxc --pw-stdin ~/sync/passwords.kdbx) &
_autostart_apps & _autostart_apps &
_autostart_workspace_voip & _autostart_workspace_voip &
_autostart_workspace_messenger & _autostart_workspace_messenger &