mirror of
https://gitlab.com/Zaney/zaneyos.git
synced 2025-06-21 12:32:51 +02:00
removing button from waybar and fixing script
This commit is contained in:
parent
8ba8f708a0
commit
2122ffe26b
@ -16,7 +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/idle-switcher.nix { inherit pkgs; })
|
||||
(import ./../scripts/theme-selector.nix { inherit pkgs; })
|
||||
];
|
||||
}
|
||||
|
@ -11,7 +11,7 @@
|
||||
|
||||
modules-left = [ "hyprland/window" ];
|
||||
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" = {
|
||||
format = "{icon}";
|
||||
format-icons = {
|
||||
@ -48,8 +48,8 @@
|
||||
format = "{icon}";
|
||||
tooltip = true;
|
||||
format-icons = {
|
||||
activated = "";
|
||||
deactivated = "";
|
||||
activated = "";
|
||||
deactivated = "";
|
||||
};
|
||||
on-click-right = "trnoffmon";
|
||||
};
|
||||
|
15
config/scripts/idle-switcher.nix
Normal file
15
config/scripts/idle-switcher.nix
Normal 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
|
||||
''
|
@ -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
|
||||
''
|
@ -50,6 +50,7 @@
|
||||
v4l-utils ydotool wl-clipboard socat cowsay lsd
|
||||
pkg-config meson hugo gnumake ninja go nodejs symbola
|
||||
noto-fonts-color-emoji material-icons brightnessctl
|
||||
toybox
|
||||
];
|
||||
|
||||
programs.steam.gamescopeSession.enable = true;
|
||||
|
Loading…
x
Reference in New Issue
Block a user