addet scripts

This commit is contained in:
pika 2025-06-19 14:57:35 +02:00
parent 55101b6ba2
commit 9b3171425d
16 changed files with 25 additions and 9 deletions

View file

@ -59,6 +59,8 @@ $screenshotTool = $SCRIPTS/screenshot
$menu = $fuzzel $menu = $fuzzel
$lockscreen = $hyprlock $lockscreen = $hyprlock
$camera = bash '/home/pika/Dokumente/git/forgejo/pika/private/dev/scripts/camera.sh'
$wallpaper = "$SCRIPTS/wallpaper random" $wallpaper = "$SCRIPTS/wallpaper random"
# $test = $SCRIPTS/a.sh # $test = $SCRIPTS/a.sh
@ -91,7 +93,8 @@ bind = $mainMod SHIFT, W, exec, bash -c $wallpaper
bind = SUPER SHIFT, S, exec, $screenshotTool bind = SUPER SHIFT, S, exec, $screenshotTool
bind = $mainMod CTRL, RETURN, exec, $logout 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 >─────────────────────────────────────────────────────────── # ─< start other applications >───────────────────────────────────────────────────────────
bind = $mainMod SHIFT, N, exec, nwg-look bind = $mainMod SHIFT, N, exec, nwg-look

View file

@ -53,13 +53,13 @@ setup-desktop() {
case $module in case $module in
copyq) copyq)
pkill copyq 2>/dev/null # pkill copyq 2>/dev/null
copyq --start-server copyq --start-server
sleep 1 # sleep 1
if ! pgrep -x copyq >/dev/null; then # if ! pgrep -x copyq >/dev/null; then
log_notify "critical" "ERROR" "CopyQ failed to start. Retrying..." # # log_notify "critical" "ERROR" "CopyQ failed to start. Retrying..."
copyq --start-server # copyq --start-server
fi # fi
;; ;;
lxappearance) lxappearance)
lxappearance >/dev/null 2>&1 & lxappearance >/dev/null 2>&1 &
@ -76,7 +76,7 @@ setup-desktop() {
# ;; # ;;
redshift) redshift)
pkill redshift 2>/dev/null pkill redshift 2>/dev/null
sh "$SCRIPTS/redshift.sh" bash -c "$SCRIPTS/redshift.sh"
;; ;;
wob) wob)
local fifo="/tmp/$HYPRLAND_INSTANCE_SIGNATURE.wob" local fifo="/tmp/$HYPRLAND_INSTANCE_SIGNATURE.wob"

View file

@ -10,7 +10,20 @@ _rdshft() {
local temp="5200" local temp="5200"
if command_exists redshift; then 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 sleep 1
pkill redshift redshift-gtk && pkill redshift redshift-gtk &&
redshift -P -O "$temp" redshift -P -O "$temp"