mirror of
https://github.com/morten-olsen/nixos-config.git
synced 2026-02-08 00:36:27 +01:00
init
This commit is contained in:
14
user/files/hyprland/scripts/brightness.sh
Executable file
14
user/files/hyprland/scripts/brightness.sh
Executable 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
|
||||
4
user/files/hyprland/scripts/eww.sh
Executable file
4
user/files/hyprland/scripts/eww.sh
Executable file
@@ -0,0 +1,4 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
eww daemon
|
||||
eww open bar
|
||||
5
user/files/hyprland/scripts/idle.sh
Executable file
5
user/files/hyprland/scripts/idle.sh
Executable 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'
|
||||
16
user/files/hyprland/scripts/lock.sh
Executable file
16
user/files/hyprland/scripts/lock.sh
Executable 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 \
|
||||
8
user/files/hyprland/scripts/screensharing.sh
Executable file
8
user/files/hyprland/scripts/screensharing.sh
Executable 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 &
|
||||
36
user/files/hyprland/scripts/volume.sh
Executable file
36
user/files/hyprland/scripts/volume.sh
Executable 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
|
||||
Reference in New Issue
Block a user