summaryrefslogtreecommitdiff
path: root/.config/sway
diff options
context:
space:
mode:
authorBrahmajit Das <listout@listout.xyz>2025-05-15 14:52:05 +0000
committerBrahmajit Das <listout@listout.xyz>2025-05-15 14:52:05 +0000
commita5057d11d07684c270bf7f96a6c73762bc55b567 (patch)
treebdae20e5d3677f2daec288ee3a9ba67b4f032115 /.config/sway
parentf4ce4b3cc2a161246584c88aeb590732951349b0 (diff)
downloaddots-a5057d11d07684c270bf7f96a6c73762bc55b567.tar.gz
sway: config: restructuring
Signed-off-by: Brahmajit Das <listout@listout.xyz>
Diffstat (limited to '.config/sway')
-rw-r--r--.config/sway/config40
1 files changed, 25 insertions, 15 deletions
diff --git a/.config/sway/config b/.config/sway/config
index 9284457..052ec23 100644
--- a/.config/sway/config
+++ b/.config/sway/config
@@ -1,15 +1,17 @@
exec_always "pkill kanshi; kanshi"
-
-exec mako
-
exec_always nm-applet --indicator
+exec mako
exec "/usr/libexec/polkit-gnome-authentication-agent-1"
-
exec dbus-update-activation-environment --all
exec gnome-keyring-daemon --start --components=secrets
exec export $(gnome-keyring-daemon)
exec gentoo-pipewire-launcher restart &
+exec swayidle -w \
+ timeout 600 'swaylock -f -c 000000' \
+ timeout 610 'swaymsg "output * dpms off"' \
+ resume 'swaymsg "output * dpms on"' \
+ before-sleep 'swaylock -f -c 000000'
set $mod Mod4
@@ -63,6 +65,9 @@ seat seat0 xcursor_theme Adwaita 24
bindsym $mod+w exec firefox-bin | firefox
bindsym $mod+f exec thunar
+bindsym $mod+tab workspace next_on_output
+bindsym $mod+Shift+tab workspace prev_on_output
+
bindsym XF86AudioRaiseVolume exec wpctl set-volume @DEFAULT_SINK@ 5%+
bindsym XF86AudioLowerVolume exec wpctl set-volume @DEFAULT_SINK@ 5%-
bindsym XF86AudioMute exec wpctl set-mute @DEFAULT_SINK@ toggle
@@ -127,7 +132,6 @@ bindsym $mod+Shift+0 move container to workspace number 10
bindsym $mod+s splith
bindsym $mod+v splitv
-
bindsym $mod+Shift+space floating toggle
bindsym $mod+space focus mode_toggle
@@ -140,8 +144,6 @@ bindsym $mod+minus scratchpad show
bindsym control+shift+escape exec $term -T 'flying-bashtop' -e bashtop
bindsym control+shift+n exec $term -T 'flying-nm' -e nmtui
bindsym control+shift+s exec $term -T 'flying-sp'
-for_window [title="flying-*"] floating enable
-for_window [app_id="io.github.celluloid_player.Celluloid"] border none
bindsym Print exec ~/.local/bin/slurpshot
@@ -163,27 +165,35 @@ mode "resize" {
}
bindsym $mod+r mode "resize"
-for_window [window_role = "pop-up"] floating enable
-for_window [window_role = "bubble"] floating enable
-for_window [window_role = "dialog"] floating enable
-for_window [window_type = "dialog"] floating enable
-for_window [window_role = "task_dialog"] floating enable
-for_window [window_type = "menu"] floating enable
+bindsym $mod+ctrl+shift+q [workspace=__focused__] kill
+
+for_window [app_id = "io.github.celluloid_player.Celluloid"] border none
+for_window [app_id = "Alacritty"] floating enable
+for_window [app_id = "firefox"] border none
for_window [app_id = "floating"] floating enable
for_window [app_id = "floating_update"] floating enable, resize set width 1000px height 600px
+for_window [app_id = "qbittorrent"] floating enable
+for_window [app_id = "firefox" title="Library"] floating enable, border pixel 1, sticky enable
for_window [class = "(?i)pinentry"] floating enable
for_window [title = "Administrator privileges required"] floating enable
for_window [title = "Volume Control"] floating enable
for_window [title = "Thunar"] floating enable
+for_window [title = "qbittorrent"] floating enable
for_window [title = "nwg-look"] floating enable
for_window [title = "Calculator"] floating enable
for_window [title = "Disks"] floating enable
for_window [title = "System Monitor"] floating enable
for_window [title = "About Mozilla Firefox"] floating enable
-for_window [window_role = "About"] floating enable
-for_window [app_id="firefox" title="Library"] floating enable, border pixel 1, sticky enable
for_window [title = "Firefox - Sharing Indicator"] kill
for_window [title = "Firefox — Sharing Indicator"] kill
+for_window [title = "flying-*"] floating enable
+for_window [window_role = "About"] floating enable
+for_window [window_role = "pop-up"] floating enable
+for_window [window_role = "bubble"] floating enable
+for_window [window_role = "dialog"] floating enable
+for_window [window_type = "dialog"] floating enable
+for_window [window_role = "task_dialog"] floating enable
+for_window [window_type = "menu"] floating enable
bar {
position top