|
|
|
|
@ -31,12 +31,12 @@ set $workspace1 1: 1: >_
|
|
|
|
|
set $workspace2 2: 2: dev |
|
|
|
|
set $workspace3 3: 3: www |
|
|
|
|
set $workspace4 4: 4: files |
|
|
|
|
set $workspace5 5: 5: e-mail |
|
|
|
|
set $workspace6 6: 6: IM |
|
|
|
|
set $workspace7 7: 7: video |
|
|
|
|
set $workspace5 5: 5: gitlab |
|
|
|
|
set $workspace6 6: 6: virt-manager |
|
|
|
|
set $workspace7 7: 7: notes |
|
|
|
|
set $workspace8 8: 8: workspace |
|
|
|
|
set $workspace9 9: 9: workspace |
|
|
|
|
set $workspace10 10: 10: Music |
|
|
|
|
set $workspace10 10: 10: remotes |
|
|
|
|
set $workspace11 V: VM |
|
|
|
|
|
|
|
|
|
# Switch to workspace |
|
|
|
|
@ -82,7 +82,7 @@ bindsym $mod+Control+Right move workspace to output right
|
|
|
|
|
|
|
|
|
|
# Define your outputs — run `swaymsg -t get_outputs` to get names |
|
|
|
|
set $leftOutput eDP-1 |
|
|
|
|
set $rightOutput HDMI-A-1 |
|
|
|
|
set $rightOutput DP-6 |
|
|
|
|
|
|
|
|
|
# Default monitor setup |
|
|
|
|
# sway handles output layout natively, no xrandr needed |
|
|
|
|
@ -150,11 +150,15 @@ input "type:keyboard" {
|
|
|
|
|
################################################################# |
|
|
|
|
|
|
|
|
|
# Terminal |
|
|
|
|
bindsym $mod+Return exec kitty |
|
|
|
|
bindsym $mod+Return exec /home/chodylal/.local/kitty.app/bin/kitty |
|
|
|
|
|
|
|
|
|
# App launcher: wofi (lightweight, Wayland-native) |
|
|
|
|
# Alternatives: rofi -show drun (rofi-wayland package), tofi |
|
|
|
|
bindsym $mod+d exec fuzzel |
|
|
|
|
# bindsym $mod+d exec fuzzel |
|
|
|
|
|
|
|
|
|
set $menu dmenu_path | fuzzel --dmenu | xargs swaymsg exec -- |
|
|
|
|
|
|
|
|
|
bindsym $mod+d exec $menu |
|
|
|
|
bindsym Mod1+F2 exec wofi --show run |
|
|
|
|
|
|
|
|
|
# Clipboard manager — show history (Ctrl+Alt+H) |
|
|
|
|
@ -361,7 +365,11 @@ bindsym $mod+Shift+p exec $scriptsDir/output-profile edp-only
|
|
|
|
|
bindsym $mod+Shift+c exec swaymsg reload |
|
|
|
|
|
|
|
|
|
# Suspend |
|
|
|
|
bindsym $mod+Escape exec systemctl suspend |
|
|
|
|
# bindsym $mod+Escape exec systemctl suspend |
|
|
|
|
bindsym $mod+Escape exec $scriptsDir/swayexit suspend |
|
|
|
|
|
|
|
|
|
# Lock |
|
|
|
|
bindsym $mod+Shift+b exec $scriptsDir/swayexit lock |
|
|
|
|
|
|
|
|
|
# Restart sway |
|
|
|
|
bindsym $mod+Shift+r exec swaymsg reload |
|
|
|
|
@ -454,51 +462,51 @@ bar {
|
|
|
|
|
# Note: some apps may need both rules. |
|
|
|
|
################################################################# |
|
|
|
|
|
|
|
|
|
# Development |
|
|
|
|
assign [app_id="qtcreator"] $workspace2 |
|
|
|
|
assign [class="Qtcreator"] $workspace2 |
|
|
|
|
assign [app_id="eclipse"] $workspace2 |
|
|
|
|
assign [class="Eclipse"] $workspace2 |
|
|
|
|
|
|
|
|
|
# Browser |
|
|
|
|
assign [app_id="firefox"] $workspace3 |
|
|
|
|
assign [class="Firefox"] $workspace3 |
|
|
|
|
assign [app_id="chromium"] $workspace3 |
|
|
|
|
assign [class="Chromium-browser"] $workspace3 |
|
|
|
|
assign [class="Chrome"] $workspace3 |
|
|
|
|
|
|
|
|
|
# File managers |
|
|
|
|
assign [app_id="pcmanfm-qt"] $workspace4 |
|
|
|
|
assign [class="Pcmanfm"] $workspace4 |
|
|
|
|
assign [app_id="dolphin"] $workspace4 |
|
|
|
|
assign [class="Dolphin"] $workspace4 |
|
|
|
|
assign [app_id="nautilus"] $workspace4 |
|
|
|
|
assign [class="Nautilus"] $workspace4 |
|
|
|
|
assign [app_id="thunar"] $workspace4 |
|
|
|
|
assign [class="Thunar"] $workspace4 |
|
|
|
|
|
|
|
|
|
# E-mail |
|
|
|
|
assign [app_id="thunderbird"] $workspace5 |
|
|
|
|
assign [class="Thunderbird"] $workspace5 |
|
|
|
|
|
|
|
|
|
# IM |
|
|
|
|
assign [app_id="telegram-desktop"] $workspace6 |
|
|
|
|
assign [class="Telegram"] $workspace6 |
|
|
|
|
assign [class="Skype"] $workspace6 |
|
|
|
|
|
|
|
|
|
# Video |
|
|
|
|
assign [app_id="kodi"] $workspace7 |
|
|
|
|
assign [class="Kodi"] $workspace7 |
|
|
|
|
|
|
|
|
|
# Music |
|
|
|
|
assign [app_id="spotify"] $workspace10 |
|
|
|
|
assign [class="Spotify"] $workspace10 |
|
|
|
|
assign [class="Clementine"] $workspace10 |
|
|
|
|
|
|
|
|
|
# VM |
|
|
|
|
assign [class="VirtualBox"] $workspace11 |
|
|
|
|
assign [app_id="virt-manager"] $workspace11 |
|
|
|
|
|
|
|
|
|
# # Development |
|
|
|
|
# assign [app_id="qtcreator"] $workspace2 |
|
|
|
|
# assign [class="Qtcreator"] $workspace2 |
|
|
|
|
# assign [app_id="eclipse"] $workspace2 |
|
|
|
|
# assign [class="Eclipse"] $workspace2 |
|
|
|
|
# |
|
|
|
|
# # Browser |
|
|
|
|
# assign [app_id="firefox"] $workspace3 |
|
|
|
|
# assign [class="Firefox"] $workspace3 |
|
|
|
|
# assign [app_id="chromium"] $workspace3 |
|
|
|
|
# assign [class="Chromium-browser"] $workspace3 |
|
|
|
|
# assign [class="Chrome"] $workspace3 |
|
|
|
|
# |
|
|
|
|
# # File managers |
|
|
|
|
# assign [app_id="pcmanfm-qt"] $workspace4 |
|
|
|
|
# assign [class="Pcmanfm"] $workspace4 |
|
|
|
|
# assign [app_id="dolphin"] $workspace4 |
|
|
|
|
# assign [class="Dolphin"] $workspace4 |
|
|
|
|
# assign [app_id="nautilus"] $workspace4 |
|
|
|
|
# assign [class="Nautilus"] $workspace4 |
|
|
|
|
# assign [app_id="thunar"] $workspace4 |
|
|
|
|
# assign [class="Thunar"] $workspace4 |
|
|
|
|
# |
|
|
|
|
# # E-mail |
|
|
|
|
# assign [app_id="thunderbird"] $workspace5 |
|
|
|
|
# assign [class="Thunderbird"] $workspace5 |
|
|
|
|
# |
|
|
|
|
# # IM |
|
|
|
|
# # assign [app_id="telegram-desktop"] $workspace6 |
|
|
|
|
# # assign [class="Telegram"] $workspace6 |
|
|
|
|
# # assign [class="Skype"] $workspace6 |
|
|
|
|
# |
|
|
|
|
# # Video |
|
|
|
|
# assign [app_id="kodi"] $workspace7 |
|
|
|
|
# assign [class="Kodi"] $workspace7 |
|
|
|
|
# |
|
|
|
|
# # Music |
|
|
|
|
# assign [app_id="spotify"] $workspace10 |
|
|
|
|
# assign [class="Spotify"] $workspace10 |
|
|
|
|
# assign [class="Clementine"] $workspace10 |
|
|
|
|
# |
|
|
|
|
# # VM |
|
|
|
|
# assign [class="VirtualBox"] $workspace6 |
|
|
|
|
# assign [app_id="virt-manager"] $workspace6 |
|
|
|
|
# |
|
|
|
|
|
|
|
|
|
################################################################# |
|
|
|
|
# Floating Windows |
|
|
|
|
@ -513,7 +521,7 @@ for_window [app_id="yad"] floating enable
|
|
|
|
|
for_window [class="Yad"] floating enable |
|
|
|
|
for_window [app_id="wofi"] floating enable |
|
|
|
|
for_window [app_id="swaync"] floating enable |
|
|
|
|
|
|
|
|
|
for_window [class="^SMiKO$"] floating enable |
|
|
|
|
|
|
|
|
|
################################################################# |
|
|
|
|
# Idle Management |
|
|
|
|
@ -579,6 +587,11 @@ exec --no-startup-id /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1
|
|
|
|
|
# Background services for XDG desktop portals (screen sharing, file picker) |
|
|
|
|
exec --no-startup-id dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP=sway |
|
|
|
|
|
|
|
|
|
exec_always gsettings set org.gnome.desktop.interface gtk-theme 'Yaru-dark' |
|
|
|
|
exec_always gsettings set org.gnome.desktop.interface icon-theme 'Yaru' |
|
|
|
|
exec_always gsettings set org.gnome.desktop.interface cursor-theme 'Yaru' |
|
|
|
|
exec_always gsettings set org.gnome.desktop.interface color-scheme 'prefer-dark' |
|
|
|
|
|
|
|
|
|
################################################################# |
|
|
|
|
# Key repeat rate |
|
|
|
|
################################################################# |
|
|
|
|
@ -602,9 +615,9 @@ exec --no-startup-id dbus-update-activation-environment --systemd WAYLAND_DISPLA
|
|
|
|
|
# xkb_options grp:alt_shift_toggle |
|
|
|
|
# } |
|
|
|
|
|
|
|
|
|
input type:keyboard { |
|
|
|
|
xkb_layout pl,us |
|
|
|
|
# lv3:ralt_switch keeps Right Alt working for Polish chars |
|
|
|
|
# grp:alt_shift_toggle allows Alt+Shift to switch layouts |
|
|
|
|
xkb_options lv3:ralt_switch,grp:alt_shift_toggle |
|
|
|
|
} |
|
|
|
|
# input type:keyboard { |
|
|
|
|
# xkb_layout pl,us |
|
|
|
|
# # lv3:ralt_switch keeps Right Alt working for Polish chars |
|
|
|
|
# # grp:alt_shift_toggle allows Alt+Shift to switch layouts |
|
|
|
|
# xkb_options lv3:ralt_switch,grp:alt_shift_toggle |
|
|
|
|
# } |
|
|
|
|
|