This commit is contained in:
Morten Olsen
2023-09-12 08:28:05 +02:00
commit 6a41699dc3
69 changed files with 2040 additions and 0 deletions

View File

@@ -0,0 +1,14 @@
#!/usr/bin/env bash
#
down() {
brightnessctl s '10%-'
}
up() {
brightnessctl s +10%
}
case "$1" in
up) up;;
down) down;;
esac

View File

@@ -0,0 +1,4 @@
#!/usr/bin/env bash
eww daemon
eww open bar

View File

@@ -0,0 +1,5 @@
#!/usr/bin/env bash
#
swayidle -w \
before-sleep 'loginctl lock-session $XDG_SESSION_ID' \
lock '~/.config/hypr/scripts/lock.sh'

View File

@@ -0,0 +1,16 @@
#!/usr/bin/env bash
swaylock \
--screenshots \
--clock \
--indicator-radius 200 \
--indicator-thickness 8 \
--datestr "%a %e.%m.%Y" --timestr "%k:%M" \
--effect-scale 1 \
--effect-blur 7x7 \
--ring-color 000000 \
--key-hl-color 880033 \
--line-color 00000000 \
--inside-color 00000066 \
--separator-color 00000000 \
--fade-in 0.6
#--effect-vignette 0.5:0.5 \

View File

@@ -0,0 +1,8 @@
#!/usr/bin/env bash
sleep 1
killall xdg-desktop-portal-hyprland
killall xdg-desktop-portal-wlr
killall xdg-desktop-portal
/usr/libexec/xdg-desktop-portal-hyprland &
sleep 2
/usr/lib/xdg-desktop-portal &

View File

@@ -0,0 +1,36 @@
#!/usr/bin/env bash
down() {
pamixer -u
pamixer -d 5
volume=$(pamixer --get-volume)
[ $volume -gt 0 ] && volume=`expr $volume`
prec=`echo "scale=2; $volume / 100" | bc`
avizo-client --progress=$prec --time=0.5 --background="#222" --foreground="#f39c12"
}
up() {
pamixer -u
pamixer -i 5
volume=$(pamixer --get-volume)
[ $volume -lt 100 ] && volume=`expr $volume`
prec=`echo "scale=2; $volume / 100" | bc`
avizo-client --progress=$prec --time=1
}
mute() {
muted="$(pamixer --get-mute)"
if $muted; then
pamixer -u
notify-send "Unmuted"
else
pamixer -m
notify-send "Muted"
fi
}
case "$1" in
up) up;;
down) down;;
mute) mute;;
esac