Skip to content

Instantly share code, notes, and snippets.

@stuart-warren
Created February 22, 2023 21:33
Show Gist options
  • Save stuart-warren/bdf33fcbd95c3ecec10f070cc32b0df0 to your computer and use it in GitHub Desktop.
Save stuart-warren/bdf33fcbd95c3ecec10f070cc32b0df0 to your computer and use it in GitHub Desktop.
Diff of sway config changes from default /etc/sway/config
10a11
> set $hyper Mod4+Mod1+Ctrl+Shift
61a63,66
> input "type:keyboard" {
> xkb_layout us
> xkb_variant dvorak
> }
74c79
< bindsym $mod+d exec $menu
---
> bindsym $mod+space exec $menu
139a145,150
> # Apps:
> #
> bindsym $hyper+b exec pgrep chrome && swaymsg '[class="Chromium"] focus' || chromium
> bindsym $hyper+t exec pgrep foot && swaymsg '[app_id="foot"] focus' || foot
>
> #
157c168
< bindsym $mod+Shift+space floating toggle
---
> bindsym $mod+Shift+d floating toggle
160c171
< bindsym $mod+space focus mode_toggle
---
> bindsym $mod+d focus mode_toggle
@stuart-warren
Copy link
Author

swaymsg -t get_tree | jq '.nodes[].nodes[].nodes[] | select(.window_properties.instance=="google-chrome")'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment