Skip to content

Commit

Permalink
Merge pull request #54 from NotoriousArnav/master
Browse files Browse the repository at this point in the history
Added Hyprpaper Support
  • Loading branch information
thevinter authored Jul 1, 2024
2 parents d595412 + 0329541 commit 0446706
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,13 @@ $ ./styli.sh -x
# KDE
$ ./styli.sh -k
# Hyprpaper (Hyprland)
$ ./styli.sh -hp
# Sway
$ ./styli.sh -y
```

## Tips And Tricks
Expand Down
13 changes: 13 additions & 0 deletions styli.sh
Original file line number Diff line number Diff line change
Expand Up @@ -315,6 +315,12 @@ sway_cmd() {

}

hyprpaper_cmd() {
hyprctl hyprpaper unload "$WALLPAPER"
hyprctl hyprpaper preload "$WALLPAPER"
hyprctl hyprpaper wallpaper "eDP-1,$WALLPAPER"
}

nitrogen_cmd() {
for ((MONITOR = 0; monitor < "$MONITORS"; monitor++)); do
local NITROGEN_ARR=(nitrogen --save --head="$MONITOR")
Expand Down Expand Up @@ -415,6 +421,7 @@ XFCE=false
GNOME=false
NITROGEN=false
SWAY=false
HYPRPAPER=false
MONITORS=1
# SC2034
PARSED_ARGUMENTS=$(getopt -a -n "$0" -o h:w:s:l:b:r:a:c:d:m:pLknxgy:sa --long search:,height:,width:,fehbg:,fehopt:,artist:,subreddit:,directory:,monitors:,termcolor:,lighwal:,kde,nitrogen,xfce,gnome,sway,save -- "$@")
Expand Down Expand Up @@ -498,6 +505,10 @@ while :; do
SWAY=true
shift
;;
-hp | --hyprpaper)
HYPRPAPER=true
shift
;;
-- | '')
shift
break
Expand Down Expand Up @@ -533,6 +544,8 @@ elif [ "$NITROGEN" = true ]; then
nitrogen_cmd
elif [ "$SWAY" = true ]; then
sway_cmd
elif [ "$HYPRPAPER" = true ]; then
hyprpaper_cmd
else
feh_cmd >/dev/null 2>&1
fi
Expand Down

0 comments on commit 0446706

Please sign in to comment.