From 007acfc5febebde7a6896b9d074da096b77ed45a Mon Sep 17 00:00:00 2001 From: pauljako Date: Fri, 21 Mar 2025 17:58:52 +0100 Subject: [PATCH 1/3] fix(sway): support for tofi --- sway/dmenu-bluetooth.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sway/dmenu-bluetooth.sh b/sway/dmenu-bluetooth.sh index fddaafe..0fc013c 100755 --- a/sway/dmenu-bluetooth.sh +++ b/sway/dmenu-bluetooth.sh @@ -329,7 +329,7 @@ run_dmenu() { DMENU_BLUETOOTH_LAUNCHER="fuzzel --dmenu" ;; esac - $DMENU_BLUETOOTH_LAUNCHER -i -p "$DMENU_BLUETOOTH_PROMPT" "${dmenu_args[@]}" + $DMENU_BLUETOOTH_LAUNCHER "${dmenu_args[@]}" } print_help() { From aff27108bd18d615fc98925ba37aabda597f45dc Mon Sep 17 00:00:00 2001 From: pauljako Date: Fri, 21 Mar 2025 17:59:16 +0100 Subject: [PATCH 2/3] feat(sway): auto screenlocking and window rules --- sway/config | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/sway/config b/sway/config index b00ca34..3633d04 100755 --- a/sway/config +++ b/sway/config @@ -26,7 +26,7 @@ set $filemanager nemo set $dmenu tofi set $menu j4-dmenu-desktop --no-generic --dmenu="$dmenu" set $background ~/.wallpaper -set $lock swaylock -i $background +set $lock swaylock -i $background -F set $bar yambar ### Output configuration # @@ -51,10 +51,25 @@ output * bg $background fill # This will lock your screen after 300 seconds of inactivity, then turn off # your displays after another 300 seconds, and turn your screens back on when # resumed. It will also lock your screen before your computer goes to sleep. + +exec swayidle -w timeout 60 "$lock" + exec_always ~/.config/dotfiles/sway/lock.sh exec_always libinput-gestures +# Assign Windows to Workspaces +for_window [app_id="kitty"] move container to workspace 1; workspace 1 +for_window [app_id="zen"] move container to workspace 2; workspace 2 +for_window [app_id="firefox"] move container to workspace 2; workspace 2 +for_window [app_id="dev.zed.Zed"] move container to workspace 3; workspace 3 +for_window [app_id="Code"] move container to workspace 3; workspace 3 +for_window [app_id="Element"] move container to workspace 5; workspace 5 + +# Floating Rules +for_window [app_id="org.pulseaudio.pavucontrol"] floating enable + + default_border pixel blur enable corner_radius 10 @@ -274,6 +289,6 @@ bindsym $mod+r mode "resize" # inactive_workspace #32323288 #32323288 #ffffff # } # } -exec_always $bar +exec $bar include /etc/sway/config.d/* From b74fb85125825df8be2416e29cae8945f105677a Mon Sep 17 00:00:00 2001 From: pauljako Date: Sun, 30 Mar 2025 13:20:06 +0200 Subject: [PATCH 3/3] feat(sway): colorscheme --- sway/config | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/sway/config b/sway/config index 3633d04..daca776 100755 --- a/sway/config +++ b/sway/config @@ -52,7 +52,7 @@ output * bg $background fill # your displays after another 300 seconds, and turn your screens back on when # resumed. It will also lock your screen before your computer goes to sleep. -exec swayidle -w timeout 60 "$lock" +exec swayidle -w timeout 120 "$lock" exec_always ~/.config/dotfiles/sway/lock.sh exec_always libinput-gestures @@ -86,6 +86,12 @@ layer_effects "launcher" { } gaps inner 2 + +# Colorscheme +client.focused #84A0C6 #84A0C6 #ffffff +client.urgent #E27878 #E27878 #ffffff +client.focused_inactive #2E313F #2E313F #ffffff + ### Input configuration # # Example configuration: