diff options
-rw-r--r-- | highlight.css | 24 | ||||
-rwxr-xr-x | randomize_hyprpaper.sh | 20 |
2 files changed, 44 insertions, 0 deletions
diff --git a/highlight.css b/highlight.css new file mode 100644 index 0000000..8360e8d --- /dev/null +++ b/highlight.css @@ -0,0 +1,24 @@ +/* Style definition file generated by highlight 4.14, http://andre-simon.de/ */ +/* highlight theme: Nord */ +body.hl { background-color:#2e3440; } +pre.hl { color:#d8dee9; background-color:#2e3440; font-size:10pt; font-family:'Courier New',monospace; white-space: pre-wrap; } +.hl.num { color:#b48ead; } +.hl.esc { color:#ebcb8b; } +.hl.sng { color:#a3be8c; } +.hl.pps { color:#a3be8c; } +.hl.slc { color:#4c566a; } +.hl.com { color:#4c566a; } +.hl.ppc { color:#5e81ac; } +.hl.opt { color:#81a1c1; } +.hl.ipl { color:#ebcb8b; } +.hl.lin { color:#d8dee9; user-select: none;-webkit-user-select: none; } +.hl.hvr { cursor:help; } +.hl.erm { color:#ff0000; font-weight:bold; border:solid 1px red; margin-left: 3em; } +.hl.err { color:#ff0000; font-weight:bold; } +.hl.kwa { color:#81a1c1; } +.hl.kwb { color:#434c5e; } +.hl.kwc { color:#88c0d0; } +.hl.kwd { color:#8fbcbb; } +.hl.kwe { color:#81a1c1; } +.hl.kwf { color:#8886c4; } + diff --git a/randomize_hyprpaper.sh b/randomize_hyprpaper.sh new file mode 100755 index 0000000..a8457d5 --- /dev/null +++ b/randomize_hyprpaper.sh @@ -0,0 +1,20 @@ +#!/usr/bin/env sh + +###################################################################### +# @author : pico (pico@$HOSTNAME) +# @file : randomize_hyprpaper +# @created : Sunday Jun 08, 2025 18:03:22 CST +# +# @description : +###################################################################### + +WALLPAPER_DIR="$HOME/data/pictures/wallpaper/" +CURRENT_WALL=$(hyprctl hyprpaper listloaded) + +# Get the name of the focused monitor with hyprctl +FOCUSED_MONITOR=$(hyprctl monitors -j | jq -r '.[] | select(.focused) | .name') + +# Get a random wallpaper that is not the current one +WALLPAPER=$(find "$WALLPAPER_DIR" -type f ! -name "$(basename "$CURRENT_WALL")" | shuf -n 1) + +hyprctl hyprpaper reload "$FOCUSED_MONITOR","$WALLPAPER" |