mirror of
https://github.com/caperren/nixos-configs.git
synced 2025-11-08 11:41:14 +00:00
Add desktop file for spotify-player, jetbrains-toolbox, autostart hypridle, dotfiles for hypridle, idle_inhibitor configs, gtk app dark theme
This commit is contained in:
@@ -3,7 +3,9 @@ let
|
||||
hyprlandConfigPath = ./. + "/dotfiles/hyprland/${config.networking.hostName}";
|
||||
kanshiConfigPath = ./. + "/dotfiles/kanshi/${config.networking.hostName}";
|
||||
spotifyPlayerAppTomlTextTemplate = builtins.readFile ./dotfiles/spotify-player/app.toml;
|
||||
spotifyPlayerAppTomlText = builtins.replaceStrings [ "{{hostname}}" ] [ config.networking.hostName ] spotifyPlayerAppTomlTextTemplate;
|
||||
spotifyPlayerAppTomlText =
|
||||
builtins.replaceStrings [ "{{hostname}}" ] [ config.networking.hostName ]
|
||||
spotifyPlayerAppTomlTextTemplate;
|
||||
waybarConfigPath = ./. + "/dotfiles/waybar/${config.networking.hostName}";
|
||||
in
|
||||
{
|
||||
@@ -35,11 +37,35 @@ in
|
||||
userEmail = "caperren@gmail.com";
|
||||
};
|
||||
|
||||
home.file.".config/hypr/hypridle.conf".source = ./dotfiles/hypridle/hypridle.conf;
|
||||
home.file.".config/hypr/hyprland-common.conf".source = ./dotfiles/hyprland/hyprland-common.conf;
|
||||
home.file.".config/hypr/hyprland.conf".source = hyprlandConfigPath + "/hyprland.conf";
|
||||
home.file.".config/kanshi/config".source = kanshiConfigPath + "/config";
|
||||
home.file.".config/spotify-player/app.toml".text = spotifyPlayerAppTomlText;
|
||||
home.file.".config/waybar/config".source = waybarConfigPath + "/config";
|
||||
home.file.".config/wlogout/layout".source = ./dotfiles/wlogout/layout;
|
||||
|
||||
gtk = {
|
||||
enable = true;
|
||||
|
||||
theme = {
|
||||
name = "Adwaita-dark"; # Or another dark theme
|
||||
package = pkgs.gnome-themes-extra;
|
||||
};
|
||||
|
||||
iconTheme = {
|
||||
name = "Papirus-Dark";
|
||||
package = pkgs.papirus-icon-theme;
|
||||
};
|
||||
|
||||
cursorTheme = {
|
||||
name = "Bibata-Modern-Ice";
|
||||
package = pkgs.bibata-cursors;
|
||||
};
|
||||
};
|
||||
|
||||
home.sessionVariables = {
|
||||
GTK_THEME = "Adwaita-dark";
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
33
users/caperren/dotfiles/hypridle/hypridle.conf
Normal file
33
users/caperren/dotfiles/hypridle/hypridle.conf
Normal file
@@ -0,0 +1,33 @@
|
||||
general {
|
||||
lock_cmd = pidof hyprlock || hyprlock # Avoid starting multiple hyprlock instances
|
||||
before_sleep_cmd = loginctl lock-session # Lock before suspend
|
||||
after_sleep_cmd = hyprctl dispatch dpms on # To avoid having to press a key twice to turn on the display
|
||||
}
|
||||
|
||||
listener {
|
||||
timeout = 60 # 1 minute
|
||||
on-timeout = brightnessctl -sd platform::kbd_backlight set 0 # Turn off keyboard backlight
|
||||
on-resume = brightnessctl -rd platform::kbd_backlight # Turn on keyboard backlight
|
||||
}
|
||||
|
||||
listener {
|
||||
timeout = 180 # 3 minutes
|
||||
on-timeout = brightnessctl -s set 1% # Set monitor backlight to minimum
|
||||
on-resume = brightnessctl -r # monitor backlight restore
|
||||
}
|
||||
|
||||
listener {
|
||||
timeout = 600 # 10 minutes
|
||||
on-timeout = loginctl lock-session # Lock screen when timeout has passed
|
||||
}
|
||||
|
||||
listener {
|
||||
timeout = 610 # 10 minutes, 10 seconds
|
||||
on-timeout = hyprctl dispatch dpms off # Screen off when timeout has passed
|
||||
on-resume = hyprctl dispatch dpms on # Screen on when activity is detected after timeout has fired
|
||||
}
|
||||
|
||||
# listener {
|
||||
# timeout = 1200 # 20 minutes
|
||||
# on-timeout = systemctl suspend # Suspend pc
|
||||
# }
|
||||
@@ -162,12 +162,14 @@ bind = ,XF86MonBrightnessDown, exec, brightnessctl s 1%-
|
||||
bind = ,XF86MonBrightnessUp, exec, brightnessctl s +1%
|
||||
|
||||
# Application launch
|
||||
exec-once = kanshi &
|
||||
exec-once = ydotoold &
|
||||
exec-once = kanshi
|
||||
exec-once = ydotoold
|
||||
exec-once = hypridle
|
||||
|
||||
exec-once = sleep 3 && waybar
|
||||
# Loop needed until waybar gtk icon crash fixed
|
||||
exec-once = bash -c "while true; do waybar; sleep 3; done"
|
||||
|
||||
exec-once = sleep 5 && nm-applet
|
||||
exec-once = sleep 5 && blueman-applet
|
||||
exec-once = sleep 5 && streamdeck -n
|
||||
exec-once = sleep 5 & telegram-desktop -startintray
|
||||
exec-once = sleep 5 && Telegram -startintray
|
||||
@@ -43,7 +43,9 @@
|
||||
"format-icons": {
|
||||
"activated": "",
|
||||
"deactivated": ""
|
||||
}
|
||||
},
|
||||
"tooltip-format-activated": "idle-inhibitor <span color='#a6da95'>on</span>",
|
||||
"tooltip-format-deactivated": "idle-inhibitor <span color='#ee99a0'>off</span>"
|
||||
},
|
||||
"clock": {
|
||||
"format": "{:%I:%M:%S %p | %a | %F}",
|
||||
|
||||
@@ -70,7 +70,9 @@
|
||||
"format-icons": {
|
||||
"activated": "",
|
||||
"deactivated": ""
|
||||
}
|
||||
},
|
||||
"tooltip-format-activated": "idle-inhibitor <span color='#a6da95'>on</span>",
|
||||
"tooltip-format-deactivated": "idle-inhibitor <span color='#ee99a0'>off</span>"
|
||||
},
|
||||
"clock": {
|
||||
"format": "{:%I:%M:%S %p | %a | %F}",
|
||||
|
||||
Reference in New Issue
Block a user