Add some more binds
diff --git a/src/apps/personal/sway.nix b/src/apps/personal/sway.nix
index 5a4ed8c..0ac9365 100644
--- a/src/apps/personal/sway.nix
+++ b/src/apps/personal/sway.nix
@@ -85,6 +85,8 @@
"${modifier}+Shift+s" = "exec grim -g \"$(slurp)\" - | tee ~/Screenshots/\"$(date --rfc-3339=seconds)\".png | wl-copy";
"${modifier}+g" = "sticky toggle";
"${modifier}+minus" = "exec ${./sway/show-menu.sh}";
+ "Print" = "exec grim - | tee ~/Screenshots/\"$(date --rfc-3339=seconds)\".png | wl-copy";
+ "${modifier}+Print" = "exec ${./sway/toggle-backlight.sh}";
};
keycodebindings = {};
left = "h";
diff --git a/src/apps/personal/sway/toggle-backlight.sh b/src/apps/personal/sway/toggle-backlight.sh
new file mode 100644
index 0000000..22ab2c1
--- /dev/null
+++ b/src/apps/personal/sway/toggle-backlight.sh
@@ -0,0 +1,10 @@
+#!/bin/sh
+read lcd < /tmp/lcd
+
+if [ "$lcd" -eq "0" ]; then
+ swaymsg "output * dpms on"
+ echo 1 > /tmp/lcd
+else
+ swaymsg "output * dpms off"
+ echo 0 > /tmp/lcd
+fi