Hyprland dotfiles
| 1 | #!/bin/bash |
| 2 | # /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ ## |
| 3 | # Scripts for refreshing ags, waybar, rofi, swaync, wallust |
| 4 | |
| 5 | SCRIPTSDIR=/.config/hypr/scripts |
| 6 | UserScripts=/.config/hypr/UserScripts |
| 7 | |
| 8 | # Define file_exists function |
| 9 | |
| 10 | |
| 11 | |
| 12 | |
| 13 | |
| 14 | |
| 15 | |
| 16 | |
| 17 | # Kill already running processes |
| 18 | _ps=(waybar rofi swaync ags) |
| 19 | for; do |
| 20 | if ; then |
| 21 | |
| 22 | fi |
| 23 | done |
| 24 | |
| 25 | # added since wallust sometimes not applying |
| 26 | |
| 27 | |
| 28 | # quit ags & relaunch ags |
| 29 | && & |
| 30 | |
| 31 | # some process to kill |
| 32 | for; do |
| 33 | |
| 34 | done |
| 35 | |
| 36 | #Restart waybar |
| 37 | |
| 38 | & |
| 39 | |
| 40 | # relaunch swaync |
| 41 | |
| 42 | & |
| 43 | # reload swaync |
| 44 | |
| 45 | |
| 46 | # Relaunching rainbow borders if the script exists |
| 47 | |
| 48 | if ; then |
| 49 | & |
| 50 | fi |
| 51 | |
| 52 |