This commit is contained in:
notgne2 2025-10-27 10:05:38 -07:00
parent 3fea27a8ca
commit ae862e053f
No known key found for this signature in database
3 changed files with 126 additions and 129 deletions

View file

@ -19,13 +19,14 @@
inputs.nixpkgs.follows = "nixpkgs"; inputs.nixpkgs.follows = "nixpkgs";
inputs.home-manager.follows = "home-manager"; inputs.home-manager.follows = "home-manager";
}; };
bemoji = { # quickshell = {
url = "github:marty-oehme/bemoji"; # url = "github:outfoxxed/quickshell";
flake = false; # inputs.nixpkgs.follows = "nixpkgs";
}; # };
bwmenu = { noctalia = {
url = "github:mattydebie/bitwarden-rofi"; url = "github:noctalia-dev/noctalia-shell";
flake = false; inputs.nixpkgs.follows = "nixpkgs";
# inputs.quickshell.follows = "quickshell";
}; };
}; };

View file

@ -5,6 +5,7 @@ inputs: all: {
... ...
}: { }: {
imports = [ imports = [
inputs.noctalia.homeModules.default
all all
]; ];

View file

@ -48,7 +48,7 @@ in {
settings = { settings = {
general = { general = {
lock_cmd = "pidof hyprlock || hyprlock"; lock_cmd = "noctalia-shell ipc call lockScreen lock";
before_sleep_cmd = "loginctl lock-session"; before_sleep_cmd = "loginctl lock-session";
after_sleep_cmd = "hyperctl dispatch dpms on"; after_sleep_cmd = "hyperctl dispatch dpms on";
}; };
@ -66,35 +66,6 @@ in {
}; };
}; };
programs.hyprlock = {
enable = true;
settings = {
general = {
hide_cursor = true;
};
animations = {
enabled = true;
fade_in = {
duration = 300;
bezier = "easeOutQuint";
};
fade_out = {
duration = 300;
bezier = "easeOutQuint";
};
};
background = lib.mkForce [
{
path = "screenshot";
blur_passes = 3;
blur_size = 8;
}
];
};
};
xdg.portal = { xdg.portal = {
enable = true; enable = true;
xdgOpenUsePortal = true; xdgOpenUsePortal = true;
@ -120,20 +91,15 @@ in {
hypr-dynamic-cursors hypr-dynamic-cursors
]; ];
settings = { settings = {
exec-once = [
"noctalia-shell"
];
"plugin:dynamic-cursors" = { "plugin:dynamic-cursors" = {
shake.enabled = false; shake.enabled = false;
}; };
"plugin:hy3" = { "plugin:hy3" = {
no_gaps_when_only = 1; no_gaps_when_only = 1;
}; };
layerrule = [
"blur, bar-.*"
"ignorezero, bar-.*"
"xray on, bar-.*"
# "blur, notifications-window"
# "blur, indicator"
# "ignorezero, indicator"
];
ecosystem = { ecosystem = {
no_update_news = true; no_update_news = true;
no_donation_nag = true; no_donation_nag = true;
@ -173,25 +139,24 @@ in {
"$mod SHIFT, F, fullscreen, 1" "$mod SHIFT, F, fullscreen, 1"
"$mod, Space, togglefloating" "$mod, Space, togglefloating"
"$mod SHIFT, SPACE, exec, hyprctl switchxkblayout all next" "$mod SHIFT, SPACE, exec, hyprctl switchxkblayout all next"
"$mod, D, exec, ${config.programs.rofi.package}/bin/rofi -show drun -show-icons" "$mod, D, exec, noctalia-shell ipc call launcher toggle"
", Print, exec, grim - | satty -f -" ", Print, exec, grim - | satty -f -"
"$mod, c, exec, ${config.services.cliphist.package}/bin/cliphist list | rofi -dmenu | cliphist decode | wl-copy" "$mod, c, exec, noctalia-shell ipc call launcher clipboard"
"$mod, minus, exec, pamixer --decrease=5" "$mod, minus, exec, noctalia-shell ipc call volume decrease"
"$mod, equal, exec, pamixer --increase=5 --unmute" "$mod, equal, exec, noctalia-shell ipc call volume increase"
", XF86AudioLowerVolume, exec, noctalia-shell ipc call volume decrease"
", XF86AudioRaiseVolume, exec, noctalia-shell ipc call volume increase"
", XF86AudioLowerVolume, exec, pamixer --decrease=5" ", XF86AudioMute, exec, noctalia-shell ipc call volume mute"
", XF86AudioRaiseVolume, exec, pamixer --increase=5 --unmute" ", XF86AudioMicMute, exec, noctalia-shell ipc call volume muteInput"
", XF86AudioMute, exec, pamixer --toggle-mute" ", XF86MonBrightnessDown, exec, noctalia-shell ipc call brightness decrease"
", XF86AudioMicMute, exec, pamixer --toggle-mute --default-source" ", XF86MonBrightnessUp, exec, noctalia-shell ipc call brightness increase"
"$mod, semicolon, exec, noctalia-shell ipc call brightness decrease"
", XF86MonBrightnessDown, exec, light -U 10" "$mod, apostrophe, exec, noctalia-shell ipc call brightness increase"
", XF86MonBrightnessUp, exec, light -A 10"
"$mod, semicolon, exec, light -U 10"
"$mod, apostrophe, exec, light -A 10"
# Previous/next but change the shuffle/random state before action (and change back afterwards) # Previous/next but change the shuffle/random state before action (and change back afterwards)
"$mod&SHIFT, bracketright, exec, ${pkgs.playerctl}/bin/playerctl shuffle Toggle && ${pkgs.playerctl}/bin/playerctl next && ${pkgs.playerctl}/bin/playerctl shuffle Toggle" "$mod&SHIFT, bracketright, exec, ${pkgs.playerctl}/bin/playerctl shuffle Toggle && ${pkgs.playerctl}/bin/playerctl next && ${pkgs.playerctl}/bin/playerctl shuffle Toggle"
@ -199,26 +164,23 @@ in {
"SHIFT, XF86AudioNext, exec, ${pkgs.playerctl}/bin/playerctl shuffle Toggle && ${pkgs.playerctl}/bin/playerctl next && ${pkgs.playerctl}/bin/playerctl shuffle Toggle" "SHIFT, XF86AudioNext, exec, ${pkgs.playerctl}/bin/playerctl shuffle Toggle && ${pkgs.playerctl}/bin/playerctl next && ${pkgs.playerctl}/bin/playerctl shuffle Toggle"
# Previous/next # Previous/next
"$mod, bracketright, exec, ${pkgs.playerctl}/bin/playerctl next" "$mod, bracketright, exec, noctalia-shell ipc call media next"
"$mod, bracketleft, exec, ${pkgs.playerctl}/bin/playerctl previous" "$mod, bracketleft, exec, noctalia-shell ipc call media previous"
", XF86AudioNext, exec, ${pkgs.playerctl}/bin/playerctl next" ", XF86AudioNext, exec, noctalia-shell ipc call media next"
", XF86AudioPrev, exec, ${pkgs.playerctl}/bin/playerctl previous" ", XF86AudioPrev, exec, noctalia-shell ipc call media previous"
# Seek forward/back # Seek forward/back
"$mod&Control_L, bracketright, exec, ${pkgs.playerctl}/bin/playerctl position 5+" "$mod&Control_L, bracketleft, exec, noctalia-shell ipc call media seekRelative -5"
"$mod&Control_L, bracketleft, exec, ${pkgs.playerctl}/bin/playerctl position 5-" "$mod&Control_L, bracketright, exec, noctalia-shell ipc call media seekRelative 5"
"Control_L, XF86AudioNext, exec, ${pkgs.playerctl}/bin/playerctl position 5+" "Control_L, XF86AudioPrev, exec, noctalia-shell ipc call media seekRelative -5"
"Control_L, XF86AudioPrev, exec, ${pkgs.playerctl}/bin/playerctl position 5-" "Control_L, XF86AudioNext, exec, noctalia-shell ipc call media seekRelative 5"
# Toggle play/pause # Toggle play/pause
", XF86AudioPlay, exec, ${pkgs.playerctl}/bin/playerctl play-pause" ", XF86AudioPlay, exec, noctalia-shell ipc call media playPause"
", XF86AudioPause, exec, ${pkgs.playerctl}/bin/playerctl play-pause" ", XF86AudioPause, exec, noctalia-shell ipc call media playPause"
"$mod, backslash, exec, ${pkgs.playerctl}/bin/playerctl play-pause" "$mod, backslash, exec, noctalia-shell ipc call media playPause"
# "$mod, p, exec, bash ${inputs.bwmenu}/bwmenu" "Control_L&Alt_L, l, exec, noctalia-shell ipc call lockScreen lock"
# "$mod, e, exec, bash ${inputs.bemoji}/bemoji -t"
"Control_L&Alt_L, l, exec, ${pkgs.systemd}/bin/loginctl lock-session"
"$mod, left, hy3:movefocus, l" "$mod, left, hy3:movefocus, l"
"$mod, right, hy3:movefocus, r" "$mod, right, hy3:movefocus, r"
@ -266,70 +228,107 @@ in {
}; };
}; };
programs.hyprpanel = { programs.noctalia-shell = {
enable = true; enable = true;
settings = { settings = {
bar.layouts = { appLauncher = {
"*" = { terminalCommand = "${config.programs.foot.package}/bin/foot";
left = [ enableClipboardHistory = true;
"dashboard" };
"workspaces" general = {
"windowtitle" compactLockScreen = true;
]; };
middle = ["media"]; location = {
right = [ weatherEnabled = false;
"systray" use12hourFormat = true;
"bluetooth" };
"network" colorSchemes = {
"battery" generateTemplatesForPredefined = false;
"volume" };
"clock" ui = {
"notifications" fontDefault = config.stylix.fonts.sansSerif.name;
]; fontFixed = config.stylix.fonts.monospace.name;
};
}; };
bar = { bar = {
launcher.autoDetectIcon = true; floating = false;
workspaces.show_numbered = true;
};
menus.clock = { backgroundOpacity = 0;
time = {
military = false;
hideSeconds = true;
};
# weather.unit = "metric";
};
menus.dashboard = { widgets = {
directories.enabled = false; left = [
shortcuts.enabled = false; {
stats.enable_gpu = false; id = "Workspace";
}; }
{
id = "ActiveWindow";
width = 200;
}
];
theme = { center = [
font.weight = 100; {
# osd.opacity = 60; id = "MediaMini";
# notification.opacity = 60; maxWidth = 400;
bar = { scrollingMode = "always";
transparent = true; showVisualizer = true;
outer_spacing = "0"; }
buttons = { {
background_opacity = 60; id = "Clock";
padding_x = "0.4rem"; }
padding_y = "0.1rem"; ];
y_margins = "0.2em";
}; right = [
{
id = "Tray";
}
{
id = "NotificationHistory";
}
{
id = "Battery";
displayMode = "alwaysShow";
warningThreshold = 20;
}
{
id = "PowerProfile";
}
{
id = "Volume";
displayMode = "alwaysShow";
}
{
id = "WiFi";
}
{
id = "Bluetooth";
}
{
id = "ControlCenter";
}
];
}; };
}; };
}; };
colors = with config.lib.stylix.colors; {
mError = "#${base08}";
mOnError = "#${base00}";
mOnPrimary = "#${base00}";
mOnSecondary = "#${base00}";
mOnSurface = "#${base04}";
mOnSurfaceVariant = "#${base04}";
mOnTertiary = "#${base00}";
mOutline = "#${base02}";
mPrimary = "#${base0B}";
mSecondary = "#${base0A}";
mShadow = "#${base00}";
mSurface = "#${base00}";
mSurfaceVariant = "#${base01}";
mTertiary = "#${base0D}";
};
}; };
programs.librewolf.enable = true; programs.librewolf.enable = true;
services.blueman-applet.enable = lib.mkDefault cfg.bluetooth;
services.mpris-proxy.enable = lib.mkDefault true; services.mpris-proxy.enable = lib.mkDefault true;
services.playerctld.enable = lib.mkDefault true; services.playerctld.enable = lib.mkDefault true;
@ -372,15 +371,11 @@ in {
maim maim
slop slop
xorg.xhost xorg.xhost
pamixer
sway-contrib.grimshot sway-contrib.grimshot
grim grim
];
programs.rofi = { inputs.noctalia.packages.${pkgs.system}.default
enable = lib.mkDefault true; ];
terminal = lib.mkDefault "${config.programs.foot.package}/bin/foot";
};
programs.satty = { programs.satty = {
enable = true; enable = true;