diff --git a/desktop/.config/waybar/config b/desktop/.config/waybar/config index e7f5bdb..2ceff8a 100644 --- a/desktop/.config/waybar/config +++ b/desktop/.config/waybar/config @@ -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", diff --git a/desktop/.config/waybar/modules/keepawake b/desktop/.config/waybar/modules/keepawake index b73ebb8..bbb78d1 100755 --- a/desktop/.config/waybar/modules/keepawake +++ b/desktop/.config/waybar/modules/keepawake @@ -13,18 +13,14 @@ 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 pgrep -x swayidle >/dev/null; then +if [ "$pid" != "" ]; then status="idle-enabled" fi diff --git a/qutebrowser/config/searchengines.py b/qutebrowser/config/searchengines.py index c2a674e..d7b77c4 100644 --- a/qutebrowser/config/searchengines.py +++ b/qutebrowser/config/searchengines.py @@ -14,6 +14,7 @@ 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={}",