Hyprland dotfiles
| 1 | #!/bin/bash |
| 2 | # /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ ## |
| 3 | # simple bash script to check if update is available by comparing local version and github version |
| 4 | |
| 5 | # Local Paths |
| 6 | local_dir="/.config/hypr" |
| 7 | iDIR="/.config/swaync/images/" |
| 8 | local_version= |
| 9 | KooL_Dots_DIR="/Hyprland-Dots" |
| 10 | |
| 11 | # exit if cannot find local version |
| 12 | if [; then |
| 13 | |
| 14 | |
| 15 | fi |
| 16 | |
| 17 | # GitHub URL - KooL's dots |
| 18 | branch="main" |
| 19 | github_url="https://github.com/JaKooLit/Hyprland-Dots/tree//config/hypr/" |
| 20 | |
| 21 | # Fetch the version from GitHub URL - KooL's dots |
| 22 | github_version= |
| 23 | |
| 24 | # Cant find GitHub URL - KooL's dots version |
| 25 | if [; then |
| 26 | |
| 27 | fi |
| 28 | |
| 29 | # Comparing local and github versions |
| 30 | if [; then |
| 31 | |
| 32 | |
| 33 | else |
| 34 | # update available |
| 35 | notify_cmd_base="notify-send -t 10000 -A action1=Update -A action2=NO -h string:x-canonical-private-synchronous:shot-notify" |
| 36 | notify_cmd_shot=" -i /ja.png" |
| 37 | |
| 38 | response= |
| 39 | |
| 40 | case "" in |
| 41 | "action1") |
| 42 | if [; then |
| 43 | if ! ; then |
| 44 | |
| 45 | |
| 46 | fi |
| 47 | |
| 48 | |
| 49 | |
| 50 | |
| 51 | |
| 52 | |
| 53 | |
| 54 | |
| 55 | else |
| 56 | if ! ; then |
| 57 | |
| 58 | |
| 59 | fi |
| 60 | |
| 61 | |
| 62 | |
| 63 | |
| 64 | |
| 65 | |
| 66 | |
| 67 | fi |
| 68 | ;; |
| 69 | "action2") |
| 70 | |
| 71 | ;; |
| 72 | esac |
| 73 | fi |