Initial nixos config
This commit is contained in:
commit
ebe17adca7
17 changed files with 2044 additions and 0 deletions
12
nixos/hyprland/toggle_monitors.sh
Normal file
12
nixos/hyprland/toggle_monitors.sh
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
#!/bin/bash
|
||||
|
||||
# Получаем информацию о подключенных мониторах
|
||||
monitors_on=$(hyprctl monitors | grep "dpmsStatus: 1" | wc -l)
|
||||
echo $monitors_on
|
||||
if [ $monitors_on -gt 0 ]; then
|
||||
# Если мониторы включены, выключаем их
|
||||
hyprctl dispatch dpms off
|
||||
else
|
||||
hyprctl dispatch dpms on
|
||||
fi
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue