From a49975dc460dd5cae5be82dee1a113c758e349ff Mon Sep 17 00:00:00 2001 From: Gregory Trolliet Date: Thu, 28 Nov 2024 17:53:44 +0100 Subject: [PATCH 1/3] [sway] Remove unused shortcut and add Thunderbird shortcut --- .config/sway/config | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.config/sway/config b/.config/sway/config index f183f30..12c1979 100644 --- a/.config/sway/config +++ b/.config/sway/config @@ -299,9 +299,8 @@ bindsym $mod+F4 kill # Open the application launcher: bindsym $mod+space exec $menu -# Open the application launcher (alternate version): -bindsym $mod+d exec $menu - +# Open the mail client +bindsym $mod+m exec thunderbird #===============================# # Default windows configuration # From 5b6fea43d2467c168d60015927aa4334f7e8cee1 Mon Sep 17 00:00:00 2001 From: Gregory Trolliet Date: Thu, 28 Nov 2024 17:54:12 +0100 Subject: [PATCH 2/3] [sway] Assign Thunderbird to workspace 3 --- .config/sway/config | 1 + 1 file changed, 1 insertion(+) diff --git a/.config/sway/config b/.config/sway/config index 12c1979..4195fe1 100644 --- a/.config/sway/config +++ b/.config/sway/config @@ -307,6 +307,7 @@ bindsym $mod+m exec thunderbird #===============================# assign [app_id="firefox"] workspace $ws2 +assign [app_id="thunderbird"] workspace $ws3 assign [class="thunderbird-default"] workspace $ws3 for_window [class="TelegramDesktop"] resize set width 30ppt assign [class="TelegramDesktop"] workspace $ws3 From 75af24765cd6f71f363f029d42e2d5c2113ef571 Mon Sep 17 00:00:00 2001 From: Gregory Trolliet Date: Thu, 28 Nov 2024 17:55:12 +0100 Subject: [PATCH 3/3] [sway] Add Nextcloud startup and dropdown terminal --- .config/sway/config | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/.config/sway/config b/.config/sway/config index 4195fe1..ba4b903 100644 --- a/.config/sway/config +++ b/.config/sway/config @@ -318,6 +318,37 @@ for_window [class="Xreader"] resize set width 40ppt for_window [app_id="org.pwmt.zathura"] resize set width 40ppt for_window [app_id="gnome-calendar"] floating enable +#===============================# +# Startup app # +#===============================# + +exec nextcloud + +#===============================# +# Dropdown terminal # +#===============================# +# source: +#https://www.reddit.com/r/swaywm/comments/goxsce/comment/inrdg0k + +# Start with specific app_id/class +set $ddterm-id dropdown-terminal +set $ddterm $term --class $ddterm-id +set $ddterm-resize resize set 100ppt 100ppt, move position 0 0 + +# resize/move new dropdown terminal windows +for_window [app_id="$ddterm-id"] { + floating enable + $ddterm-resize + move to scratchpad + scratchpad show +} + +# show existing or start new dropdown terminal +bindsym Ctrl+Escape exec swaymsg '[app_id="$ddterm-id"] scratchpad show' \ + || $ddterm -e tmuxinator start default \ + && sleep .1 && swaymsg '[app_id="$ddterm-id"] $ddterm-resize' +# ^-- resize again, case moving to different output + #======# # Misc # #======#