mirror of
https://github.com/CoolnsX/hyprdots.git
synced 2025-12-20 07:15:23 +05:30
I will not apologize for art.
This commit is contained in:
15
hypr/launch
Executable file
15
hypr/launch
Executable file
@@ -0,0 +1,15 @@
|
||||
#!/bin/sh
|
||||
|
||||
menu() {
|
||||
bemenu --fn 'IBM Plex Sans 15' -i -c -W "0.${2:-5}" -B 3 -p "$1" -l 25 -P ">>"
|
||||
}
|
||||
|
||||
[ -z "$1" ] && dir="$HOME/repos_scripts" || dir="$1"
|
||||
|
||||
[ -d "$dir" ] || exit 0
|
||||
|
||||
script=$(find "$dir" -maxdepth 1 -type f ! -name '*.md' ! -name ".*" -printf "%f\n" | menu "Run Script: " "2")
|
||||
|
||||
[ -z "$script" ] && exit 0
|
||||
|
||||
sh -c "$dir/$script"
|
||||
Reference in New Issue
Block a user