diff --git a/roles/rofi/templates/powermenu.j2 b/roles/rofi/templates/powermenu.j2 index 2223935..0b581dd 100755 --- a/roles/rofi/templates/powermenu.j2 +++ b/roles/rofi/templates/powermenu.j2 @@ -23,7 +23,7 @@ fi if [[ "$action" == "logout" ]] then - i3-msg exit + swaymsg exit fi if [[ "$action" == "shutdown" ]] diff --git a/roles/sway/templates/by_host/nixtest/config.j2 b/roles/sway/templates/by_host/nixtest/config.j2 index 405aa4d..eb0e3ae 100644 --- a/roles/sway/templates/by_host/nixtest/config.j2 +++ b/roles/sway/templates/by_host/nixtest/config.j2 @@ -1,7 +1,12 @@ #INCLUDE#################################################### # output configuration -set $screen "DP-3" -output $screen pos 1920 0 res 1920x1080 +set $laptop "eDP-1" +output $laptop pos 1920 0 res 1920x1080 +output $laptop scale 1.4 + +# lid +bindswitch --reload lid:on output $laptop disable +bindswitch --reload lid:off output $laptop enable # dpms output * dpms on