[sway] Add Nextcloud startup and dropdown terminal
This commit is contained in:
parent
5b6fea43d2
commit
75af24765c
1 changed files with 31 additions and 0 deletions
|
@ -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="org.pwmt.zathura"] resize set width 40ppt
|
||||||
for_window [app_id="gnome-calendar"] floating enable
|
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 #
|
# Misc #
|
||||||
#======#
|
#======#
|
||||||
|
|
Loading…
Reference in a new issue