From 05717c2e9443715eb3903b9f5067795af847451a Mon Sep 17 00:00:00 2001 From: eoli3n Date: Tue, 14 Jan 2020 10:16:34 +0100 Subject: [PATCH] nixtest output configuration --- roles/rofi/templates/powermenu.j2 | 2 +- roles/sway/templates/by_host/nixtest/config.j2 | 9 +++++++-- 2 files changed, 8 insertions(+), 3 deletions(-) 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