diff --git a/.bin/.e b/.bin/.e index 8ef310e..0913d7c 100755 --- a/.bin/.e +++ b/.bin/.e @@ -51,6 +51,7 @@ declare -A directory=( ) declare -A hooks=( + ["autostart.toml"]="autostart-manage sync" ["qutebrowser"]="qutebrowser :config-source" ["qutebrowser-kiosk"]="qutebrowser-kiosk :config-source" # broken due to qutebrowser-kiosk being an alias ["sway"]="sway reload" diff --git a/.bin/vim-grep b/.bin/vim-grep index 4f9766d..7bced8b 100755 --- a/.bin/vim-grep +++ b/.bin/vim-grep @@ -1,4 +1,10 @@ #!/usr/bin/env sh +if [ -x "$(command -v rg)" ] +then + $EDITOR $(rg -l "$@") + exit 0 +fi + # shellcheck disable=SC2046 $EDITOR $(grep "$@") diff --git a/.config/alacritty/alacritty.toml b/.config/alacritty/alacritty.toml index 848598d..17e5d1c 100644 --- a/.config/alacritty/alacritty.toml +++ b/.config/alacritty/alacritty.toml @@ -1,3 +1,4 @@ +[general] import = ["~/.config/alacritty/dracula.toml"] [colors] diff --git a/.config/qutebrowser/common.py b/.config/qutebrowser/common.py index 9ec9580..bff489b 100644 --- a/.config/qutebrowser/common.py +++ b/.config/qutebrowser/common.py @@ -29,8 +29,9 @@ def init(c): 'DEFAULT': 'https://duckduckgo.com/?q={}', 'ddg': 'https://duckduckgo.com/?q={}', 'kagi': 'https://kagi.com/search?q={}', - 'lh': 'http://localhost:{}/', - '12ft': 'http://12ft.io/proxy?q={}/', + '!lh': 'http://localhost:{}/', + '!12ft': 'http://12ft.io/proxy?q={}/', + '!osm': 'https://www.openstreetmap.org/search?query={}', } c.url.start_pages = [ 'https://rss.serguzim.me/', diff --git a/.config/waybar/config b/.config/waybar/config index 3e98a79..3193aad 100644 --- a/.config/waybar/config +++ b/.config/waybar/config @@ -16,8 +16,6 @@ "cpu", "memory", "custom/pacman", - "custom/status", - "custom/weather", "clock", "tray" ], diff --git a/.config/waybar/custom/status-serguzim-net b/.config/waybar/custom/status-serguzim-net deleted file mode 100755 index 5a432ed..0000000 --- a/.config/waybar/custom/status-serguzim-net +++ /dev/null @@ -1,14 +0,0 @@ -#!/usr/bin/env sh - -result=$(curl https://status.serguzim.net/api/status-page/heartbeat/serguzim-net \ - | jq '.heartbeatList | to_entries | map(.value | last .status) - | [group_by(.)[] | {value: .[0], count: length}] | map({(.value|tostring): .count}) | add') - -up_count=$(echo "$result" | jq '."1" // 0') -down_count=$(echo "$result" | jq '."0" // 0') -count=$((up_count + down_count)) -percent=$((up_count * 100 / count)) - -tooltip="status.serguzim.net\nUp: $up_count\nDown: $down_count\nTotal: $count\nPercent: $percent%" - -echo "{\"text\": \"$percent%\", \"tooltip\": \"$tooltip\"}" diff --git a/.config/waybar/default-modules.json b/.config/waybar/default-modules.json index 438153f..411a18e 100644 --- a/.config/waybar/default-modules.json +++ b/.config/waybar/default-modules.json @@ -73,13 +73,5 @@ "format": "{}", "tooltip": true, "interval": 1200 - }, - "custom/status": { - "format": "󱖫 {}", - "exec": "~/.config/waybar/custom/status-serguzim-net", - "on-click": "xdg-open 'https://status.serguzim.me'", - "return-type": "json", - "tooltip": true, - "interval": 500 } }