This commit is contained in:
2026-01-02 18:21:59 +02:00
parent 97e6fdca0e
commit aabb3b1566
4 changed files with 18 additions and 11 deletions

View File

@@ -153,6 +153,10 @@ input type:pointer {
floating_maximum_size -1 x -1
for_window [app_id="floating_window"] floating enable
for_window [app_id="pavucontrol"] floating enable
for_window [class="steam" instance="steamwebhelper"] floating enable
for_window [class="steam" title="Steam"] floating disable
for_window [app_id="net.davidotek.pupgui2"] floating enable
for_window [app_id="blueman-manager"] floating enable
# Border configuration
default_floating_border pixel 1

View File

@@ -1,14 +1,14 @@
# Advanced i3status-rust configuration
# Based on the i3xrocks blocks from your i3 setup
[[block]]
block = "custom"
command = "~/.config/sway/scripts/osrs/osrs-mode-status.sh"
format = " $text "
interval = 1
click = [
{button = "left", cmd = "~/.config/sway/scripts/osrs/osrs-mode-toggle.sh", update = true}
]
#[[block]]
#block = "custom"
#command = "~/.config/sway/scripts/osrs/osrs-mode-status.sh"
#format = " $text "
#interval = 1
#click = [
# {button = "left", cmd = "~/.config/sway/scripts/osrs/osrs-mode-toggle.sh", update = true}
#]
[[block]]
block = "custom"

View File

@@ -1,5 +1,7 @@
#!/bin/bash
FOCUSED=$(swaymsg -t get_tree | jq '.. | select(.type?) | select(.focused==true) | .name')
#FOCUSED=$(swaymsg -t get_tree | jq '.. | select(.type?) | select(.focused==true) | .name')
#FOCUSED=$(swaymsg -t get_tree | jq '.. | select(.type?) | select(.focused==true)')
FOCUSED=$(swaymsg -t get_tree | jq '.. | select(.type?) | select(.focused==true) | .app_id')
echo "$FOCUSED"