Compare commits

..

4 commits

Author SHA1 Message Date
fae3d16162 hypridle brightness and monitor changes 2024-05-17 16:21:38 -07:00
d51abe2b37 hex editor and window rules 2024-05-17 15:44:39 -07:00
b775657b1e backlight 2024-05-17 15:36:24 -07:00
c51078e515 fix sddm cursors!! 2024-05-15 22:34:15 -07:00
7 changed files with 33 additions and 10 deletions

View file

@ -20,7 +20,6 @@ each host should have these files:
- multi architecture configuration ([nix-systems](https://github.com/nix-systems/nix-systems)?)
- bitwarden
- divide steam and gamemode?
- laptop specific configuration (power profiles daemon, battery, etc)
- sddm cursors no work :(
- cursor size theme option
- sddm x11 support, too. or maybe just remove x11
- gnome keyring / gcr for saving passwords

View file

@ -103,6 +103,10 @@ window#waybar.floating #window {
color: @sapphire;
}
#backlight {
color: @yellow;
}
#pulseaudio {
color: @pink;
}

View file

@ -26,7 +26,7 @@
# none yet
]) ++ (with pkgs.gnome; [
# yay gnomeware!!!!!!!!!!!!!! yum
nautilus gnome-disk-utility pkgs.gnome-text-editor pkgs.baobab file-roller gnome-system-monitor loupe
nautilus gnome-disk-utility ghex pkgs.gnome-text-editor pkgs.baobab file-roller gnome-system-monitor loupe
]);
modules = {

View file

@ -14,18 +14,24 @@ in {
};
config = mkIf cfg.enable {
hm.services.hypridle = {
hm.services.hypridle = let
hyprctl = "${config.modules.desktop.hyprland.package}/bin/hyprctl";
in {
enable = true;
package = cfg.package;
lockCmd = "${pkgs.procps}/bin/pidof hyprlock || ${lib.getExe config.modules.desktop.hyprlock.package}";
unlockCmd = "${pkgs.procps}/bin/pkill -USR1 hyprlock";
beforeSleepCmd = "${pkgs.systemd}/bin/loginctl lock-session";
beforeSleepCmd = "${pkgs.systemd}/bin/loginctl lock-session"; # lock the screen before sleeping
afterSleepCmd = "${hyprctl} dispatch dpms on"; # turn on the screen to avoid moving mouse/pressing key
listeners = let
hyprctl = "${config.modules.desktop.hyprland.package}/bin/hyprctl";
in [
listeners = [
{
timeout = 60 * 1;
onTimeout = "${lib.getExe pkgs.brightnessctl} -c backlight -s set 20"; # dim screen, save brightness state
onResume = "${lib.getExe pkgs.brightnessctl} -c backlight -r"; # restore previous screen brightness state
}
{
timeout = 90; # 1.5 min
onTimeout = "${hyprctl} dispatch dpms off"; # turn off screen
@ -36,7 +42,7 @@ in {
onTimeout = "${pkgs.systemd}/bin/loginctl lock-session"; # lock computer
}
{
timeout = 60 * 30; # 30 min
timeout = 60 * 15; # 15 min
onTimeout = "${pkgs.systemd}/bin/systemctl suspend"; # sleep/suspend
}
];

View file

@ -49,6 +49,9 @@ in {
bindel = [ # "bind held & locked"
", XF86AudioRaiseVolume, exec, wpctl set-volume -l 1 @DEFAULT_AUDIO_SINK@ 10%+"
", XF86AudioLowerVolume, exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 10%-"
", XF86MonBrightnessUp, exec, ${lib.getExe pkgs.brightnessctl} -c backlight s +5%"
", XF86MonBrightnessDown, exec, ${lib.getExe pkgs.brightnessctl} -c backlight s 5%-"
];
bindl = [ # "bind locked"
", XF86AudioMute, exec, wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle"
@ -147,8 +150,11 @@ in {
"center, initialTitle:^Open Files$"
"size 1100 730, initialTitle:^Open Files$"
"float, initialTitle:^Save As$"
"center, initialTitle:^Save As%"
"center, initialTitle:^Save As$"
"size 1100 730, initialTitle:^Save As$"
"float, initialTitle:^Select a file to open$"
"center, initialTitle:^Select a file to open$"
"size 1100 730, initialTitle:^Select a file to open$"
"float, class:\.exe$"

View file

@ -9,8 +9,10 @@ in {
};
config = mkIf cfg.enable {
# unsure if it's correct to put this in `environment.systemPackages`
environment.systemPackages = with pkgs; [
config.modules.desktop.themes.sddmTheme.package
config.modules.desktop.themes.cursorTheme.package
libsForQt5.qt5.qtsvg
libsForQt5.qt5.qtgraphicaleffects
libsForQt5.qt5.qtquickcontrols2

View file

@ -49,6 +49,7 @@ in {
orientation = "inherit";
modules = [
"pulseaudio"
"backlight"
#"network"
"cpu"
"memory"
@ -169,6 +170,11 @@ in {
on-click = "${lib.getExe pkgs.pavucontrol}";
ignored-sinks = ["Easy Effects Sink"];
};
backlight = {
format = "{icon} {percent}%";
format-icons = ["" ""];
scroll-step = 1;
};
cpu = {
interval = 4;
format = " {usage}% {avg_frequency}GHz";