From 9b3171425da9db77ca68c9af4d220f3e65e3ca1b Mon Sep 17 00:00:00 2001 From: pika Date: Thu, 19 Jun 2025 14:57:35 +0200 Subject: [PATCH] addet scripts --- hotkeys.conf | 5 ++++- {.scripts => scripts}/a.sh | 0 {.scripts => scripts}/bar | 0 {.scripts => scripts}/init | 14 +++++++------- {.scripts => scripts}/init.sh.bak | 0 {.scripts => scripts}/looking-glass.sh | 0 {.scripts => scripts}/quickshell | 0 {.scripts => scripts}/random_swww.sh | 0 {.scripts => scripts}/redshift.sh | 15 ++++++++++++++- {.scripts => scripts}/refresh | 0 {.scripts => scripts}/screenshot | 0 {.scripts => scripts}/screenshot_area | 0 {.scripts => scripts}/screenshot_full | 0 {.scripts => scripts}/wallpaper | 0 {.scripts => scripts}/wlogout.sh | 0 {.scripts => scripts}/ytfzf.sh | 0 16 files changed, 25 insertions(+), 9 deletions(-) rename {.scripts => scripts}/a.sh (100%) rename {.scripts => scripts}/bar (100%) rename {.scripts => scripts}/init (92%) rename {.scripts => scripts}/init.sh.bak (100%) rename {.scripts => scripts}/looking-glass.sh (100%) rename {.scripts => scripts}/quickshell (100%) rename {.scripts => scripts}/random_swww.sh (100%) rename {.scripts => scripts}/redshift.sh (62%) rename {.scripts => scripts}/refresh (100%) rename {.scripts => scripts}/screenshot (100%) rename {.scripts => scripts}/screenshot_area (100%) rename {.scripts => scripts}/screenshot_full (100%) rename {.scripts => scripts}/wallpaper (100%) rename {.scripts => scripts}/wlogout.sh (100%) rename {.scripts => scripts}/ytfzf.sh (100%) diff --git a/hotkeys.conf b/hotkeys.conf index 0514d05..ae81d84 100644 --- a/hotkeys.conf +++ b/hotkeys.conf @@ -59,6 +59,8 @@ $screenshotTool = $SCRIPTS/screenshot $menu = $fuzzel $lockscreen = $hyprlock +$camera = bash '/home/pika/Dokumente/git/forgejo/pika/private/dev/scripts/camera.sh' + $wallpaper = "$SCRIPTS/wallpaper random" # $test = $SCRIPTS/a.sh @@ -91,7 +93,8 @@ bind = $mainMod SHIFT, W, exec, bash -c $wallpaper bind = SUPER SHIFT, S, exec, $screenshotTool bind = $mainMod CTRL, RETURN, exec, $logout -bind = $SUPER, L, exec, $lockscreen +bind = SUPER, L, exec, $lockscreen +bind = $mainMod SHIFT, C, exec, $camera # ─< start other applications >─────────────────────────────────────────────────────────── bind = $mainMod SHIFT, N, exec, nwg-look diff --git a/.scripts/a.sh b/scripts/a.sh similarity index 100% rename from .scripts/a.sh rename to scripts/a.sh diff --git a/.scripts/bar b/scripts/bar similarity index 100% rename from .scripts/bar rename to scripts/bar diff --git a/.scripts/init b/scripts/init similarity index 92% rename from .scripts/init rename to scripts/init index 742e6b4..815e5be 100755 --- a/.scripts/init +++ b/scripts/init @@ -53,13 +53,13 @@ setup-desktop() { case $module in copyq) - pkill copyq 2>/dev/null + # pkill copyq 2>/dev/null copyq --start-server - sleep 1 - if ! pgrep -x copyq >/dev/null; then - log_notify "critical" "ERROR" "CopyQ failed to start. Retrying..." - copyq --start-server - fi + # sleep 1 + # if ! pgrep -x copyq >/dev/null; then + # # log_notify "critical" "ERROR" "CopyQ failed to start. Retrying..." + # copyq --start-server + # fi ;; lxappearance) lxappearance >/dev/null 2>&1 & @@ -76,7 +76,7 @@ setup-desktop() { # ;; redshift) pkill redshift 2>/dev/null - sh "$SCRIPTS/redshift.sh" + bash -c "$SCRIPTS/redshift.sh" ;; wob) local fifo="/tmp/$HYPRLAND_INSTANCE_SIGNATURE.wob" diff --git a/.scripts/init.sh.bak b/scripts/init.sh.bak similarity index 100% rename from .scripts/init.sh.bak rename to scripts/init.sh.bak diff --git a/.scripts/looking-glass.sh b/scripts/looking-glass.sh similarity index 100% rename from .scripts/looking-glass.sh rename to scripts/looking-glass.sh diff --git a/.scripts/quickshell b/scripts/quickshell similarity index 100% rename from .scripts/quickshell rename to scripts/quickshell diff --git a/.scripts/random_swww.sh b/scripts/random_swww.sh similarity index 100% rename from .scripts/random_swww.sh rename to scripts/random_swww.sh diff --git a/.scripts/redshift.sh b/scripts/redshift.sh similarity index 62% rename from .scripts/redshift.sh rename to scripts/redshift.sh index b1bb6d3..1d26b58 100755 --- a/.scripts/redshift.sh +++ b/scripts/redshift.sh @@ -10,7 +10,20 @@ _rdshft() { local temp="5200" if command_exists redshift; then - pkill redshift redshift + pkill redshift redshift || { + sleep 1 + pkill redshift redshift-gtk && + redshift -P -O "$temp" + # redshift -P -O "$temp" + + # Check if redshift is running + sleep 2 + if ! pgrep -x redshift-gtk >/dev/null && ! pgrep -x redshift >/dev/null; then + notify-send -u critical "ERROR" "Redshift failed to start. Please check your configuration." + else + notify-send -u normal "INFO" "Redshift started successfully." + fi + } sleep 1 pkill redshift redshift-gtk && redshift -P -O "$temp" diff --git a/.scripts/refresh b/scripts/refresh similarity index 100% rename from .scripts/refresh rename to scripts/refresh diff --git a/.scripts/screenshot b/scripts/screenshot similarity index 100% rename from .scripts/screenshot rename to scripts/screenshot diff --git a/.scripts/screenshot_area b/scripts/screenshot_area similarity index 100% rename from .scripts/screenshot_area rename to scripts/screenshot_area diff --git a/.scripts/screenshot_full b/scripts/screenshot_full similarity index 100% rename from .scripts/screenshot_full rename to scripts/screenshot_full diff --git a/.scripts/wallpaper b/scripts/wallpaper similarity index 100% rename from .scripts/wallpaper rename to scripts/wallpaper diff --git a/.scripts/wlogout.sh b/scripts/wlogout.sh similarity index 100% rename from .scripts/wlogout.sh rename to scripts/wlogout.sh diff --git a/.scripts/ytfzf.sh b/scripts/ytfzf.sh similarity index 100% rename from .scripts/ytfzf.sh rename to scripts/ytfzf.sh