24/07/2026

This commit is contained in:
Domipoke
2026-07-24 14:34:57 +02:00
parent 44b9c40c44
commit 24a7513e69
36 changed files with 177 additions and 158 deletions
+10
View File
@@ -0,0 +1,10 @@
## Configuration file for eos-welcome.
# Note: using bash syntax.
#
# 'Greeter' values: enable or disable.
# 'OnceDaily' values: no or yes; yes means eos-welcome is shown only once a day.
# 'LastCheck' values: automatically filled by eos-welcome.
Greeter=enable
OnceDaily=no
LastCheck=0
+4
View File
@@ -0,0 +1,4 @@
#!/bin/sh
hyprpicker --format hex | head -c -1 | wl-copy
convert -size 100x100 xc:$(wl-paste) /tmp/color.png
notify-send -i /tmp/color.png "Copied to your clipboard!" "$(wl-paste)"
+4
View File
@@ -0,0 +1,4 @@
if [ ! -f "$HOME/.current_wallpaper" ]; then
matugen image -t scheme-fidelity -m dark --source-color-index 0 ~/.config/wallpapers/decline.png --show-colors --verbose --fallback-color "#000000"
cp ~/.config/wallpapers/decline.png ~/.current_wallpaper
fi
+10
View File
@@ -0,0 +1,10 @@
#!/bin/bash
if pgrep -x "hyprsunset" > /dev/null
then
killall -9 hyprsunset
notify-send "🌞 Day Mode Activated" -u "low"
else
hyprsunset -t 3500 &
notify-send "🌙 Night Mode Activated" -u "low"
fi
+115
View File
@@ -0,0 +1,115 @@
#!/bin/bash
if [ $# -eq 0 ]; then
echo "Usage: $0 --title | --arturl | --artist | --length | --album | --source"
exit 1
fi
# Function to get metadata using playerctl
get_metadata() {
key=$1
playerctl metadata --format "{{ $key }}" 2>/dev/null
}
# Check for arguments
# Function to determine the source and return an icon and text
get_source_info() {
trackid=$(get_metadata "mpris:trackid")
if [[ "$trackid" == *"firefox"* ]]; then
echo -e "Firefox 󰈹"
elif [[ "$trackid" == *"spotify"* ]]; then
echo -e "Spotify "
elif [[ "$trackid" == *"chromium"* ]]; then
echo -e "Chrome "
else
echo ""
fi
}
# Parse the argument
case "$1" in
--title)
title=$(get_metadata "xesam:title")
if [ -z "$title" ]; then
echo ""
else
echo "${title:0:28}" # Limit the output to 50 characters
fi
;;
--arturl)
url=$(get_metadata "mpris:artUrl")
if [ -z "$url" ]; then
echo ""
else
if [[ "$url" == file://* ]]; then
url=${url#file://}
elif [[ "$url" == http://* || "$url" == https://* ]]; then
filename=$(basename "$url")
if [[ "$filename" != *.png && "$filename" != *.jpg && "$filename" != *.jpeg ]]; then
filename="${filename}.jpg"
fi
wget -q "$url" -O "/tmp/$filename"
url="/tmp/$filename"
fi
# Make sure local files also have a png/jpg extension if required
if [[ "$url" != *.png && "$url" != *.jpg && "$url" != *.jpeg ]]; then
if [ -f "$url" ]; then
cp "$url" "/tmp/$(basename "$url").jpg"
url="/tmp/$(basename "$url").jpg"
fi
fi
echo "$url"
fi
;;
--artist)
artist=$(get_metadata "xesam:artist")
if [ -z "$artist" ]; then
echo ""
else
echo "${artist:0:30}" # Limit the output to 50 characters
fi
;;
--length)
length=$(get_metadata "mpris:length")
if [ -z "$length" ]; then
echo ""
else
# Convert length from microseconds to a more readable format (seconds)
echo "$(echo "scale=2; $length / 1000000 / 60" | bc) m"
fi
;;
--status)
status=$(playerctl status 2>/dev/null)
if [[ $status == "Playing" ]]; then
echo "󰎆"
elif [[ $status == "Paused" ]]; then
echo "󱑽"
else
echo ""
fi
;;
--album)
album=$(playerctl metadata --format "{{ xesam:album }}" 2>/dev/null)
if [[ -n $album ]]; then
echo "$album"
else
status=$(playerctl status 2>/dev/null)
if [[ -n $status ]]; then
echo "Not album"
else
echo ""
fi
fi
;;
--source)
get_source_info
;;
*)
echo "Invalid option: $1"
echo "Usage: $0 --title | --url | --artist | --length | --album | --source"
exit 1
;;
esac
+8
View File
@@ -0,0 +1,8 @@
#!/bin/bash
sleep 1
killall xdg-desktop-portal-hyprland
killall xdg-desktop-portal-wlr
killall xdg-desktop-portal
/usr/libexec/xdg-desktop-portal-hyprland &
sleep 2
/usr/lib/xdg-desktop-portal &
+11
View File
@@ -0,0 +1,11 @@
#!/bin/sh
# Toggle mirroring HDMI-A-1 to/from eDP-1 on Hyprland
isMirror=$(hyprctl monitors all -j | jq -r '.[] | select(.name=="HDMI-A-1") | .mirrorOf' 2>/dev/null || echo "none")
echo "Current mirror status: $isMirror"
if [ "$isMirror" == "none" ]; then
hyprctl eval 'hl.monitor({ output = "HDMI-A-1", mode = "1920x1080@59.95", position = "1920x0", scale = 1.0, mirror = "eDP-1" })'
else
hyprctl eval 'hl.monitor({ output = "HDMI-A-1", mode = "1920x1080@59.95", position = "1920x0", scale = 1.0, mirror = "none"})'
fi
+7
View File
@@ -0,0 +1,7 @@
#!/bin/bash
set -eu
WALL=$1
echo "setting $WALL as wallpaper"
matugen image -t scheme-fidelity -m dark $WALL --show-colors --verbose --fallback-color "#000000"
echo "set $WALL as wallpaper sucessfuly"