feat ✨: Setup with instructions
This commit is contained in:
parent
a2d85aaa1a
commit
fdcdc5ee4e
9 changed files with 87 additions and 25 deletions
|
@ -151,7 +151,7 @@
|
|||
"format": "\uf03e",
|
||||
"on-click": "~/.config/waybar/scripts/change-wallpaper.sh && hyprpaper",
|
||||
"tooltip": false,
|
||||
"on-click-right": "kitty -e ~/SideProjects/dotsh/mics/select-wallpaper.sh"
|
||||
"on-click-right": "kitty -e ~/.config/waybar/scripts/select-wallpaper.sh"
|
||||
},
|
||||
"network": {
|
||||
"format-wifi": " {icon}",
|
||||
|
|
30
waybar/scripts/select-wallpaper.sh
Executable file
30
waybar/scripts/select-wallpaper.sh
Executable file
|
@ -0,0 +1,30 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
TARGET_DIR="${WALLPAPER_DIR:-$HOME/Pictures/Wallpaper}"
|
||||
CONFIG_PATH="$HOME/.config/hypr/hyprpaper.conf"
|
||||
|
||||
TEMP_FILE=$(mktemp)
|
||||
|
||||
yazi --chooser-file "$TEMP_FILE" "$TARGET_DIR"
|
||||
|
||||
WALLPAPER=$(cat "$TEMP_FILE")
|
||||
rm "$TEMP_FILE"
|
||||
|
||||
if [[ -z "$WALLPAPER" || ! -f "$WALLPAPER" ]]; then
|
||||
echo "No wallpaper selected. Exiting."
|
||||
exit 0
|
||||
fi
|
||||
|
||||
mkdir -p "$(dirname "$CONFIG_PATH")"
|
||||
{
|
||||
echo "preload = $WALLPAPER"
|
||||
echo "wallpaper = eDP-1,$WALLPAPER"
|
||||
echo "splash = off"
|
||||
echo "ipc = off"
|
||||
} > "$CONFIG_PATH"
|
||||
|
||||
pkill hyprpaper
|
||||
hyprctl dispatch exec "hyprpaper"
|
||||
|
||||
notify-send -a "hyprpaper" "Wallpaper Changed" -i "$WALLPAPER"
|
||||
echo "Wallpaper set to: $WALLPAPER"
|
|
@ -114,12 +114,12 @@ menu,
|
|||
animation: none;
|
||||
}
|
||||
|
||||
#workspaces button:not(.active){
|
||||
color : #74c7ec;
|
||||
#workspaces button:not(.active) {
|
||||
color: #74c7ec;
|
||||
}
|
||||
|
||||
#workspaces button:nth-child(1):not(.active) {
|
||||
color:#f38ba8;
|
||||
color: #f38ba8;
|
||||
}
|
||||
#workspaces button:nth-child(2):not(.active) {
|
||||
color: #f9e2af;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue