mod-a shows all open apps

This commit is contained in:
rileyrg 2023-07-19 05:41:18 +02:00
parent a7128812fc
commit 93b7608048
3 changed files with 22 additions and 8 deletions

View file

@ -878,6 +878,14 @@ for_window [title="sway-launcher"] floating enable
gaps outer 0
```
6. all apps
Borrowed from: <https://github.com/swaywm/sway/issues/4121>
```conf
bindsym $mod+a exec swaymsg \[con_id=$(swaymsg -t get_tree | jq -r '.nodes | .[] | .nodes | . [] | select(.nodes != null) | .nodes | .[] | select(.name != null) | "\(.id?) \(.name?)"' | rofi -dmenu -i | awk '{print $1}')] focus
```
### scratchpad terminal
@ -951,7 +959,7 @@ bindsym $mod+Shift+space floating toggle
bindsym $mod+space focus mode_toggle
# focus the parent container
bindsym $mod+a focus parent
bindsym $mod+p focus parent
bindsym $mod+Shift+s sticky toggle
@ -2208,7 +2216,7 @@ notify-send -t 3000 "${@}" || true
```
<a id="orga51aff8"></a>
<a id="org1f49b0f"></a>
### ~/bin/sway/sway-screen
@ -2258,7 +2266,7 @@ swaymsg "
### ~/bin/sway/sway-screen-menu
Gui to select a display and enable/disable it. Calls down to [~/bin/sway/sway-screen](#orga51aff8).
Gui to select a display and enable/disable it. Calls down to [~/bin/sway/sway-screen](#org1f49b0f).
:ID: 82455cae-1c48-48b2-a8b3-cb5d44eeaee9
@ -3658,7 +3666,7 @@ make --always-make --dry-run \
## ~/bin/pulse-volume
pulse/pipeline volume control. Pass in a volume string to change the volume (man pactl) or on/off/toggle. It wont allow larger than 100% volume. Always returns the current volume volume/status. See [examples](#orgced991c).
pulse/pipeline volume control. Pass in a volume string to change the volume (man pactl) or on/off/toggle. It wont allow larger than 100% volume. Always returns the current volume volume/status. See [examples](#orga81e7dd).
```bash
#!/usr/bin/env bash
@ -3694,7 +3702,7 @@ echo "$(getVolume)"
```
<a id="orgced991c"></a>
<a id="orga81e7dd"></a>
### Examples:

View file

@ -70,6 +70,8 @@ bindsym --locked XF86MonBrightnessDown exec --no-startup-id light -U 10 && sway-
gaps inner 1
gaps outer 0
bindsym $mod+a exec swaymsg \[con_id=$(swaymsg -t get_tree | jq -r '.nodes | .[] | .nodes | . [] | select(.nodes != null) | .nodes | .[] | select(.name != null) | "\(.id?) \(.name?)"' | rofi -dmenu -i | awk '{print $1}')] focus
bindsym $mod+Shift+minus move scratchpad
bindsym $mod+minus scratchpad show
bindsym $mod+Return exec sway-scratch-terminal
@ -123,7 +125,7 @@ bindsym $mod+Shift+space floating toggle
bindsym $mod+space focus mode_toggle
# focus the parent container
bindsym $mod+a focus parent
bindsym $mod+p focus parent
bindsym $mod+Shift+s sticky toggle

View file

@ -1586,7 +1586,11 @@ done by linux systemd
gaps inner 1
gaps outer 0
#+end_src
**** all apps
Borrowed from: https://github.com/swaywm/sway/issues/4121
#+begin_src conf
bindsym $mod+a exec swaymsg \[con_id=$(swaymsg -t get_tree | jq -r '.nodes | .[] | .nodes | . [] | select(.nodes != null) | .nodes | .[] | select(.name != null) | "\(.id?) \(.name?)"' | rofi -dmenu -i | awk '{print $1}')] focus
#+end_src
*** scratchpad terminal
I want a key to create and then toggle a terminal.
#+begin_src conf
@ -1652,7 +1656,7 @@ I want a key to create and then toggle a terminal.
bindsym $mod+space focus mode_toggle
# focus the parent container
bindsym $mod+a focus parent
bindsym $mod+p focus parent
bindsym $mod+Shift+s sticky toggle