Completed migration

This commit is contained in:
Jurn Wubben 2025-05-24 00:20:29 +02:00
parent d0a41df000
commit 46b144ca2c
7 changed files with 78 additions and 84 deletions

View file

@ -26,5 +26,4 @@
++ lib.optionals osConfig.niksos.portable [ ++ lib.optionals osConfig.niksos.portable [
inputs.somcli.defaultPackage.${pkgs.system} inputs.somcli.defaultPackage.${pkgs.system}
]; ];
;
} }

View file

@ -56,92 +56,87 @@
in in
builtins.toString (x + 1 - (c * 10)); builtins.toString (x + 1 - (c * 10));
in [ in [
"$mod, ${ws}, workspace, ${toString (x + 1)}" "$m, ${ws}, workspace, ${toString (x + 1)}"
"$mod SHIFT, ${ws}, movetoworkspace, ${toString (x + 1)}" "$m SHIFT, ${ws}, movetoworkspace, ${toString (x + 1)}"
] ]
) )
10); 10);
in { in {
config = lib.mkIf desktop { wayland.windowManager.hyprland.settings = {
home.file.".XCompose".text = '' "$m" = "ALT";
<Multi_key> <s> <h> <r> <u> <g> : "¯\\_()_/¯" # Shrug.
'';
wayland.windowManager.hyprland.settings = { bindm = [
"$mod" = "ALT"; "$m, mouse:272, movewindow"
"$m, mouse:273, resizewindow"
"$m ALT, mouse:272, resizewindow"
];
bindm = [ bind =
"$mod, mouse:272, movewindow" [
"$mod, mouse:273, resizewindow" "$m SHIFT, E, exec, uwsm stop"
"$mod ALT, mouse:272, resizewindow" "$m, Q, killactive,"
"$m, F, fullscreen,"
"$m, SPACE, togglefloating,"
"$m, O, pseudo,"
"$m ALT, ,resizeactive,"
"$m, D, exec, ${fuzzel}"
"$m, Return, exec, ${foot}"
"$m Shift, Return, exec, ${firefox}"
"$m, Escape, exec, ${hyprlock}"
"$m, A, exec, ${pulsemixer}"
"$m, B, exec, ${bluetui}"
"$m, N, exec, ${nmtui}"
''
$m, S, exec, bash -c 'hyprctl notify -1 5000 "rgb(${base0D})" "$(${getExe (import ./scripts.nix {inherit pkgs;}).statusnotify})"'
''
"$m, Print, exec, ${grimblast} copy area"
", Print, exec, ${grimblast} save area - | ${swappy} -f -"
"$m, h, movefocus, l"
"$m, l, movefocus, r"
"$m, k, movefocus, u"
"$m, j, movefocus, d"
"$m SHIFT, h, movewindow, l"
"$m SHIFT, l, movewindow, r"
"$m SHIFT, k, movewindow, u"
"$m SHIFT, j, movewindow, d"
]
++ workspaces
++ lib.optionals games (let
suyu = "${appE pkgs.suyu} -ql";
dolphin = appE pkgs.dolphin-emu;
in [
"Super, s, exec, ${suyu}"
"Super, d, exec, ${dolphin}"
])
++ lib.optionals portable [
"$m Shift, S, exec, ${somcli}"
]
++ lib.optionals fingerprint [
", XF86PowerOff, exec, pgrep fprintd-verify || ${uwsm} app -- ${foot} -a 'foot-fprintd' sh -c 'fprintd-verify && systemctl sleep'" #NOTE: Also check home/wayland/hyprland/settings + system/hardware/fingerprint
]; ];
bind = bindl = [
[ # media controls
"$mod SHIFT, E, exec, uwsm stop" ", XF86AudioPlay, exec, ${playerctl} play-pause"
"$mod, Q, killactive," ", XF86AudioPrev, exec, ${playerctl} previous"
"$mod, F, fullscreen," ", XF86AudioNext, exec, ${playerctl} next"
"$mod, SPACE, togglefloating,"
"$mod, O, pseudo,"
"$mod ALT, ,resizeactive,"
"$mod, D, exec, ${fuzzel}" # volume
"$mod, Return, exec, ${foot}" ", XF86AudioMute, exec, ${wpctl} set-mute @DEFAULT_AUDIO_SINK@ toggle"
"$mod Shift, Return, exec, ${firefox}" ", XF86AudioMicMute, exec, ${wpctl} set-mute @DEFAULT_AUDIO_SOURCE@ toggle"
"$mod, Escape, exec, ${hyprlock}" ];
"$mod, A, exec, ${pulsemixer}" bindle = [
"$mod, B, exec, ${bluetui}" # volume
"$mod, N, exec, ${nmtui}" ", XF86AudioRaiseVolume, exec, ${wpctl} set-volume -l '1.0' @DEFAULT_AUDIO_SINK@ 6%+"
'' ", XF86AudioLowerVolume, exec, ${wpctl} set-volume -l '1.0' @DEFAULT_AUDIO_SINK@ 6%-"
$mod, S, exec, bash -c 'hyprctl notify -1 5000 "rgb(${base0D})" "$(${getExe (import ./scripts.nix {inherit pkgs;}).statusnotify})"' ",XF86MonBrightnessUp, exec, ${brightnessctl} s 10%+"
'' ",XF86MonBrightnessDown, exec, ${brightnessctl} s 10%-"
];
"$mod, Print, exec, ${grimblast} copy area"
", Print, exec, ${grimblast} save area - | ${swappy} -f -"
"$mod, h, movefocus, l"
"$mod, l, movefocus, r"
"$mod, k, movefocus, u"
"$mod, j, movefocus, d"
"$mod SHIFT, h, movewindow, l"
"$mod SHIFT, l, movewindow, r"
"$mod SHIFT, k, movewindow, u"
"$mod SHIFT, j, movewindow, d"
]
++ workspaces
++ lib.optionals games (let
suyu = "${appE pkgs.suyu} -ql";
dolphin = appE pkgs.dolphin-emu;
in [
"Super, s, exec, ${suyu}"
"Super, d, exec, ${dolphin}"
])
++ lib.optionals portable [
"$mod Shift, S, exec, ${somcli}"
] ++ lib.optionals fingerprint [
", XF86PowerOff, exec, ${uwsm} app -- pgrep fprintd-verify && exit 0 || ${foot} -a 'foot-fprintd' sh -c 'fprintd-verify && systemctl sleep'" #NOTE: Also check home/wayland/hyprland/settings + system/hardware/fingerprint
];
bindl = [
# media controls
", XF86AudioPlay, exec, ${playerctl} play-pause"
", XF86AudioPrev, exec, ${playerctl} previous"
", XF86AudioNext, exec, ${playerctl} next"
# volume
", XF86AudioMute, exec, ${wpctl} set-mute @DEFAULT_AUDIO_SINK@ toggle"
", XF86AudioMicMute, exec, ${wpctl} set-mute @DEFAULT_AUDIO_SOURCE@ toggle"
];
bindle = [
# volume
", XF86AudioRaiseVolume, exec, ${wpctl} set-volume -l '1.0' @DEFAULT_AUDIO_SINK@ 6%+"
", XF86AudioLowerVolume, exec, ${wpctl} set-volume -l '1.0' @DEFAULT_AUDIO_SINK@ 6%-"
",XF86MonBrightnessUp, exec, ${brightnessctl} s 10%+"
",XF86MonBrightnessDown, exec, ${brightnessctl} s 10%-"
];
};
}; };
} }

