From 9256ca9e531a1c56fc3e73d1ced8addbef83acc5 Mon Sep 17 00:00:00 2001 From: eoli3n Date: Wed, 19 May 2021 23:01:06 +0200 Subject: [PATCH] fixed sway config and tiny in a screen --- roles/sway/templates/config.j2 | 44 ++++++++++++++++++---------------- 1 file changed, 24 insertions(+), 20 deletions(-) diff --git a/roles/sway/templates/config.j2 b/roles/sway/templates/config.j2 index 80dcb15..666e980 100644 --- a/roles/sway/templates/config.j2 +++ b/roles/sway/templates/config.j2 @@ -188,9 +188,30 @@ bindsym $mod+Next move workspace to output right {% include 'by_host/' + ansible_hostname + '/config.j2' ignore missing %} -# exec startup apps -exec --no-startup-id swaymsg 'exec variety &' -exec --no-startup-id swaymsg 'workspace $tag4; exec kitty -e "tiny"' +# exec background apps + +# tiny +exec_always bash -c "pgrep tiny || screen -S tiny -md tiny" +# mako +exec_always bash -c "pgrep mako || mako" +# syncthing +exec_always bash -c "pgrep syncthing || syncthing" +# pipewire +exec_always bash -c "pgrep pipewire || pipewire" +exec_always bash -c "pgrep pipewire-pulse || pipewire-pulse" + +# exec foreground apps + +# variery +exec variety & +# tiny +exec swaymsg 'workspace $tag4; exec kitty bash -c "screen -R tiny"' +# waybar exec +exec_always ~/.config/waybar/waybar.sh & +# wob exec +exec mkfifo $SWAYSOCK.wob && tail -f $SWAYSOCK.wob | wob +# set gtk theme +exec_always ~/.config/sway/import-gsettings # reload the configuration file bindsym $mod+Shift+r reload @@ -214,21 +235,4 @@ mode "resize" { bindsym $mod+r mode "resize" -# waybar exec -exec_always ~/.config/waybar/waybar.sh & -# wob exec -exec mkfifo $SWAYSOCK.wob && tail -f $SWAYSOCK.wob | wob - -# set gtk theme -exec_always ~/.config/sway/import-gsettings - -# mako -exec_always if ! pgrep mako; then mako; fi - -# syncthing -exec_always if ! pgrep syncthing; then syncthing; fi - -# pipewire -exec_always if ! pgrep pipewire; then pipewire; fi -exec_always if ! pgrep pipewire-pulse; then pipewire-pulse; fi