diff --git a/sway/config.d/02-quaketerm b/sway/config.d/02-quaketerm deleted file mode 100644 index b8f5de7..0000000 --- a/sway/config.d/02-quaketerm +++ /dev/null @@ -1,12 +0,0 @@ -set $qterm-id quaketerm -set $qterm $term --app-id $qterm-id -set $qterm-resize resize set 100ppt 40ppt, move position 0 0 - -for_window [app_id="$qterm-id"] { - floating enable - $qterm-resize - move to scratchpad - scratchpad show -} - -bindsym $mod+grave exec swaymsg '[app_id="$qterm-id"] scratchpad show' || $qterm && sleep .1 && swaymsg '[app_id="$qterm-id"] $qterm-resize' diff --git a/sway/config.d/02-scratchpads b/sway/config.d/02-scratchpads new file mode 100644 index 0000000..9c3af21 --- /dev/null +++ b/sway/config.d/02-scratchpads @@ -0,0 +1,24 @@ +set $qterm-id quaketerm +set $qterm $term --app-id $qterm-id +set $qterm-resize resize set 100ppt 40ppt, move position 0 0 + +set $kass-class kagiassist +set $kass env GOOGLE_API_KEY=no GOOGLE_DEFAULT_CLIENT_ID=no GOOGLE_DEFAULT_CLIENT_SECRET=no /usr/bin/chromium --class=$kass-class --app="https://kagi.com/assistant?profile=jeeves" +set $kass-resize resize set 25ppt 100ppt, move position 0 0 + +for_window [app_id="$qterm-id"] { + floating enable + $qterm-resize + move to scratchpad + scratchpad show +} + +for_window [class="$kass-class"] { + floating enable + $kass-resize + move to scratchpad + scratchpad show +} + +bindsym $mod+grave exec swaymsg '[app_id="$qterm-id"] scratchpad show' || $qterm && sleep .1 && swaymsg '[app_id="$qterm-id"] $qterm-resize' +bindsym $mod+minus exec swaymsg '[class="$kass-class"] scratchpad show' || $kass && sleep .1 && swaymsg '[class="$kass-class"] $kass-resize'