diff options
author | Alex Auvolat <alex@adnab.me> | 2024-01-11 10:29:51 +0100 |
---|---|---|
committer | Alex Auvolat <alex@adnab.me> | 2024-01-11 10:29:51 +0100 |
commit | c165a8a6c306b8c527c827e2295a0b246a121681 (patch) | |
tree | 47ffc29b697c93ed6e71298f3fa6ff04b5919c80 /sway/config | |
parent | 39bba928037a2336afb8be3bfe04194a63c5ca0f (diff) | |
download | user-config-c165a8a6c306b8c527c827e2295a0b246a121681.tar.gz user-config-c165a8a6c306b8c527c827e2295a0b246a121681.zip |
update lindy & switch to sway
Diffstat (limited to 'sway/config')
-rw-r--r-- | sway/config | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/sway/config b/sway/config index 3e3f3e2..2e2f667 100644 --- a/sway/config +++ b/sway/config @@ -51,6 +51,12 @@ bindsym $mod+Down focus down bindsym $mod+Up focus up bindsym $mod+Right focus right +# common shortcuts (alt+tab, etc) for moving around +bindsym Mod1+Tab focus next +bindsym Mod1+Shift+Tab focus prev +bindsym Mod1+Ctrl+Right workspace next +bindsym Mod1+Ctrl+Left workspace prev + # move focused window bindsym $mod+Shift+H move left bindsym $mod+Shift+J move down @@ -163,11 +169,16 @@ bindsym $mod+Shift+X exec swaylock -c 000000 bindsym XF86MonBrightnessDown exec brightnessctl set 10%- bindsym XF86MonBrightnessUp exec brightnessctl set +10% + bindsym XF86AudioMute exec pactl set-sink-mute @DEFAULT_SINK@ toggle bindsym XF86AudioMicMute exec pactl set-source-mute @DEFAULT_SOURCE@ toggle bindsym XF86AudioRaiseVolume exec pactl set-sink-mute @DEFAULT_SINK@ false && pactl set-sink-volume @DEFAULT_SINK@ +5% bindsym XF86AudioLowerVolume exec pactl set-sink-mute @DEFAULT_SINK@ false && pactl set-sink-volume @DEFAULT_SINK@ -5% +bindsym XF86AudioPlay exec playerctl play-pause +bindsym XF86AudioNext exec playerctl next +bindsym XF86AudioPrev exec playerctl previous + # ---- AUTOSTART PROGRAMS ---- @@ -176,3 +187,22 @@ exec waybar exec nm-applet exec fcitx5 +# ---- INCLUDED FROM 50-systemd-user.conf FROM ARCHLINUX sway PACKAGE ---- + +# sway does not set DISPLAY/WAYLAND_DISPLAY in the systemd user environment +# See FS#63021 +# Adapted from xorg's 50-systemd-user.sh, which achieves a similar goal. + +# Upstream refuses to set XDG_CURRENT_DESKTOP so we have to. +exec systemctl --user set-environment XDG_CURRENT_DESKTOP=sway +exec systemctl --user import-environment DISPLAY \ + SWAYSOCK \ + WAYLAND_DISPLAY \ + XDG_CURRENT_DESKTOP + +exec hash dbus-update-activation-environment 2>/dev/null && \ + dbus-update-activation-environment --systemd DISPLAY \ + SWAYSOCK \ + XDG_CURRENT_DESKTOP=sway \ + WAYLAND_DISPLAY + |