α as alphamark working

This commit is contained in:
rileyrg 2021-05-26 23:01:28 +02:00
parent 1d6a595c56
commit 8dff0538ad
3 changed files with 10 additions and 9 deletions

View file

@ -779,9 +779,10 @@ set $editor 'sway-editor'
set $wallpaper "~/Pictures/Wallpapers/current"
set $trans 0.8
for_window [con_mark=alpha] opacity set $trans
set $alphamark "α"
for_window [con_mark=$alphamark] opacity set $trans
bindsym $mod+Control+a mark --toggle "alpha" ; [con_id=__focused__] opacity set 1 ; [con_mark=alpha con_id=__focused__] opacity set $trans
bindsym $mod+Control+a mark --toggle "$alphamark" ; [con_id=__focused__] opacity set 1 ; [con_mark=$alphamark con_id=__focused__] opacity set $trans
set $monitor `swaymsg -t get_outputs | jq -r '.[0].name')`
exec sleep 2 && sway-notify $monitor
@ -847,7 +848,7 @@ bindsym $mod+Shift+minus move scratchpad
bindsym $mod+minus scratchpad show
bindsym $mod+Return exec sway-scratch-terminal
for_window [title=ScratchTerminal] mark "alpha", move to scratchpad; [title=ScratchTerminal] scratchpad show
for_window [title=ScratchTerminal] mark "$alphamark", move to scratchpad; [title=ScratchTerminal] scratchpad show
```
1. ~/bin/sway/sway-scratch-terminal :swaysock:
@ -1847,7 +1848,7 @@ notify-send -t 3000 "${@}"
```
<a id="org310f034"></a>
<a id="orgac28aae"></a>
### ~/bin/sway/sway-screen
@ -1868,7 +1869,7 @@ swaymsg "output ${m} ${c}"
### ~/bin/sway/sway-screen-menu
Gui to select a display and enable/disable it. Calls down to [~/bin/sway/sway-screen](#org310f034).
Gui to select a display and enable/disable it. Calls down to [~/bin/sway/sway-screen](#orgac28aae).
:ID: 82455cae-1c48-48b2-a8b3-cb5d44eeaee9

View file

@ -13,9 +13,9 @@ set $wallpaper "~/Pictures/Wallpapers/current"
set $trans 0.8
set $alphamark "α"
for_window [con_mark="$alphamark"] opacity set $trans
for_window [con_mark=$alphamark] opacity set $trans
bindsym $mod+Control+a mark --toggle "$alphamark" ; [con_id=__focused__] opacity set 1 ; [con_mark="$alphamark" con_id=__focused__] opacity set $trans
bindsym $mod+Control+a mark --toggle "$alphamark" ; [con_id=__focused__] opacity set 1 ; [con_mark=$alphamark con_id=__focused__] opacity set $trans
set $monitor `swaymsg -t get_outputs | jq -r '.[0].name')`
exec sleep 2 && sway-notify $monitor

View file

@ -1311,9 +1311,9 @@ $XDG_DATA_HOME/dbus-1/services/org.freedesktop.Notifications.service
set $trans 0.8
set $alphamark "α"
for_window [con_mark="$alphamark"] opacity set $trans
for_window [con_mark=$alphamark] opacity set $trans
bindsym $mod+Control+a mark --toggle "$alphamark" ; [con_id=__focused__] opacity set 1 ; [con_mark="$alphamark" con_id=__focused__] opacity set $trans
bindsym $mod+Control+a mark --toggle "$alphamark" ; [con_id=__focused__] opacity set 1 ; [con_mark=$alphamark con_id=__focused__] opacity set $trans
set $monitor `swaymsg -t get_outputs | jq -r '.[0].name')`
exec sleep 2 && sway-notify $monitor