addet scripts
This commit is contained in:
parent
55101b6ba2
commit
9b3171425d
16 changed files with 25 additions and 9 deletions
|
@ -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
|
||||
|
|
|
@ -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"
|
|
@ -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"
|
Loading…
Add table
Add a link
Reference in a new issue