Initial nixos config

This commit is contained in:
Aleksandr Lebedev 2024-11-07 12:35:29 +01:00
commit ebe17adca7
17 changed files with 2044 additions and 0 deletions

View 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