From 8d64c0401e8ec2dd0abd7ad316bbca35b447cb79 Mon Sep 17 00:00:00 2001 From: Rudis Muiznieks <rudis@sitosis.com> Date: Fri, 28 Mar 2025 13:27:30 -0500 Subject: [PATCH] more sway scratchpad stuff --- sway/config.d/02-quaketerm | 12 ------------ sway/config.d/02-scratchpads | 24 ++++++++++++++++++++++++ 2 files changed, 24 insertions(+), 12 deletions(-) delete mode 100644 sway/config.d/02-quaketerm create mode 100644 sway/config.d/02-scratchpads 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'