diff --git a/.config/sway/config b/.config/sway/config index 7690e8b..1c79592 100644 --- a/.config/sway/config +++ b/.config/sway/config @@ -257,13 +257,22 @@ for_window [class=".*"] border pixel 0 focus_follows_mouse yes hide_edge_borders smart -# Floaterizer 9000 +# Window Properties +# Example usage: swaymsg 'set $PROP floating:border10:sticky ; exec alacritty' +set $PROP none for_window [app_id="pinentry*"]; floating enable for_window [app_id="lxqt-policykit-aget"]; floating enable +for_window [shell="."] mark --add "prop:$$PROP:" +for_window [con_mark=^prop.*:floating:] floating enable +for_window [con_mark=^prop.*:fullscreen:] fullscreen enable +for_window [con_mark=^prop.*:sticky:] sticky enable +for_window [con_mark=^prop:] mark --toggle "prop:$$PROP:" ; set $$PROP none + # Gaps gaps inner 5 + # Colors # class border bground text indicator child_border client.focused #4285F4 #4285F4 #FFFFFF #4285F4 #2F60B0 diff --git a/.config/waybar/config b/.config/waybar/config index 86671dc..8ed19aa 100644 --- a/.config/waybar/config +++ b/.config/waybar/config @@ -59,7 +59,7 @@ "interval": 10, - "on-click": "alacritty -e nmtui", + "on-click": "swaymsg 'set $PROP floating; exec alacritty -e nmtui'", "tooltip": true, "tooltip-format": "Connected via {ifname}\nIP: {ipaddr}/{cidr}\nBandwidth: {bandwidthDownBits} | {bandwidthUpBits}", @@ -76,7 +76,7 @@ "default": ["奄", "奔", "墳"] }, "scroll-step": 5, - "on-click": "pavucontrol-qt", + "on-click": "swaymsg 'set $PROP floating; exec pavucontrol-qt'", "tooltip": false }, "custom/spotify": {