diff --git a/helix-config.toml b/helix-config.toml index 154b04e..45893ab 100644 --- a/helix-config.toml +++ b/helix-config.toml @@ -2,5 +2,4 @@ theme = "onedark" [editor] line-number = "relative" -mouse = false diff --git a/sway-clamshell.sh b/sway-clamshell.sh new file mode 100755 index 0000000..80db6b0 --- /dev/null +++ b/sway-clamshell.sh @@ -0,0 +1,11 @@ +#!/bin/sh + +LID_STATE=$(cat /proc/acpi/button/lid/*/state) + +case "$LID_STATE" in + *open) ACTION="enable" ;; + *closed) ACTION="disable" ;; + *) echo "unable to identify lid state"; exit ;; +esac + +swaymsg output "eDP-1" $ACTION diff --git a/sway-config b/sway-config index 23be42b..e21a41f 100644 --- a/sway-config +++ b/sway-config @@ -55,7 +55,7 @@ output * bg ~/.local/share/wallpapers/lambda-bg-dark.png fill input * { # keyboard options - xkb_layout de,us + xkb_layout us,de xkb_options "grp:win_space_toggle" # touchpad options @@ -229,10 +229,10 @@ bindsym $mod+m exec sh -c "swaylock --color 101010 & systemctl suspend" exec gnome-keyring-daemon -r -d # Make Gnome Shell available -bindsym $mod+Shift+g exec gnome-shell --nested - +bindsym $mod+Shift+g exec MUTTER_DEBUG_DUMMY_MODE_SPECS=1700x1080 gnome-shell --nested --wayland bindsym Print exec grim -g "$(slurp)" - | wl-copy include /etc/sway/config.d/* +exec_always ~/.config/sway/clamshell.sh