diff options
-rw-r--r-- | .config/sway/config | 16 | ||||
-rwxr-xr-x | bin/autostart-wayland | 7 | ||||
-rwxr-xr-x | bin/startsway | 7 |
3 files changed, 29 insertions, 1 deletions
diff --git a/.config/sway/config b/.config/sway/config index fdd3e57..4f3ed6d 100644 --- a/.config/sway/config +++ b/.config/sway/config @@ -29,7 +29,8 @@ default_floating_border pixel 1 font pango:DejaVu Sans Mono 8 -focus_on_window_activation smart +# https://i3wm.org/docs/userguide.html#focus_on_window_activation +focus_on_window_activation focus ### Output configuration # @@ -233,6 +234,19 @@ bindsym $mod+r mode "resize" # } bar swaybar_command waybar +# +# Screenshot: +# +bindsym $mod+p exec grim -g "$(slurp)" +bindsym $mod+Shift+p exec grim + for_window [title="Origin"] floating enable +for_window [class="Unity Hub"] floating enable +for_window [class="Unity"] floating enable +for_window [class="Steam"] floating enable + +# +# Addons: +# include /etc/sway/config.d/* diff --git a/bin/autostart-wayland b/bin/autostart-wayland index f725c20..d74ecb0 100755 --- a/bin/autostart-wayland +++ b/bin/autostart-wayland @@ -7,4 +7,11 @@ [ -f /usr/bin/clipmenud ] && clipmenud & +command -v gammastep > /dev/null && \ + command -v awk > /dev/null && \ + command -v tr > /dev/null && \ + gammastep \ + -l $(curl -s "https://location.services.mozilla.com/v1/geolocate?key=geoclue" | awk 'OFS=":" {print $3,$5}' | tr -d ',}') \ + -m wayland + [ -x "$HOME/.local/autostart" ] && "$HOME/.local/autostart" diff --git a/bin/startsway b/bin/startsway new file mode 100755 index 0000000..d8b3869 --- /dev/null +++ b/bin/startsway @@ -0,0 +1,7 @@ +#!/usr/bin/env bash + +export XDG_CURRENT_DESKTOP=sway +export XDG_SESSION_DESKTOP=sway +export WLR_RENDER=vulkan + +exec sway |