mirror of
https://github.com/Ascyii/nixos.git
synced 2026-01-01 06:44:26 -05:00
Add grayscale
This commit is contained in:
@@ -10,6 +10,7 @@
|
|||||||
./../../modules/common/sops.nix
|
./../../modules/common/sops.nix
|
||||||
|
|
||||||
./../../modules/graphics/workstation.nix
|
./../../modules/graphics/workstation.nix
|
||||||
|
./../../modules/graphics/grayscale.nix
|
||||||
|
|
||||||
./../../modules/hardware/nvidia.nix
|
./../../modules/hardware/nvidia.nix
|
||||||
./../../modules/hardware/boot.nix
|
./../../modules/hardware/boot.nix
|
||||||
|
|||||||
28
modules/graphics/grayscale.nix
Normal file
28
modules/graphics/grayscale.nix
Normal file
@@ -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" ];
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -23,6 +23,7 @@
|
|||||||
qbittorrent
|
qbittorrent
|
||||||
ausweisapp
|
ausweisapp
|
||||||
nextcloud-client
|
nextcloud-client
|
||||||
|
spotify
|
||||||
|
|
||||||
# --- Media & Desktop Tools ---
|
# --- Media & Desktop Tools ---
|
||||||
simple-scan
|
simple-scan
|
||||||
@@ -35,13 +36,18 @@
|
|||||||
nemo-with-extensions
|
nemo-with-extensions
|
||||||
xournalpp
|
xournalpp
|
||||||
anki
|
anki
|
||||||
hyprshot
|
|
||||||
|
hyprshot # All the hypr stuff
|
||||||
hyprpicker
|
hyprpicker
|
||||||
|
hyprlock
|
||||||
|
hypridle
|
||||||
|
hyprshade
|
||||||
hyprsunset
|
hyprsunset
|
||||||
|
hyprpaper
|
||||||
|
|
||||||
waybar
|
waybar
|
||||||
dunst
|
dunst
|
||||||
networkmanagerapplet
|
networkmanagerapplet
|
||||||
hyprpaper
|
|
||||||
pavucontrol
|
pavucontrol
|
||||||
feh
|
feh
|
||||||
xdragon
|
xdragon
|
||||||
@@ -100,6 +106,7 @@
|
|||||||
slides
|
slides
|
||||||
imagemagick
|
imagemagick
|
||||||
immich-cli
|
immich-cli
|
||||||
|
parted
|
||||||
bitwarden-cli
|
bitwarden-cli
|
||||||
lazydocker
|
lazydocker
|
||||||
lazygit
|
lazygit
|
||||||
|
|||||||
@@ -5,6 +5,7 @@
|
|||||||
users.users = {
|
users.users = {
|
||||||
jonas = {
|
jonas = {
|
||||||
isNormalUser = true;
|
isNormalUser = true;
|
||||||
|
uid = 1000;
|
||||||
extraGroups = [
|
extraGroups = [
|
||||||
"docker"
|
"docker"
|
||||||
"input"
|
"input"
|
||||||
|
|||||||
Reference in New Issue
Block a user