wip
This commit is contained in:
parent
7d6d263d71
commit
f59171268c
6 changed files with 190 additions and 115 deletions
|
@ -1,4 +1,4 @@
|
|||
#!/bin/bash
|
||||
#!/usr/bin/env bash
|
||||
|
||||
# ─< scriptdir declaration >──────────────────────────────────────────────────────────────
|
||||
_scripts="$HOME/.config/hypr/.scripts"
|
||||
|
@ -8,18 +8,6 @@ command_exists() {
|
|||
command -v "$@" >/dev/null 2>&1
|
||||
}
|
||||
|
||||
_wallpaper() {
|
||||
if command -v swww >/dev/null 2>&1; then
|
||||
if [ -e "$_scripts/random_swww.sh" ]; then
|
||||
$_scripts/random_swww.sh
|
||||
else
|
||||
notify-send -u normal "" "script for initializing wallpaper with swww is missing.."
|
||||
fi
|
||||
else
|
||||
notify-send -u low "" "There may be no wallpaper bc swww is missing!"
|
||||
fi
|
||||
}
|
||||
|
||||
_kill_() {
|
||||
# ─< Kill already running processes >─────────────────────────────────────────────────────
|
||||
hyprpanel="gjs" # since hyprpanel has so many different wordings, making it clear that this is currently the hyprpanel service name
|
||||
|
@ -95,17 +83,17 @@ _bar() {
|
|||
|
||||
main() {
|
||||
|
||||
notify-send "low" "terminating main wm elements"
|
||||
# notify-send "low" "terminating main wm elements"
|
||||
_kill_
|
||||
|
||||
# relaunch swaync
|
||||
sleep 0.3
|
||||
# swaync >/dev/null 2>&1 &
|
||||
notify-send "low" "bar" "launching.."
|
||||
_bar
|
||||
# notify-send "low" "bar" "launching.."
|
||||
bash "$scriptdir/bar"
|
||||
|
||||
notify-send "low" "wallpaper" "loading.."
|
||||
_wallpaper
|
||||
bash "$scriptdir/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