From 05409b68ddef2801ec417cbfb1bc9cc978136bd6 Mon Sep 17 00:00:00 2001 From: Christian Colglazier Date: Sun, 31 Dec 2023 18:10:50 -0500 Subject: [PATCH] Move startup to bash script --- i3/.config/i3/shared.conf | 13 +------------ scripts/bin/system/system-start.sh | 18 ++++++++++++++++++ 2 files changed, 19 insertions(+), 12 deletions(-) create mode 100755 scripts/bin/system/system-start.sh diff --git a/i3/.config/i3/shared.conf b/i3/.config/i3/shared.conf index dae3b61..cd6ab1b 100644 --- a/i3/.config/i3/shared.conf +++ b/i3/.config/i3/shared.conf @@ -171,11 +171,7 @@ bindsym $mod+r mode "resize" exec_always --no-startup-id setxkbmap -option 'caps:super' # Startup scripts -exec --no-startup-id sh ~/bin/connect-nas.sh -exec --no-startup-id systemctl --user start polybar -exec --no-startup-id systemctl --user restart streamdeck -exec --no-startup-id waybar & -exec --no-startup-id /usr/libexec/polkit-gnome-authentication-agent-1 +exec --no-startup-id ~/bin/system/system-start.sh # class border backgr. text indicator child_border client.focused $pink $pink $pink $pink $pink @@ -199,13 +195,6 @@ bindsym --release $mod+Print exec scrot '%Y:%m:%d:%H:%M:%S.png' -s -e 'mv $f ~/P bindsym $mod+s exec scrot '%Y:%m:%d:%H:%M:%S.png' -e 'mv $f ~/Pictures/screenshots/' bindsym --release $mod+Shift+s exec scrot '%Y:%m:%d:%H:%M:%S.png' -s -e 'mv $f ~/Pictures/screenshots/' -# Keyring -exec --no-startup-id dbus-update-activation-environment --all -exec --no-startup-id /usr/bin/gnome-keyring-daemon --start --components=secrets,pkcs11,ssh - -# NextCloud sync client -exec --no-startup-id nextcloud --background - bindsym $mod+n exec nautilus bindsym $mod+m exec nautilus ~/Videos diff --git a/scripts/bin/system/system-start.sh b/scripts/bin/system/system-start.sh new file mode 100755 index 0000000..0ee92ab --- /dev/null +++ b/scripts/bin/system/system-start.sh @@ -0,0 +1,18 @@ +#!/usr/bin/env bash + +# Update Passwords +pass git pull + +# Desktop +~/bin/connect-nas.sh +systemctl --user start polybar +systemctl --user restart streamdeck +waybar & +/usr/libexec/polkit-gnome-authentication-agent-1 & + +# Keyring +dbus-update-activation-environment --all +/usr/bin/gnome-keyring-daemon --start --components=secrets,pkcs11,ssh + +# NextCloud sync client +nextcloud --background &