aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/sway
diff options
context:
space:
mode:
Diffstat (limited to 'sway')
-rw-r--r--sway/.config/sway/config59
1 files changed, 31 insertions, 28 deletions
diff --git a/sway/.config/sway/config b/sway/.config/sway/config
index f1e6b23..88998e6 100644
--- a/sway/.config/sway/config
+++ b/sway/.config/sway/config
@@ -36,17 +36,18 @@ focus_on_window_activation focus
default_border pixel
hide_edge_borders smart
+output * bg ~/.local/share/gruvbox/sway.png fill
+
for_window [shell=".*"] inhibit_idle fullscreen
for_window [app_id="pavucontrol" title="^Volume Control$"] floating enable
-for_window [app_id="" title="^Streamlink Twitch GUI$"] floating enable
-for_window [app_id="mpv"] floating enable
+for_window [class="^steam$"] floating enable
+for_window [class="^steam$" title="^Steam$"] floating disable
+for_window [app_id="mpv"] fullscreen enable
for_window [app_id="firefox" title="Firefox — Sharing Indicator"] kill
+for_window [app_id="" title="^Streamlink Twitch GUI$"] floating enable
-# NOTE: Configure asynchronously with swaymsg as workaround for Firefox crash on reload
-# See: https://bugzilla.mozilla.org/show_bug.cgi?id=1652820#c51
-exec_always swaymsg seat * hide_cursor 8000
-
-output * bg ~/.local/share/gruvbox/sway.png fill
+assign [app_id="mpv"] s
+assign [class="^discord$" instance="^discord$"] d
input type:pointer {
accel_profile flat
@@ -66,29 +67,24 @@ bindsym $mod+Shift+c reload
bindsym $mod+Shift+Escape exec swaynag -t warning -m 'Exit sway?' -B 'Yes' 'swaymsg exit'
bindsym $mod+ctrl+q exec loginctl lock-session
bindsym $mod+Escape exec powermenu list | $menu | powermenu
-bindsym $mod+space exec j4-dmenu-desktop --no-generic --dmenu='$menu' --term="$TERMINAL"
-# rg --pcre2 '(?<=^Name=).*' /usr/share/applications --only-matching --max-count=1 --no-filename |
-# bemenu | xargs -I_ rg "^Name=_" /usr/share/applications --max-count=1 --files-with-matches |
-# xargs basename 2>/dev/null
-bindsym $mod+shift+space exec bemenu-run
-bindsym $mod+p exec passmenu
-bindsym $mod+Shift+p exec passmenu --type
-bindsym $mod+y exec yubikey-oath-dmenu --notify --clipboard
-bindsym $mod+Shift+y exec yubikey-oath-dmenu --notify --type
bindsym $mod+return exec $TERMINAL
bindsym $mod+w exec $BROWSER
bindsym Print exec slurp | grim -g - - | wl-copy --type image/png
bindsym $mod+Print exec /usr/share/sway/scripts/grimshot --notify save area
+bindsym $mod+space exec j4-dmenu-desktop --no-generic --dmenu='$menu' --term="$TERMINAL"
+bindsym $mod+shift+space exec bemenu-run
+bindsym $mod+y exec yubikey-oath-dmenu --notify --clipboard
+bindsym $mod+Shift+y exec yubikey-oath-dmenu --notify --type
-bindsym --locked XF86AudioRaiseVolume exec pactl set-sink-volume @DEFAULT_SINK@ +5%
-bindsym --locked XF86AudioLowerVolume exec pactl set-sink-volume @DEFAULT_SINK@ -5%
-bindsym --locked XF86AudioMute exec pactl set-sink-mute @DEFAULT_SINK@ toggle
-bindsym --locked XF86AudioMicMute exec pactl set-source-mute @DEFAULT_SOURCE@ toggle
-bindsym --locked XF86AudioPlay exec playerctl play-pause
-bindsym --locked XF86AudioNext exec playerctl next
-bindsym --locked XF86AudioPrev exec playerctl previous
-bindsym --locked XF86MonBrightnessDown exec brightnessctl set 5%-
-bindsym --locked XF86MonBrightnessUp exec brightnessctl set +5%
+bindsym XF86AudioRaiseVolume exec pactl set-sink-volume @DEFAULT_SINK@ +5%
+bindsym XF86AudioLowerVolume exec pactl set-sink-volume @DEFAULT_SINK@ -5%
+bindsym XF86AudioMute exec pactl set-sink-mute @DEFAULT_SINK@ toggle
+bindsym XF86AudioMicMute exec pactl set-source-mute @DEFAULT_SOURCE@ toggle
+bindsym XF86AudioPlay exec playerctl play-pause
+bindsym XF86AudioNext exec playerctl next
+bindsym XF86AudioPrev exec playerctl previous
+bindsym XF86MonBrightnessDown exec brightnessctl set 5%-
+bindsym XF86MonBrightnessUp exec brightnessctl set +5%
bindsym $mod+$left focus left
bindsym $mod+$down focus down
@@ -141,13 +137,21 @@ bindsym $mod+Shift+6 move container to workspace number 6; workspace number 6
bindsym $mod+Shift+7 move container to workspace number 7; workspace number 7
bindsym $mod+Shift+8 move container to workspace number 8; workspace number 8
bindsym $mod+Shift+9 move container to workspace number 9; workspace number 9
-bindsym $mod+Shift+0 move container to workspace number 10
+bindsym $mod+Shift+0 move container to workspace number 10; workspace number 10
+
+bindsym $mod+Shift+d move container to workspace d
+bindsym $mod+Shift+s move container to workspace s
+
+bindsym $mod+d workspace d
+bindsym $mod+s workspace s
bindsym $mod+f fullscreen
+bindsym $mod+Shift+f floating toggle
bindsym $mod+Shift+backslash split toggle
bindsym $mod+minus splith
bindsym $mod+backslash splitv
bindsym $mod+r mode 'resize'
+
mode 'resize' {
bindsym $left resize shrink width 10px
bindsym $down resize grow height 10px
@@ -160,8 +164,7 @@ mode 'resize' {
bar {
status_command i3status-rs
font pango:Hack Nerd Font 15
- status_padding 0
- tray_padding 0
+ tray_padding 5
colors {
background $base00
separator $base01