From 9f17e55782f1a4f851756d214be9c5fcfa96ecb0 Mon Sep 17 00:00:00 2001 From: Sheldon Lee Date: Sat, 8 Oct 2022 23:26:01 +0100 Subject: [PATCH 1/2] Launch sway with some environment variables. --- .bash_profile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.bash_profile b/.bash_profile index 724a2d4..f3724cc 100644 --- a/.bash_profile +++ b/.bash_profile @@ -17,7 +17,8 @@ export _JAVA_AWT_WM_NONREPARENTING=1 if [[ -z "$DISPLAY" ]] && [[ $(tty) = /dev/tty1 ]]; then if [[ ! -z "$IS_LAPTOP" ]]; then - exec dbus-run-session sway + WLR_DRM_DEVICES=/dev/dri/card1:/dev/dri/card0 dbus-run-session sway + #dbus-run-session sway else exec start-sway.sh fi From 71c94f48f4b88fbb0660171792c2557ba67c0acb Mon Sep 17 00:00:00 2001 From: Sheldon Lee Date: Sat, 8 Oct 2022 23:27:34 +0100 Subject: [PATCH 2/2] Added more audio controls. --- .config/sway/config | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.config/sway/config b/.config/sway/config index 79d136b..2104a44 100644 --- a/.config/sway/config +++ b/.config/sway/config @@ -243,9 +243,12 @@ exec swayidle -w \ # If there are multiple scratchpad windows, this command cycles through them. bindsym $mod+minus scratchpad show # -# Microphone: +# Audio: # bindsym $mod+Tab exec toggle-mic-notify + bindsym --locked XF86AudioMute exec pactl set-sink-mute @DEFAULT_SINK@ toggle + bindsym --locked XF86AudioLowerVolume exec pactl set-sink-volume @DEFAULT_SINK@ -5% + bindsym --locked XF86AudioRaiseVolume exec pactl set-sink-volume @DEFAULT_SINK@ +5% # # Resizing containers: #