View file

@ -3,7 +3,7 @@
lib, lib,
... ...
}: let }: let
cfg = config.niksos.desktop.enable && config.niksos.desktop.hyprland.enable; cfg = config.niksos.desktop.enable && config.niksos.desktop.hyprland;
in { in {
config = lib.mkIf cfg { config = lib.mkIf cfg {
# greetd display manager # greetd display manager

View file

@ -4,7 +4,7 @@
lib, lib,
... ...
}: let }: let
cfg = config.niksos.desktop.enable && config.niksos.desktop.hyprland.enable; cfg = config.niksos.desktop.enable && config.niksos.desktop.hyprland;
in { in {
config = lib.mkIf cfg { config = lib.mkIf cfg {
programs.hyprland = { programs.hyprland = {

View file

@ -4,7 +4,7 @@
config, config,
... ...
}: let }: let
cfg = config.niksos.desktop.enable && config.niksos.desktop.kde.enable; cfg = config.niksos.desktop.enable && config.niksos.desktop.kde;
in { in {
config = lib.mkIf cfg { config = lib.mkIf cfg {
niksos.desktop.hyprland = lib.mkForce false; niksos.desktop.hyprland = lib.mkForce false;
@ -16,7 +16,7 @@ in {
user = "jsw"; user = "jsw";
}; };
in { in {
enable = true; enable = true;
settings = { settings = {
terminal.vt = 1; terminal.vt = 1;
default_session = session; default_session = session;

View file

@ -4,7 +4,7 @@
pkgs, pkgs,
... ...
}: let }: let
cfg = config.niksos.desktop.enable && config.niksos.desktop.hyprland.enable; cfg = config.niksos.desktop.enable && config.niksos.desktop.hyprland;
in { in {
systemd.user.services.polkit-gnome-authentication-agent-1 = lib.mkIf cfg { systemd.user.services.polkit-gnome-authentication-agent-1 = lib.mkIf cfg {
description = "polkit-gnome-authentication-agent-1"; description = "polkit-gnome-authentication-agent-1";

View file

@ -4,7 +4,7 @@
lib, lib,
... ...
}: let }: let
cfg = config.niksos.desktop.enable && config.niksos.desktop.hyprland.enable; cfg = config.niksos.desktop.enable && config.niksos.desktop.hyprland;
in { in {
xdg.portal = lib.mkIf cfg { xdg.portal = lib.mkIf cfg {
enable = true; enable = true;