too many things
This commit is contained in:
6
.config/hypr/tofi_scripts/brightnessmenu.fish
Executable file
6
.config/hypr/tofi_scripts/brightnessmenu.fish
Executable file
@@ -0,0 +1,6 @@
|
||||
#!/usr/bin/fish
|
||||
set b $(seq 0 100 | tofi --config ~/.config/tofi/brightness_config)
|
||||
|
||||
for i in (seq 1 2)
|
||||
ddcutil setvcp 10 $b -d $i
|
||||
end
|
||||
8
.config/hypr/tofi_scripts/brightnessmenu.sh
Executable file
8
.config/hypr/tofi_scripts/brightnessmenu.sh
Executable file
@@ -0,0 +1,8 @@
|
||||
#!/usr/bin/sh
|
||||
b=$( for ((i=0;i<=100;i+=5)) do
|
||||
echo $i
|
||||
done| tofi --config ~/.config/tofi/brightness_config)
|
||||
|
||||
for ((i=0; i<3;i++)) do
|
||||
ddcutil setvcp 10 $b -d $i
|
||||
done
|
||||
10
.config/hypr/tofi_scripts/powermenu.sh
Executable file
10
.config/hypr/tofi_scripts/powermenu.sh
Executable file
@@ -0,0 +1,10 @@
|
||||
#!/usr/bin/bash
|
||||
|
||||
case "$(printf "sleep\nreboot\nshutdown\nhybrid-sleep\nhibernate" | tofi --config .config/tofi/powermenu_config)" in
|
||||
sleep) systemctl suspend;;
|
||||
reboot) systemctl reboot;;
|
||||
shutdown) shutdown now ;;
|
||||
hybrid-sleep) hyprlock; systemctl suspend-then-hibernate;;
|
||||
hibernate) systemctl hibernate;;
|
||||
*) exit 1 ;;
|
||||
esac
|
||||
Reference in New Issue
Block a user