diff --git a/hosts/minoxy-workstation/configuration.nix b/hosts/minoxy-workstation/configuration.nix index 72ed8d2..2c8120c 100644 --- a/hosts/minoxy-workstation/configuration.nix +++ b/hosts/minoxy-workstation/configuration.nix @@ -10,6 +10,7 @@ ./../../modules/common/sops.nix ./../../modules/graphics/workstation.nix + ./../../modules/graphics/grayscale.nix ./../../modules/hardware/nvidia.nix ./../../modules/hardware/boot.nix diff --git a/modules/graphics/grayscale.nix b/modules/graphics/grayscale.nix new file mode 100644 index 0000000..eb14310 --- /dev/null +++ b/modules/graphics/grayscale.nix @@ -0,0 +1,28 @@ +{ config, pkgs, ... }: + +let + user = "jonas"; + uid = "1000"; +in { + systemd.user.services.hyprshade-toggle = { + description = "Toggle Hyprshade grayscale"; + enable = true; + serviceConfig = { + Type = "oneshot"; + ExecStart = "${pkgs.bash}/bin/bash /home/${user}/projects/scripts/shell/toggle_grayscale.sh"; + Environment = '' + PATH=/home/jonas/.nix-profile/bin:/run/current-system/sw/bin:/usr/bin:${pkgs.hyprshade}/bin + ''; + }; + }; + + systemd.user.timers.hyprshade-toggle = { + description = "Run hyprshade-toggle every 5 minutes"; + timerConfig = { + OnBootSec = "1min"; + OnUnitActiveSec = "5min"; + AccuracySec = "30s"; + }; + wantedBy = [ "timers.target" ]; + }; +} diff --git a/user/packages.nix b/user/packages.nix index 0585e0f..94d2804 100644 --- a/user/packages.nix +++ b/user/packages.nix @@ -23,6 +23,7 @@ qbittorrent ausweisapp nextcloud-client + spotify # --- Media & Desktop Tools --- simple-scan @@ -35,13 +36,18 @@ nemo-with-extensions xournalpp anki - hyprshot + + hyprshot # All the hypr stuff hyprpicker + hyprlock + hypridle + hyprshade hyprsunset + hyprpaper + waybar dunst networkmanagerapplet - hyprpaper pavucontrol feh xdragon @@ -100,6 +106,7 @@ slides imagemagick immich-cli + parted bitwarden-cli lazydocker lazygit diff --git a/user/users.nix b/user/users.nix index 170cd31..221d3fd 100644 --- a/user/users.nix +++ b/user/users.nix @@ -5,6 +5,7 @@ users.users = { jonas = { isNormalUser = true; + uid = 1000; extraGroups = [ "docker" "input"