From 03af60dbc4718af28cbfc27797d3d91f70b70b19 Mon Sep 17 00:00:00 2001 From: eoli3n Date: Tue, 4 Jan 2022 11:52:24 +0100 Subject: [PATCH] updated sway config for work --- roles/sway/templates/by_host/osz/config.j2 | 7 +++++++ roles/sway/templates/config.j2 | 5 ----- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/roles/sway/templates/by_host/osz/config.j2 b/roles/sway/templates/by_host/osz/config.j2 index c7b6638..d0c1638 100644 --- a/roles/sway/templates/by_host/osz/config.j2 +++ b/roles/sway/templates/by_host/osz/config.j2 @@ -46,4 +46,11 @@ bindsym XF86MonBrightnessUp exec brightnessctl set +10% && \ brightnessctl -m | cut -d',' -f4 | tr -d '%' > $SWAYSOCK.wob bindsym XF86MonBrightnessDown exec brightnessctl set 10%- && \ brightnessctl -m | cut -d',' -f4 | tr -d '%' > $SWAYSOCK.wob + +# autostart per host +# syncthing +exec_always bash -c "pgrep -x syncthing || syncthing" +# pipewire +exec_always bash -c "pgrep -x pipewire || pipewire" +exec_always bash -c "pgrep -x pipewire-pulse || pipewire-pulse" #INCLUDE#################################################### diff --git a/roles/sway/templates/config.j2 b/roles/sway/templates/config.j2 index 0aca19f..5b2f7bd 100644 --- a/roles/sway/templates/config.j2 +++ b/roles/sway/templates/config.j2 @@ -197,11 +197,6 @@ bindsym $mod+Next move workspace to output right exec_always bash -c "pgrep -x tiny || screen -S tiny -md tiny" # mako exec_always bash -c "pgrep -x mako || mako" -# syncthing -exec_always bash -c "pgrep -x syncthing || syncthing" -# pipewire -exec_always bash -c "pgrep -x pipewire || pipewire" -exec_always bash -c "pgrep -x pipewire-pulse || pipewire-pulse" # wlsunset #exec_always bash -c "pgrep -x wlsunset || wlsunset -l 43.6 -L 3.9"