mirror of
https://gitlab.com/Zaney/zaneyos.git
synced 2025-06-25 22:41:54 +02: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;
|
(import ./../scripts/wallsetter.nix { inherit pkgs; inherit wallpaperDir;
|
||||||
inherit username; inherit wallpaperGit; })
|
inherit username; inherit wallpaperGit; })
|
||||||
(import ./../scripts/themechange.nix { inherit pkgs; inherit flakeDir; })
|
(import ./../scripts/themechange.nix { inherit pkgs; inherit flakeDir; })
|
||||||
|
(import ./../scripts/trnoffmon.nix { inherit pkgs; })
|
||||||
(import ./../scripts/theme-selector.nix { inherit pkgs; })
|
(import ./../scripts/theme-selector.nix { inherit pkgs; })
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
@ -51,7 +51,7 @@
|
|||||||
activated = "";
|
activated = "";
|
||||||
deactivated = "";
|
deactivated = "";
|
||||||
};
|
};
|
||||||
on-click-right = "swaylock";
|
on-click-right = "trnoffmon";
|
||||||
};
|
};
|
||||||
"network" = {
|
"network" = {
|
||||||
format-icons = ["" "" "" "" ""];
|
format-icons = ["" "" "" "" ""];
|
||||||
|
@ -1,9 +1,20 @@
|
|||||||
{ config, pkgs, ... }:
|
{ pkgs, ... }:
|
||||||
|
|
||||||
pkgs.writeShellScriptBin "trnoffmon" ''
|
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
|
pkill swayidle
|
||||||
else
|
else
|
||||||
swayidle -w timeout 5 'hyprctl dispatch dpms off' resume 'hyprctl dispatch dpms on'
|
IDLESTATE=true
|
||||||
|
$IDLECOMMAND
|
||||||
fi
|
fi
|
||||||
|
pkill swayidle
|
||||||
|
IDLESTATE=true
|
||||||
|
$IDLECOMMAND
|
||||||
''
|
''
|
||||||
|
Loading…
x
Reference in New Issue
Block a user