add swayidle and some checks

This commit is contained in:
flick0
2023-09-14 19:39:30 +00:00
parent fff09e1f77
commit 491c4530f8
9 changed files with 40 additions and 2 deletions

View File

@@ -26,4 +26,4 @@ misc {
source=./binds.conf
source=./rules.conf
source=./profiles/battery.conf
source=./profiles/power.conf

View File

@@ -9,6 +9,8 @@ dunst &
foot -s -c $config/components/foot.ini &
swayidle -w timeout 300 '$HOME/.config/hypr/scripts/lock' timeout 600 'hyprctl dispatch dpms off' resume 'hyprctl dispatch dpms on' before-sleep '$HOME/.config/hypr/scripts/lock'
# # waybar
# $scripts/launch_waybar &
# $scripts/tools/dynamic &

View File

@@ -1,3 +1,9 @@
#!/usr/bin/env sh
if ! [ -x "$(command -v light)" ]; then
notify-send "light not found"
exit 1
fi
light -A 5
notify-send "$(light -G)"

View File

@@ -1,3 +1,9 @@
#!/usr/bin/env sh
if ! [ -x "$(command -v light)" ]; then
notify-send "light not found"
exit 1
fi
light -U 5
notify-send "$(light -G)"

View File

@@ -1,4 +1,10 @@
#!/usr/bin/env sh
if ! [ -x "$(command -v asusctl)" ]; then
notify-send "asusctl not found"
exit 1
fi
current=$(asusctl -k | grep -Eo '[0-9]')
case $current in

View File

@@ -1,4 +1,10 @@
#!/usr/bin/env sh
if ! [ -x "$(command -v asusctl)" ]; then
notify-send "asusctl not found"
exit 1
fi
current=$(asusctl -k | grep -Eo '[0-9]')
case $current in

View File

@@ -1,3 +1,9 @@
#!/usr/bin/env sh
if ! [ -x "$(command -v pamixer)" ]; then
notify-send "pamixer not found"
exit 1
fi
pamixer -i 5
notify-send "$(pamixer --get-volume)"

View File

@@ -1,3 +1,9 @@
#!/usr/bin/env bash
if ! [ -x "$(command -v pamixer)" ]; then
notify-send "pamixer not found"
exit 1
fi
pamixer -d 5
notify-send "$(pamixer --get-volume)"

View File

@@ -1,5 +1,5 @@
#!/usr/bin/bash
swaylockd \
swaylock \
--screenshots \
--indicator \
--clock \