This commit is contained in:
Pedro Rey Anca 2025-07-09 14:25:59 +02:00
parent 8e97065d77
commit 60229953ee
Signed by: peprolinbot
GPG key ID: 053EA6E00116533A
3 changed files with 37 additions and 30 deletions

View file

@ -4,7 +4,11 @@
username, username,
... ...
}: { }: {
programs.hyprland.enable = true; programs.hyprland = {
enable = true;
withUWSM = true;
};
xdg.portal = { xdg.portal = {
enable = true; enable = true;
wlr.enable = true; wlr.enable = true;
@ -30,9 +34,11 @@
}; };
cageArgs = ["-s" "-m" "last"]; # Only show on the last monitor cageArgs = ["-s" "-m" "last"]; # Only show on the last monitor
}; };
services.greetd.settings.initial_session = { services.greetd.settings.initial_session = {
command = "Hyprland"; command = "uwsm start hyprland-uwsm.desktop";
user = "${username}"; user = "${username}";
}; };
environment.sessionVariables.XKB_DEFAULT_LAYOUT = "es"; environment.sessionVariables.XKB_DEFAULT_LAYOUT = "es";
} }

View file

@ -3,15 +3,15 @@
settings = { settings = {
# autostart # autostart
exec-once = [ exec-once = [
"nm-applet &" "uwsm app -- nm-applet"
"wl-clip-persist --clipboard regular &" "uwsm app -- wl-clip-persist --clipboard regular"
"bash -c 'if [ ! -f ~/.config/hypr/wallpaper.png ]; then wall-change ~/.config/hypr/default_wallpaper.png; fi'" "uwsm app -- bash -c 'if [ ! -f ~/.config/hypr/wallpaper.png ]; then wall-change ~/.config/hypr/default_wallpaper.png; fi'"
"swaybg -m fill -i ~/.config/hypr/wallpaper.png &" "uwsm app -- swaybg -m fill -i ~/.config/hypr/wallpaper.png &"
"poweralertd &" "uwsm app -- poweralertd"
"waybar &" "uwsm app -- waybar"
"swaync &" "uwsm app -- swaync"
"ckb-next -b &" "uwsm app -- ckb-next -b"
"element-desktop --hidden &" "uwsm app -- element-desktop --hidden"
]; ];
input = { input = {
@ -126,32 +126,33 @@
"$mainMod, F1, exec, show-keybinds" "$mainMod, F1, exec, show-keybinds"
# keybindings # keybindings
"$mainMod, Return, exec, kitty" "$mainMod, Return, exec, uwsm app -- kitty"
"ALT, Return, exec, kitty --title float_kitty" "ALT, Return, exec, uwsm app -- kitty --title float_kitty"
"$mainMod SHIFT, Return, exec, kitty --start-as=fullscreen -o 'font_size=16'" "$mainMod SHIFT, Return, exec, uwsm app -- kitty --start-as=fullscreen -o 'font_size=16'"
"$mainMod, B, exec, librewolf" "$mainMod, B, exec, uwsm app -- librewolf"
"$mainMod, N, exec, swaync-client -t" "$mainMod, N, exec, uwsm app -- swaync-client -t"
"$mainMod SHIFT, N, exec, swaync-client -d" "$mainMod SHIFT, N, exec, uwsm app -- swaync-client -d"
"$mainMod SHIFT, Q, killactive," "$mainMod SHIFT, Q, killactive,"
"$mainMod, F, fullscreen, 0" "$mainMod, F, fullscreen, 0"
"$mainMod SHIFT, F, fullscreen, 1" "$mainMod SHIFT, F, fullscreen, 1"
"$mainMod, Space, togglefloating," "$mainMod, Space, togglefloating,"
"$mainMod, D, exec, fuzzel" "$mainMod, D, exec, uwsm app -- fuzzel"
"$mainMod SHIFT, E, exec, bemoji -n" "$mainMod SHIFT, E, exec, uwsm app -- bemoji -n"
"$mainMod, M, exec, element-desktop" "$mainMod, M, exec, uwsm app -- element-desktop"
"$mainMod, Y, exec, kitty spotify_player" "$mainMod, Y, exec, uwsm app -- kitty spotify_player"
"$mainMod, Escape, exec, loginctl lock-session" "$mainMod, X, exec, uwsm app -- rofi-rbw"
"$mainMod SHIFT, Escape, exec, shutdown-script" "$mainMod, Escape, exec, uwsm app -- loginctl lock-session"
"$mainMod SHIFT, Escape, exec, uwsm app -- shutdown-script"
"$mainMod, P, pseudo," "$mainMod, P, pseudo,"
"$mainMod SHIFT, P, togglesplit," "$mainMod SHIFT, P, togglesplit,"
"$mainMod, E, exec, nemo" "$mainMod, E, exec, uwsm app -- nemo"
"$mainMod SHIFT, B, exec, pkill -SIGUSR1 .waybar-wrapped" "$mainMod SHIFT, B, exec, uwsm app -- pkill -SIGUSR1 .waybar-wrapped"
"$mainMod, C ,exec, hyprpicker -a" "$mainMod, C ,exec, uwsm app -- hyprpicker -a"
"$mainMod, W,exec, wallpaper-picker" "$mainMod, W,exec, uwsm app -- wallpaper-picker"
# screenshot # screenshot
"$mainMod, Print, exec, screenshot-menu" "$mainMod, Print, exec, uwsm app -- screenshot-menu"
",Print, exec, grimblast --notify --freeze copy area" ",Print, exec, uwsm app -- grimblast --notify --freeze copy area"
] ]
++ ( ++ (
# workspaces # workspaces

View file

@ -23,7 +23,7 @@
# hidpi = true; # hidpi = true;
}; };
# enableNvidiaPatches = false; # enableNvidiaPatches = false;
systemd.enable = true; systemd.enable = false;
}; };
services.hyprpolkitagent.enable = true; services.hyprpolkitagent.enable = true;