diff --git a/hypr/bin/toggle_weather_ags b/hypr/bin/toggle_weather_ags new file mode 100755 index 0000000..3cee912 --- /dev/null +++ b/hypr/bin/toggle_weather_ags @@ -0,0 +1,9 @@ +#!/bin/sh + +if [ ! -f ~/.ags_weather ]; then + ags --bus-name weather -c ~/dotfiles/ags/weather/config.js & + touch ~/.ags_weather +else + ags --bus-name weather -c ~/dotfiles/ags/weather/config.js --quit + rm ~/.ags_weather +fi diff --git a/shell/source.sh b/shell/source.sh index 28c67c4..9d904fb 100644 --- a/shell/source.sh +++ b/shell/source.sh @@ -3,6 +3,9 @@ export PATH=$PATH:~/dotfiles/bin:~/dotfiles/hypr/bin:~/dotfiles/dwm/bin/:~/.carg alias psa='busybox ps' alias c='clear' +alias e='echo' +alias s='source' +alias kcat='kitty icat' alias g='git' alias ga='git add' @@ -33,3 +36,6 @@ alias gra='git remote add' alias grrm='git remote remove' alias gstall='git stash --all' alias gst='git status' + + +alias una='uname -a' diff --git a/waybar/config b/waybar/config index 53ef1cc..631ee54 100644 --- a/waybar/config +++ b/waybar/config @@ -138,7 +138,7 @@ "interval": 900, "exec": "wttrbar --location tomsk", "return-type": "json", - "on-click": "ags -c ~/dotfiles/ags/weather/config.js" + "on-click": "~/dotfiles/hypr/bin/toggle_weather_ags" }, "custom/pacman": { "format": "{} ",