sway-lid off for a sec. scratchpad tweaks..

This commit is contained in:
rileyrg 2021-05-25 21:47:06 +02:00
parent c4fa35e998
commit 6c0f701bd6
5 changed files with 24 additions and 21 deletions

View file

@ -843,10 +843,10 @@ bindsym $mod+d exec $menu
# Move the currently focused window to the scratchpad
bindsym $mod+Shift+minus move scratchpad
# Show the next scratchpad window or hide the focused scratchpad window.
# If there are multiple scratchpad windows, this command cycles through them.
bindsym $mod+minus scratchpad show
for_window [title=^Scratch] move container to scratchpad
```
@ -1508,9 +1508,9 @@ bindsym $mod+Control+t exec sway-notify "Opening NEW terminal instance" && alacr
exec sway-kanshi
exec sway-idle
exec '[ -f "$HOME/.sway-autostart" ] && . "$HOME/.sway-autostart" && (sleep 1 && sway-notify "~/.sway-autostart processed")'
exec sleep 1 && swaymsg workspace $ws1
exec sleep 2 && gpg-cache
exec sleep 2 && $editor
exec gpg-cache
exec $editor
exec swaymsg workspace $ws1
```
@ -1695,8 +1695,9 @@ exec swayidle -w \
#!/usr/bin/bash
# Maintained in linux-config.org
m="$(swaymsg -t get_outputs | jq -r '.[0].name')"
swaymsg bindswitch lid:on exec "sway-screen disable $m"
swaymsg bindswitch lid:off exec "sway-screen enable $m"
#swaymsg bindswitch lid:on exec "sway-screen disable $m"
#swaymsg bindswitch lid:off exec "sway-screen enable $m"
echo $m
```
@ -1762,7 +1763,7 @@ export SWAYSOCK=/run/user/$(id -u)/sway-ipc.$(id -u).$(pgrep -x sway).sock
```bash
#!/usr/bin/bash
#Maintained in linux-config.org
exec oneterminal "${1:-Terminal}" ""
exec oneterminal "${1:-ScratchTerminal}" ""
```

View file

@ -1,5 +1,6 @@
#!/usr/bin/bash
# Maintained in linux-config.org
m="$(swaymsg -t get_outputs | jq -r '.[0].name')"
swaymsg bindswitch lid:on exec "sway-screen disable $m"
swaymsg bindswitch lid:off exec "sway-screen enable $m"
#swaymsg bindswitch lid:on exec "sway-screen disable $m"
#swaymsg bindswitch lid:off exec "sway-screen enable $m"
echo $m

View file

@ -1,3 +1,3 @@
#!/usr/bin/bash
#Maintained in linux-config.org
exec oneterminal "${1:-Terminal}" ""
exec oneterminal "${1:-ScratchTerminal}" ""

View file

@ -55,10 +55,10 @@ gaps outer 2
# Move the currently focused window to the scratchpad
bindsym $mod+Shift+minus move scratchpad
# Show the next scratchpad window or hide the focused scratchpad window.
# If there are multiple scratchpad windows, this command cycles through them.
bindsym $mod+minus scratchpad show
for_window [title=^Scratch] move container to scratchpad
# change focus
# bindsym $mod+h focus left
@ -254,8 +254,8 @@ exec waybar
exec sway-kanshi
exec sway-idle
exec '[ -f "$HOME/.sway-autostart" ] && . "$HOME/.sway-autostart" && (sleep 1 && sway-notify "~/.sway-autostart processed")'
exec sleep 1 && swaymsg workspace $ws1
exec sleep 2 && gpg-cache
exec sleep 2 && $editor
exec gpg-cache
exec $editor
exec swaymsg workspace $ws1
include /etc/sway/config.d/*

View file

@ -1364,10 +1364,10 @@ gaps outer 2
# Move the currently focused window to the scratchpad
bindsym $mod+Shift+minus move scratchpad
# Show the next scratchpad window or hide the focused scratchpad window.
# If there are multiple scratchpad windows, this command cycles through them.
bindsym $mod+minus scratchpad show
for_window [title=^Scratch] move container to scratchpad
#+end_src
*** navigation :navigation
@ -1992,9 +1992,9 @@ Thank you https://github.com/deanproxy/dotfiles/blob/master/linux/i3/scripts/blu
exec sway-kanshi
exec sway-idle
exec '[ -f "$HOME/.sway-autostart" ] && . "$HOME/.sway-autostart" && (sleep 1 && sway-notify "~/.sway-autostart processed")'
exec sleep 1 && swaymsg workspace $ws1
exec sleep 2 && gpg-cache
exec sleep 2 && $editor
exec gpg-cache
exec $editor
exec swaymsg workspace $ws1
#+end_src
*** library include
#+begin_src conf
@ -2154,8 +2154,9 @@ Just a gathering place of locky/suspendy type things...
#!/usr/bin/bash
# Maintained in linux-config.org
m="$(swaymsg -t get_outputs | jq -r '.[0].name')"
swaymsg bindswitch lid:on exec "sway-screen disable $m"
swaymsg bindswitch lid:off exec "sway-screen enable $m"
#swaymsg bindswitch lid:on exec "sway-screen disable $m"
#swaymsg bindswitch lid:off exec "sway-screen enable $m"
echo $m
#+end_src
*** ~/bin/sway/sway-lock
:PROPERTIES:
@ -2215,7 +2216,7 @@ Just a gathering place of locky/suspendy type things...
#+begin_src bash :tangle "~/bin/sway/sway-terminal"
#!/usr/bin/bash
#Maintained in linux-config.org
exec oneterminal "${1:-Terminal}" ""
exec oneterminal "${1:-ScratchTerminal}" ""
#+end_src
*** ~/bin/sway/sway-display-swap
https://i3wm.org/docs/user-contributed/swapping-workspaces.html