Skip to content

mellowcoffee/scripts

Repository files navigation

🐚 scripts

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

dependencies

  • scripts.sh: rofi, notify-send, nerd font
    • color temperature: wlsunset
    • clipboard history: wl-clipboard, cliphist
  • battery notification: notify-send
  • markdown preview: pandoc, zathura

usage

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 ~/scripts

create 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"

customization

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"
)
# ...

About

🐚 shell scripts

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages