This assumes you are using Hyprland and have Hyprpaper installed.
Don't forget to update your WALLPAPER_DIR path.
Also, I put the script in my .config/hypr folder, you should put it where you keep your shell scripts.
This assumes you are using Hyprland and have Hyprpaper installed.
Don't forget to update your WALLPAPER_DIR path.
Also, I put the script in my .config/hypr folder, you should put it where you keep your shell scripts.
| package main | |
| import ( | |
| "bufio" | |
| "bytes" | |
| "fmt" | |
| "html/template" | |
| "log" | |
| "net" | |
| "strings" |
| package amrouter | |
| import ( | |
| "context" | |
| "embed" | |
| "errors" | |
| "fmt" | |
| "net/http" | |
| "regexp" | |
| "strings" |
| package main | |
| import ( | |
| "fmt" | |
| "log" | |
| "net/http" | |
| "strings" | |
| amrouter "github.com/elkcityhazard/am-router" | |
| ) |
| class CountUp { | |
| constructor(elID = "", currentIndex = 0, limit = 100, baseInterval = 30, coolDown = 90) { | |
| this.elID = elID | |
| this.element = document.getElementById(elID) | |
| this.currentIndex = +currentIndex | |
| this.limit = +this.element.dataset['count'] | |
| this.baseInterval = +baseInterval | |
| this.coolDown = +coolDown | |
| this.percentOf = Math.floor(this.limit * this.coolDown / 100) | |
| this.initCountUp() |