summaryrefslogtreecommitdiff
path: root/.config/sway
diff options
context:
space:
mode:
authorMarc Vertes <mvertes@free.fr>2025-01-25 14:21:35 +0100
committerMarc Vertes <mvertes@free.fr>2025-01-25 14:21:35 +0100
commit7d91d0d4bfb72ff1d05408e0e9fc2ec4f8d4583f (patch)
tree5ea13e0c4d49a21254c9c754ba195d41934bb3d2 /.config/sway
parentb96abca9e600cf9ea3084fd894df18331393ddad (diff)
fixup
Diffstat (limited to '.config/sway')
-rw-r--r--.config/sway/config13
1 files changed, 12 insertions, 1 deletions
diff --git a/.config/sway/config b/.config/sway/config
index 3419359..6e94434 100644
--- a/.config/sway/config
+++ b/.config/sway/config
@@ -1,5 +1,9 @@
# xwayland disable
+# Setup sound
+exec /usr/libexec/pipewire-launcher
+exec dbus-update-activation-environment WAYLAND_DISPLAY XDG_CURRENT_DESKTOP=sway
+
input * {
xkb_layout "fr"
}
@@ -19,10 +23,12 @@ input "1739:52544:SYNA7DAB:00_06CB:CD40_Touchpad" {
natural_scroll enabled
}
-font Monospace 9
+# font Monospace 9
+font pango:MiscFixedSC613 9
set $mod Mod4
+bindsym $mod+Shift+e exec swaynag -t warning -m 'You pressed the exit shortcut. Do you really want to exit sway? This will end your Wayland session.' -B 'Yes, exit sway' 'swaymsg exit'
bindsym $mod+q kill
bindsym $mod+Return exec --no-startup-id foot
#bindsym $mod+Return exec --no-startup-id xt
@@ -32,6 +38,11 @@ bindsym $mod+Return exec --no-startup-id foot
#bindsym $mod+d exec --no-startup-id wemenu-run
bindsym $mod+d exec --no-startup-id fuzzel -T foot
+# Use pactl to ajust volume in PulseAudio/PipeWire
+bindsym XF86AudioRaiseVolume exec pactl set-sink-volume @DEFAULT_SINK@ +5% && pkill -USR1 i3status
+bindsym XF86AudioLowerVolume exec pactl set-sink-volume @DEFAULT_SINK@ -5% && pkill -USR1 i3status
+bindsym XF86AudioMute exec pactl set-sink-mute @DEFAULT_SINK@ toggle && pkill -USR1 i3status
+
for_window [app_id="google-chrome"] floating enable
for_window [class="firefox"] floating enable
for_window [class="thunderbird"] floating enable