removing button from waybar and fixing script

This commit is contained in:
Tyler Kelley 2024-01-23 16:43:57 -06:00
parent 8ba8f708a0
commit 2122ffe26b
5 changed files with 20 additions and 24 deletions

View File

@ -16,7 +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/idle-switcher.nix { inherit pkgs; })
(import ./../scripts/theme-selector.nix { inherit pkgs; }) (import ./../scripts/theme-selector.nix { inherit pkgs; })
]; ];
} }

View File

@ -11,7 +11,7 @@
modules-left = [ "hyprland/window" ]; modules-left = [ "hyprland/window" ];
modules-center = [ "network" "pulseaudio" "cpu" "hyprland/workspaces" "memory" "disk" "clock" ]; modules-center = [ "network" "pulseaudio" "cpu" "hyprland/workspaces" "memory" "disk" "clock" ];
modules-right = [ "idle_inhibitor" "custom/themeselector" "custom/notification" "tray" ]; modules-right = [ "custom/themeselector" "custom/notification" "tray" ];
"hyprland/workspaces" = { "hyprland/workspaces" = {
format = "{icon}"; format = "{icon}";
format-icons = { format-icons = {
@ -48,8 +48,8 @@
format = "{icon}"; format = "{icon}";
tooltip = true; tooltip = true;
format-icons = { format-icons = {
activated = ""; activated = "";
deactivated = ""; deactivated = "";
}; };
on-click-right = "trnoffmon"; on-click-right = "trnoffmon";
}; };

View File

@ -0,0 +1,15 @@
{ pkgs, ... }:
pkgs.writeShellScriptBin "idle-switcher" ''
IDLECOMMAND=$(swayidle -w timeout 5 'hyprctl dispatch dpms off' resume 'hyprctl dispatch dpms on')
if [ $SWAYIDLESTATE == "1" ]; then
SWAYIDLESTATE="2"
notify-send -t 2500 "Killing SwayIdle Sir."
killall swayidle
else
SWAYIDLESTATE="1"
notify-send -t 2500 "Starting SwayIdle Sir."
$IDLECOMMAND
fi
''

View File

@ -1,20 +0,0 @@
{ pkgs, ... }:
pkgs.writeShellScriptBin "trnoffmon" ''
# 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
# IDLESTATE=true
# $IDLECOMMAND
# fi
# pkill swayidle
# IDLESTATE=true
# $IDLECOMMAND
''

View File

@ -50,6 +50,7 @@
v4l-utils ydotool wl-clipboard socat cowsay lsd v4l-utils ydotool wl-clipboard socat cowsay lsd
pkg-config meson hugo gnumake ninja go nodejs symbola pkg-config meson hugo gnumake ninja go nodejs symbola
noto-fonts-color-emoji material-icons brightnessctl noto-fonts-color-emoji material-icons brightnessctl
toybox
]; ];
programs.steam.gamescopeSession.enable = true; programs.steam.gamescopeSession.enable = true;