shell scripts i use in my day-to-day workflow. they are written on a machine running arch and hyprland, keep that in mind when running elsewhere.
π scripts.sh - script launcher
ββπ color temperature - changes the display's color temperature to a selected preset
ββπ clipboard history - opens a list of clipboard history, copying the selected item
πͺ« battery notification - polls the battery and sends a notification if capacity is low
π markdown preview - launches an instant preview of a markdown file in zathura
π notes.sh - a script for managing markdown notes
scripts.sh:rofi,notify-send, nerd font- color temperature:
wlsunset - clipboard history:
wl-clipboard,cliphist
- color temperature:
- battery notification:
notify-send - markdown preview:
pandoc,zathura
this segment assumes you use hyprland, but similar configuration is achievable on basically any window manager
clone the repo:
git clone https://github.com/mellowcoffee/scripts ~/scriptscreate a keybinding for scripts.sh in your hyprland.conf:
bind = SUPER, A, exec, $scripts
run battery_notify.sh on startup:
exec-once = ~/scripts/battery_notify.sh
add an alias to preview_markdown.sh:
alias mdp="~/scripts/preview_markdown.sh"dmenu, or another compatible alternative may be used instead of rofi by just replacing every instance of rofi -dmenu within the scripts
scripts.sh exposes restart_service.sh, a quick way of restarting jobs such as dunst or hyprpaper. the script may be customized to include other services, or remove existing ones, by just editing the SERVICES map at the beginning of the file.
# ...
declare -A SERVICES
SERVICES=(
["ξ Your service"]="<executable>"
["ο Waybar"]="waybar"
["ο’ Dunst"]="dunst"
["σ°Έ Hyprpaper"]="hyprpaper"
)
# ...