aboutsummaryrefslogtreecommitdiffstats
path: root/config/hypr/scripts
diff options
context:
space:
mode:
authorJaKooLit <jimmielovejay.com>2023-11-25 18:54:55 +0900
committerJaKooLit <jimmielovejay.com>2023-11-25 18:54:55 +0900
commit19f025c2dc27da54127ae302482398be61b55ebe (patch)
tree70878cbe3027d9da452658a8644e33d83c1b3ea2 /config/hypr/scripts
parente96d2b933ab630d52061fff9817c95f8a6cf67c2 (diff)
updated
Diffstat (limited to 'config/hypr/scripts')
-rwxr-xr-xconfig/hypr/scripts/Dunst.sh7
-rwxr-xr-xconfig/hypr/scripts/Refresh.sh17
-rwxr-xr-xconfig/hypr/scripts/WallpaperRandom.sh2
-rwxr-xr-xconfig/hypr/scripts/WallpaperSelect.sh1
-rwxr-xr-xconfig/hypr/scripts/Waybar.sh8
-rwxr-xr-xconfig/hypr/scripts/WaybarStyles.sh2
-rwxr-xr-xconfig/hypr/scripts/Wlogout.sh19
7 files changed, 11 insertions, 45 deletions
diff --git a/config/hypr/scripts/Dunst.sh b/config/hypr/scripts/Dunst.sh
deleted file mode 100755
index fa8bc10d..00000000
--- a/config/hypr/scripts/Dunst.sh
+++ /dev/null
@@ -1,7 +0,0 @@
-#!/bin/bash
-
-CONFIG="$HOME/.config/dunst/dunstrc"
-
-if [[ ! $(pidof dunst) ]]; then
- dunst -conf ${CONFIG}
-fi
diff --git a/config/hypr/scripts/Refresh.sh b/config/hypr/scripts/Refresh.sh
index 923d4db8..3037458b 100755
--- a/config/hypr/scripts/Refresh.sh
+++ b/config/hypr/scripts/Refresh.sh
@@ -2,16 +2,17 @@
SCRIPTSDIR=$HOME/.config/hypr/scripts
-# Kill already running process
+# Kill already running processes
_ps=(waybar dunst rofi)
for _prs in "${_ps[@]}"; do
- if [[ $(pidof ${_prs}) ]]; then
- pkill ${_prs}
- fi
+ if pidof "${_prs}" >/dev/null; then
+ pkill "${_prs}"
+ fi
done
-# Lauch notification daemon (dunst)
-${SCRIPTSDIR}/Dunst.sh &
+# relaunch apps
+dunst &
+waybar &
-# Lauch statusbar (waybar)
-${SCRIPTSDIR}/Waybar.sh &
+#sleep 1
+#${SCRIPTSDIR}/RainbowBorders.sh & \ No newline at end of file
diff --git a/config/hypr/scripts/WallpaperRandom.sh b/config/hypr/scripts/WallpaperRandom.sh
index ea04aa01..13bc5033 100755
--- a/config/hypr/scripts/WallpaperRandom.sh
+++ b/config/hypr/scripts/WallpaperRandom.sh
@@ -2,8 +2,6 @@
# This script will randomly go through the files of a directory, setting it
# up as the wallpaper at regular intervals
-#
-# NOTE: this script uses bash (not POSIX shell) for the RANDOM variable
pywal_script=$HOME/.config/hypr/scripts/PywalSwww.sh
pywal_refresh=$HOME/.config/hypr/scripts/Refresh.sh
diff --git a/config/hypr/scripts/WallpaperSelect.sh b/config/hypr/scripts/WallpaperSelect.sh
index 24fcae2e..d748318a 100755
--- a/config/hypr/scripts/WallpaperSelect.sh
+++ b/config/hypr/scripts/WallpaperSelect.sh
@@ -1,6 +1,7 @@
#!/bin/bash
# WALLPAPERS PATH
DIR=$HOME/Pictures/wallpapers
+
# Transition config
FPS=30
TYPE="simple"
diff --git a/config/hypr/scripts/Waybar.sh b/config/hypr/scripts/Waybar.sh
deleted file mode 100755
index 394f309a..00000000
--- a/config/hypr/scripts/Waybar.sh
+++ /dev/null
@@ -1,8 +0,0 @@
-#!/bin/bash
-
-CONFIG="$HOME/.config/waybar/config"
-STYLE="$HOME/.config/waybar/style.css"
-
-if [[ ! $(pidof waybar) ]]; then
- waybar --bar main-bar --log-level error --config ${CONFIG} --style ${STYLE}
-fi
diff --git a/config/hypr/scripts/WaybarStyles.sh b/config/hypr/scripts/WaybarStyles.sh
index de3a54dc..8a420f55 100755
--- a/config/hypr/scripts/WaybarStyles.sh
+++ b/config/hypr/scripts/WaybarStyles.sh
@@ -30,7 +30,7 @@ main() {
apply_style "$choice"
# Restart relevant processes
- for process in waybar mako dunst; do
+ for process in waybar dunst; do
if pgrep -x "$process" >/dev/null; then
pkill "$process"
fi
diff --git a/config/hypr/scripts/Wlogout.sh b/config/hypr/scripts/Wlogout.sh
deleted file mode 100755
index c8ce86c1..00000000
--- a/config/hypr/scripts/Wlogout.sh
+++ /dev/null
@@ -1,19 +0,0 @@
-#!/bin/bash
-
-# If you have 1440p, better to use this
-#wlogout --protocol layer-shell -b 5 -T 600 -B 600 &
-
-# for 1080p
-wlogout --protocol layer-shell -b 5 -T 450 -B 450 &
-
-
-# Capture the PID of the wlogout process
-wlogout_pid=$!
-
-# Wait for up to 30 seconds for wlogout to exit gracefully
-timeout 30s tail --pid $wlogout_pid -f /dev/null
-
-# If wlogout is still running after the timeout, forcefully kill it
-if ps -p $wlogout_pid > /dev/null; then
- kill -KILL $wlogout_pid
-fi
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage