some other script tweaks
This commit is contained in:
parent
c3661ea5ce
commit
85c1e3be84
2 changed files with 17 additions and 13 deletions
|
@ -1,7 +1,7 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
# ─< scriptdir declaration >──────────────────────────────────────────────────────────────
|
||||
_scripts="$HOME/.config/hypr/.scripts"
|
||||
SCRIPTS="$HOME/.config/hypr/.scripts"
|
||||
|
||||
# ─< Check if the given command exists silently >─────────────────────────────────────────
|
||||
command_exists() {
|
||||
|
@ -20,7 +20,7 @@ _kill_() {
|
|||
}
|
||||
|
||||
_redshift() {
|
||||
. $_scripts/redshift.sh && notify-send -u low "" "Redshift active"
|
||||
. $SCRIPTS/redshift.sh && notify-send -u low "" "Redshift active"
|
||||
}
|
||||
|
||||
# ─< Relaunch waybar >────────────────────────────────────────────────────────────────────
|
||||
|
@ -94,10 +94,10 @@ main() {
|
|||
sleep 0.2
|
||||
# swaync >/dev/null 2>&1 &
|
||||
# notify-send "low" "bar" "launching.."
|
||||
bash "$_scripts/bar"
|
||||
bash "$SCRIPTS/bar"
|
||||
|
||||
notify-send "low" "wallpaper" "loading.."
|
||||
bash "$_scripts/wallpaper"
|
||||
bash "$SCRIPTS/wallpaper"
|
||||
|
||||
if command_exists redshift; then
|
||||
notify-send "low" "redshift" "protecting your eyes from the blue light.."
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue