This has regression in portal support in obs

This commit is contained in:
Tyler Kelley 2024-01-23 15:43:24 -06:00
parent 53a1a87948
commit 5615ef4177
3 changed files with 17 additions and 5 deletions

View File

@ -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; })
];
}

View File

@ -51,7 +51,7 @@
activated = "";
deactivated = "";
};
on-click-right = "swaylock";
on-click-right = "trnoffmon";
};
"network" = {
format-icons = ["󰤯" "󰤟" "󰤢" "󰤥" "󰤨"];

View File

@ -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
''