mirror of
https://gitlab.com/Zaney/zaneyos.git
synced 2025-02-16 16:40:49 +01:00
This has regression in portal support in obs
This commit is contained in:
parent
53a1a87948
commit
5615ef4177
@ -16,6 +16,7 @@
|
||||
(import ./../scripts/wallsetter.nix { inherit pkgs; inherit wallpaperDir;
|
||||
inherit username; inherit wallpaperGit; })
|
||||
(import ./../scripts/themechange.nix { inherit pkgs; inherit flakeDir; })
|
||||
(import ./../scripts/trnoffmon.nix { inherit pkgs; })
|
||||
(import ./../scripts/theme-selector.nix { inherit pkgs; })
|
||||
];
|
||||
}
|
||||
|
@ -51,7 +51,7 @@
|
||||
activated = "";
|
||||
deactivated = "";
|
||||
};
|
||||
on-click-right = "swaylock";
|
||||
on-click-right = "trnoffmon";
|
||||
};
|
||||
"network" = {
|
||||
format-icons = ["" "" "" "" ""];
|
||||
|
@ -1,9 +1,20 @@
|
||||
{ config, pkgs, ... }:
|
||||
{ pkgs, ... }:
|
||||
|
||||
pkgs.writeShellScriptBin "trnoffmon" ''
|
||||
if [[ ! $@ ]]; then
|
||||
IDLECOMMAND=$(swayidle -w timeout 5 'hyprctl dispatch dpms off' resume 'hyprctl dispatch dpms on')
|
||||
|
||||
while :
|
||||
do
|
||||
done
|
||||
|
||||
if [ $SWAYIDLESTATE == 1 ]; then
|
||||
export SWAYIDLESTATE=2
|
||||
pkill swayidle
|
||||
else
|
||||
swayidle -w timeout 5 'hyprctl dispatch dpms off' resume 'hyprctl dispatch dpms on'
|
||||
fi
|
||||
IDLESTATE=true
|
||||
$IDLECOMMAND
|
||||
fi
|
||||
pkill swayidle
|
||||
IDLESTATE=true
|
||||
$IDLECOMMAND
|
||||
''
|
||||
|
Loading…
Reference in New Issue
Block a user