scripts

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

commit 0cb41986c29405df8510b259d299e1cc9e5b9f45
parent e26f40815779888a86366cfa52a4261f6b51e1a9
Author: AndrewLockVI <andrew@laack.co>
Date:   Mon, 17 Feb 2025 10:57:47 -0600

Updated scripts for power and installation, added brightness and screenshot scripts

Diffstat:
Abrightness.sh | 2++
Minstall.sh | 8++++----
Mpower.sh | 11++++++++++-
Ascreenshot.sh | 3+++
4 files changed, 19 insertions(+), 5 deletions(-)

diff --git a/brightness.sh b/brightness.sh @@ -0,0 +1,2 @@ +#!/bin/bash +brightnessctl --device="intel_backlight" set 500 diff --git a/install.sh b/install.sh @@ -164,9 +164,9 @@ doas apk add xf86-input-libinput doas apk add arandr doas apk add xclip -# screenshots w/ x11. -doas apk add flameshot - doas apk add xsetroot doas apk add xkill - +# image viewer +doas apk add nsxiv +# screenshotter +doas apk add scrot diff --git a/power.sh b/power.sh @@ -1,7 +1,16 @@ #!/bin/bash + +background=$1 +foreground=$2 +highlight=$3 + +prompt="Select an artist:" + +dmenu_cmd="dmenu -nb \"$background\" -nf \"$foreground\" -sb \"$highlight\" -sf \"$foreground\" -p \"$prompt\"" + opts=("suspend" "reboot" "hibernate" "poweroff") -selected_item=$(echo "${opts[@]}" | tr ' ' '\n' | dmenu -p "Select an item:") +selected_item=$(echo "${opts[@]}" | tr ' ' '\n' | eval $dmenu_cmd) # no need to verify a selection was made; no selection just gives an output. diff --git a/screenshot.sh b/screenshot.sh @@ -0,0 +1,3 @@ +#!/bin/bash + +scrot -s "$HOME/screenshots/sc_%Y-%m-%d_%H.%M.%S.png" -e 'xclip -selection clipboard -t image/png -i $f'