small changes

This commit is contained in:
Ludwig Lehnert 2024-03-25 15:19:50 +01:00
parent 85a5ddf4c4
commit 91f08ccb9e
No known key found for this signature in database
3 changed files with 14 additions and 4 deletions

View File

@ -2,5 +2,4 @@ theme = "onedark"
[editor]
line-number = "relative"
mouse = false

11
sway-clamshell.sh Executable file
View File

@ -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

View File

@ -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