Compare commits

...

2 commits

Author SHA1 Message Date
cdf48a537e
qutebrowser: Remove kb search engine 2025-06-19 15:57:39 +02:00
89e1c20358
waybar: Fix keepawake module
Was displaying the wrong way round (no coffee on staying awake and coffe
on automatically going to sleep), and removed some useless variable
setting.
2025-06-19 15:57:39 +02:00
3 changed files with 8 additions and 5 deletions

View file

@ -8,8 +8,8 @@
"format-alt": "{} {icon}",
"format-alt-click": "click-right",
"format-icons": {
"idle-disabled": "󰾫 ",
"idle-enabled": "󰅶 "
"idle-disabled": "󰅶 ",
"idle-enabled": "󰾫 "
},
"exec": "~/.config/waybar/modules/keepawake",
"on-click": "~/.config/waybar/modules/keepawake toggle",

View file

@ -13,14 +13,18 @@ if [ "$cmd" != "" ]; then
if [ "$cmd" = "start" ] || [ "$cmd" = "toggle" ] && [ "$status" = "idle-disabled" ]; then
SVDIR="$USER_SV_DIR" sv start swayidle
status="idle-enabled"
elif [ "$cmd" = "stop" ] || [ "$cmd" = "toggle" ] && [ "$status" = "idle-enabled" ]; then
SVDIR="$USER_SV_DIR" sv stop swayidle
status="idle-disabled"
fi
printf "{\"text\": \"\", \"alt\": \"%s\", \"tooltip\": \"\", \"class\": \"\"}" \
"$status"
exit
fi
pid=$(pgrep -x swayidle)
status="idle-disabled"
if [ "$pid" != "" ]; then
if pgrep -x swayidle >/dev/null; then
status="idle-enabled"
fi

View file

@ -14,7 +14,6 @@ c.url.searchengines = {
"gol": "https://golang.org/pkg/{}/",
"hn": "https://hn.algolia.com/?q={}",
"hub": "https://hub.docker.com/search?q={}",
"kb": "https://soeg.kb.dk/discovery/search?query=any,contains,{}&lang=en",
"l": "https://links.martyoeh.me/bookmarks?q={}",
"lib": "http://libgen.fun/search.php?req={}",
"man": "https://manned.org/browse/search?q={}",