Added some config files

This commit is contained in:
Tibo De Peuter 2022-04-21 22:13:24 +02:00
parent 15ca3c9160
commit 597a2160bb
11 changed files with 14 additions and 0 deletions

View file

@ -0,0 +1,6 @@
#!/bin/bash
background=$(ls ~/.local/share/backgrounds/ | grep "^bg.[^.]*$")
xsetroot -solid "#333333"
feh --bg-scale ".local/share/backgrounds/$background"

View file

@ -0,0 +1,8 @@
img=/tmp/i3lock.png
icon=~/.config/i3/scripts/lock-icon-large.png
scrot -z -o $img
convert \( $img -scale 20% -scale 500% -brightness-contrast -30x-30 \) $icon -gravity Center -geometry +0-125 -composite $img
i3lock -i $img -f #-no-unlock-indicator

View file

@ -0,0 +1,39 @@
#!/bin/bash
# Show system status in notification, or your own message
# Syntaxis: notify [-vb] <message>
# Variables
duration=3
value=0
# Get options
while getopts ":bvm:" options; do
case "${options}" in
b)
value=$(brightnessctl | grep -o "[0-9]*%")
title="Brightness: ${value}"
;;
v)
status=$(amixer get Master | grep "^ Front Left" | cut -d ' ' -f 8)
if [[ $status == "[on]" ]] ; then
value=$(amixer get Master | grep -o "[0-9]*%" | head -n 1)
fi
title="Volume: ${value:-'0%'}"
;;
m)
message=${OPTARG}
;;
*)
title="Unknown option"
;;
esac
done
shift $((OPTIND - 1))
notify-send "${title:-${message}}" "${message}" \
-h int:value:"$(grep -o "[0-9]*" <<< ${value})" \
-h string:x-canonical-private-synchronous:byMe # Replace if not yet gone
#-h geometry = "400x200-40-40" \
canberra-gtk-play -i audio-volume-change -d "changeVolume"