Compare commits

...

3 Commits

Author SHA1 Message Date
5ee0cb28f5 Allow unfree software in nix-shell 2020-09-10 13:19:51 +02:00
5802a7658f Turn off monitor when the laptop lid is closed 2020-09-10 13:19:35 +02:00
c5253d7a54 Fix workspaces names in kanshi 2020-09-10 13:19:05 +02:00
3 changed files with 8 additions and 2 deletions

View File

@@ -1,8 +1,8 @@
multihead {
output eDP-1 enable
output HDMI-A-2 enable
exec swaymsg workspace 2, move workspace to HDMI-A-2
exec swaymsg workspace 4, move workspace to HDMI-A-2
exec swaymsg workspace "2: ", move workspace to HDMI-A-2
exec swaymsg workspace "4: ", move workspace to HDMI-A-2
}
laptop {

View File

@@ -0,0 +1 @@
{ allowUnfree = true; }

View File

@@ -296,6 +296,11 @@ set $lock_bg ~/Photos/Wallpapers/wallhaven-638719.png
exec swayidle -w \
before-sleep 'swaylock -f -c 000000 -i $lock_bg'
# disable external monitor when lid is closed
set $monitor HDMI-A-2
bindswitch --reload --locked lid:on output $monitor disable
bindswitch --reload --locked lid:off output $monitor enable
#
# Autostart programs
#