Temporary remove Scratchpad module
This commit is contained in:
parent
9971db1ee8
commit
f487ab78fb
4 changed files with 6 additions and 34 deletions
6
debian/changelog
vendored
6
debian/changelog
vendored
|
@ -1,3 +1,9 @@
|
||||||
|
tileos-settings-sway (1.0.9~tileos) unstable; urgency=medium
|
||||||
|
|
||||||
|
* Temporary remove Scratchpad module
|
||||||
|
|
||||||
|
-- Aleksey Samoilov <samoilov.lex@gmail.com> Mon, 22 Jan 2024 22:23:51 +0400
|
||||||
|
|
||||||
tileos-settings-sway (1.0.8~tileos) unstable; urgency=medium
|
tileos-settings-sway (1.0.8~tileos) unstable; urgency=medium
|
||||||
|
|
||||||
* Fix cursor for GTK 2 apps
|
* Fix cursor for GTK 2 apps
|
||||||
|
|
|
@ -6,7 +6,6 @@
|
||||||
"modules-center": ["custom/wf-recorder", "sway/mode"],
|
"modules-center": ["custom/wf-recorder", "sway/mode"],
|
||||||
"modules-right": [
|
"modules-right": [
|
||||||
"tray",
|
"tray",
|
||||||
"custom/scratchpad",
|
|
||||||
"custom/playerctl",
|
"custom/playerctl",
|
||||||
"custom/wlsunset",
|
"custom/wlsunset",
|
||||||
"idle_inhibitor",
|
"idle_inhibitor",
|
||||||
|
@ -56,19 +55,6 @@
|
||||||
"tooltip": false
|
"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": {
|
"custom/playerctl": {
|
||||||
"interval": "once",
|
"interval": "once",
|
||||||
"tooltip": true,
|
"tooltip": true,
|
||||||
|
|
|
@ -72,7 +72,6 @@ window#waybar.hidden {
|
||||||
#clock,
|
#clock,
|
||||||
#custom-playerctl,
|
#custom-playerctl,
|
||||||
#custom-power,
|
#custom-power,
|
||||||
#custom-scratchpad,
|
|
||||||
#custom-wlsunset,
|
#custom-wlsunset,
|
||||||
#custom-clipboard,
|
#custom-clipboard,
|
||||||
#custom-menu,
|
#custom-menu,
|
||||||
|
@ -108,10 +107,6 @@ window#waybar.hidden {
|
||||||
color: @rosewater;
|
color: @rosewater;
|
||||||
}
|
}
|
||||||
|
|
||||||
#custom-scratchpad {
|
|
||||||
color: @flamingo;
|
|
||||||
}
|
|
||||||
|
|
||||||
#custom-playerctl {
|
#custom-playerctl {
|
||||||
color: @pink;
|
color: @pink;
|
||||||
}
|
}
|
||||||
|
|
|
@ -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'}"
|
|
Loading…
Add table
Reference in a new issue