diff options
| author | Blake Romero <blake@blkrom.com> | 2025-10-01 23:09:10 +0100 |
|---|---|---|
| committer | Blake Romero <blake@blkrom.com> | 2025-10-01 23:09:10 +0100 |
| commit | 0d3cca505510ad944d9345259c02697d6f1341fc (patch) | |
| tree | e01f71e11e769f337d9b721104480efcea48bcf2 | |
| parent | b784a9025f8dcb4fa090ca9deaa85c2f574c3c99 (diff) | |
Update sway config
| -rwxr-xr-x | dot-config/sway/config | 58 |
1 files changed, 34 insertions, 24 deletions
diff --git a/dot-config/sway/config b/dot-config/sway/config index 26172c6..05522ef 100755 --- a/dot-config/sway/config +++ b/dot-config/sway/config @@ -43,14 +43,13 @@ exec [ -f ~/.cache/lockwallpaper ] || cp ~/.cache/wallpaper ~/.cache/lockwallpap exec brightnessctl set 20% # Services -exec mpd +exec mpd >/var/log/user/mpd.log 2>&1 exec foot --server >/var/log/user/foot.log 2>&1 exec mako >/var/log/user/mako.log 2>&1 exec wlsunset -l 51.5 -L -0.1 -t 2800 -T 6000 >/var/log/user/wlsunset.log 2>&1 exec pipewire >/var/log/user/pipewire.log 2>&1 exec pipewire-pulse >/var/log/user/pipewire-pulse.log 2>&1 exec wireplumber >/var/log/user/wireplumber.log 2>&1 -exec lavalauncher >/var/log/user/lavalauncher.log 2>&1 exec_always sh -c "pkill yambar; yambar >/var/log/user/yambar.log 2>&1" # exec ~/.config/sway/scripts/lock-screen @@ -58,7 +57,7 @@ exec_always sh -c "pkill yambar; yambar >/var/log/user/yambar.log 2>&1" seat * hide_cursor when-typing enable input "type:touchpad" { - dwt true # 'disable when typing' + dwt enable # 'disable when typing' tap enable natural_scroll disable middle_emulation enable @@ -71,9 +70,10 @@ input "type:keyboard" { # Outputs output * bg $wallpaper fill + output eDP-1 { - resolution 1920x1080@60Hz - scale 1.3 + resolution 2994x1840@60Hz + scale 2 } # Gaps @@ -83,7 +83,7 @@ gaps horizontal 60 # Borders # smart_borders on -default_border pixel 2px +default_border pixel 2 set $focuscol "#b4befe" set $inactcol "#313244" client.focused $focuscol $focuscol #000000 $focuscol @@ -94,9 +94,9 @@ client.focused_inactive $inactcol $inactcol #000000 $inactcol # bindsym Menu exec bemenu-run --prompt='Run: ' bindsym $mod+Insert exec $shell 'bookmark add' bindsym $mod+Return exec $term -bindsym $mod+Shift+e exec swaynag -t warning -m 'Exit Sway?' -B 'Yes, exit sway' 'swaymsg exit' +bindsym $mod+Shift+e exec swaynag -t warning -m 'Exit Sway?' -B 'Yes, exit sway' 'pkill pipewire*; pkill wireplumber; pkill mako; swaymsg exit' bindsym $mod+Space exec bemenu-run --prompt='Run: ' -bindsym $mod+Shift+Space exec wmenu-run -p "Run" -f "Hack 12" -M 00ffff -m 000000 -N 000000 -n aaaaaa -S 00ffff -s 000000 +#bindsym $mod+Shift+Space exec wmenu-run -p "Run" -f "Hack 12" -M 00ffff -m 000000 -N 000000 -n aaaaaa -S 00ffff -s 000000 bindsym $mod+b exec $shell 'bookmark' bindsym $mod+bracketleft exec mpc prev bindsym $mod+bracketright exec mpc next @@ -108,7 +108,7 @@ bindsym $mod+o exec mpc stop bindsym $mod+p exec mpd-menu bindsym $mod+q kill bindsym $mod+r reload -bindsym $mod+w exec librewolf +bindsym $mod+w exec firefox bindsym Ctrl+Alt+Delete exit floating_modifier $mod normal @@ -117,11 +117,12 @@ bindsym XF86Sleep exec $lock bindsym XF86PowerOff exec sudo halt bindsym --locked XF86MonBrightnessUp exec brightnessctl -s set +10% -bindsym --locked XF86MonBrightnessDown exec brightnessctl -s set 10-% +bindsym --locked XF86MonBrightnessDown exec brightnessctl -s -n10 set 10%- -bindsym XF86AudioMute exec wpctl set-mute @DEFAULT_SINK@ toggle -bindsym XF86AudioRaiseVolume exec wpctl set-volume --limit 1.0 @DEFAULT_SINK@ 5%+ -bindsym XF86AudioLowerVolume exec wpctl set-volume @DEFAULT_SINK@ 5%- +bindsym XF86AudioMute exec volume mute +bindsym XF86AudioRaiseVolume exec volume up +bindsym XF86AudioLowerVolume exec volume down +bindsym XF86AudioMicMute exec volume mute mic bindsym $mod+h splith bindsym $mod+v splitv @@ -214,21 +215,24 @@ mode "resize" { bindsym Escape mode "default" } -# APPS -# Thunar Popups -for_window [title="File Operation Progress"] floating enable -for_window [title="Confirm to replace files"] floating enable +# WINDOW RULES +# get window dimensions: +#swaymsg -t get_tree | jq -r '.. | select(.type?) | select(.app_id==MYAPP) | .window_rect | "\(.width)x\(.height)"' + +#for_window [title="."] floating enable +#for_window [app_id="$term"] floating disable -# Bottles -for_window [class="steam_proton"] floating enable, border disable +for_window [app_id="firefox"] floating disable, inhibit_idle fullscreen +for_window [app_id="mpv"] floating disable, inhibit_idle fullscreen +for_window [app_id="net.lutris.Lutris"] move absolute position centered, resize set 880 px 600 px +for_window [shell="xwayland"] title_format "%title [XWayland]" +for_window [class="steam"] floating enable -# mpv -for_window [app_id=mpv] floating enabled +#for_window [title="(?:Open|Save) (?:File|Folder|As)"] floating enable, resize set width 1030 height 710 -# librewolf -for_window [app_id="librewolf"] floating enable, move absolute position centered, resize set 100 ppt 100 ppt +# Firefox +#for_window [app_id="firefox"] floating enable, move absolute position centered, resize set 100 ppt 100 ppt -# set floating for window roles for_window [window_role="pop-up"] floating enable for_window [window_role="bubble"] floating enable for_window [window_role="task_dialog"] floating enable @@ -236,3 +240,9 @@ for_window [window_type="dialog"] floating enable for_window [window_type="menu"] floating enable for_window [window_role="Preferences"] floating enable for_window [window_role="About"] floating enable + +for_window [title="Rename ."] floating enable +for_window [class="Pinentry."] floating enable + +# Startup +#exec swaymsg "workspace 0; exec footclient --title=btop btop" |
