diff --git a/README.md b/README.md index 2337f42..dc03b1d 100644 --- a/README.md +++ b/README.md @@ -878,6 +878,14 @@ for_window [title="sway-launcher"] floating enable gaps outer 0 ``` +6. all apps + + Borrowed from: + + ```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 ``` - + ### ~/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)" ``` - + ### Examples: diff --git a/dot-config/sway/config b/dot-config/sway/config index 84fe539..1befdac 100644 --- a/dot-config/sway/config +++ b/dot-config/sway/config @@ -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 diff --git a/linux-config.org b/linux-config.org index bfea459..0592ca1 100644 --- a/linux-config.org +++ b/linux-config.org @@ -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