diff --git a/debian/changelog b/debian/changelog index 83cc0f9..6fe0889 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,9 @@ +tileos-settings-sway (1.0.9~tileos) unstable; urgency=medium + + * Temporary remove Scratchpad module + + -- Aleksey Samoilov Mon, 22 Jan 2024 22:23:51 +0400 + tileos-settings-sway (1.0.8~tileos) unstable; urgency=medium * Fix cursor for GTK 2 apps diff --git a/etc/skel/.config/waybar/config.jsonc b/etc/skel/.config/waybar/config.jsonc index cd58a1c..0c33783 100644 --- a/etc/skel/.config/waybar/config.jsonc +++ b/etc/skel/.config/waybar/config.jsonc @@ -6,7 +6,6 @@ "modules-center": ["custom/wf-recorder", "sway/mode"], "modules-right": [ "tray", - "custom/scratchpad", "custom/playerctl", "custom/wlsunset", "idle_inhibitor", @@ -56,19 +55,6 @@ "tooltip": false }, - "custom/scratchpad": { - "interval": "once", - "return-type": "json", - "format": "{icon}", - "format-icons": { - "one": "", - "many": "" - }, - "exec": "/bin/bash /usr/share/sway/scripts/scratchpad.sh; pkill -RTMIN+7 waybar", - "on-click": "swaymsg 'scratchpad show'", - "signal": 7 - }, - "custom/playerctl": { "interval": "once", "tooltip": true, diff --git a/etc/skel/.config/waybar/style.css b/etc/skel/.config/waybar/style.css index f92e9f2..0e02abf 100644 --- a/etc/skel/.config/waybar/style.css +++ b/etc/skel/.config/waybar/style.css @@ -72,7 +72,6 @@ window#waybar.hidden { #clock, #custom-playerctl, #custom-power, -#custom-scratchpad, #custom-wlsunset, #custom-clipboard, #custom-menu, @@ -108,10 +107,6 @@ window#waybar.hidden { color: @rosewater; } -#custom-scratchpad { - color: @flamingo; -} - #custom-playerctl { color: @pink; } diff --git a/usr/share/sway/scripts/scratchpad.sh b/usr/share/sway/scripts/scratchpad.sh deleted file mode 100755 index f9329f8..0000000 --- a/usr/share/sway/scripts/scratchpad.sh +++ /dev/null @@ -1,15 +0,0 @@ -#!/bin/bash -tooltip=$(swaymsg -r -t get_tree | jq -r 'recurse(.nodes[]) | first(select(.name=="__i3_scratch")) | .floating_nodes | .[] | "\(.app_id) | \(.name)"') -count=$(echo -n "$tooltip" | grep -c '^') - -if [ "$count" -eq 0 ]; then - exit 1 -elif [ "$count" -eq 1 ]; then - class="one" -elif [ "$count" -gt 1 ]; then - class="many" -else - class="unknown" -fi - -printf '{"text":"%s", "class":"%s", "alt":"%s", "tooltip":"%s"}\n' "$count" "$class" "$class" "${tooltip//$'\n'/'\n'}"