hypr: use UWSM (but it actually works)

This commit is contained in:
Nico 2025-08-21 21:41:37 +10:00
parent 80e034cbc5
commit 102ac93123
Signed by: nico
SSH key fingerprint: SHA256:XuacYOrGqRxC3jVFjfLROn1CSvLz85Dec6N7O9Gwu/0
2 changed files with 18 additions and 17 deletions

View file

@ -2,6 +2,7 @@
{ {
programs.hyprland.enable = true; programs.hyprland.enable = true;
programs.hyprland.withUWSM = true;
# Optional, hint electron apps to use wayland: # Optional, hint electron apps to use wayland:
environment.sessionVariables.NIXOS_OZONE_WL = "1"; environment.sessionVariables.NIXOS_OZONE_WL = "1";

View file

@ -13,17 +13,17 @@ monitor=eDP-1,1920x1080@60,auto,1
# Autostart necessary processes (like notifications daemons, status bars, etc.) # Autostart necessary processes (like notifications daemons, status bars, etc.)
# Or execute your favorite apps at launch like this: # Or execute your favorite apps at launch like this:
exec-once = swww-daemon & exec-once = uwsm app -- swww-daemon
exec-once = waybar & exec-once = uwsm app -- waybar
exec-once = swaync & exec-once = uwsm app -- swaync
exec-once = hyprshade auto & exec-once = hyprshade auto
exec-once = walker --gapplication-service exec-once = walker -A
exec-once = opensnitch-ui exec-once = uwsm app -- opensnitch-ui
exec-once = systemctl start --user polkit-gnome-authentication-agent-1.service exec-once = systemctl start --user polkit-gnome-authentication-agent-1.service
exec-once = fcitx5 & exec-once = uwsm app -- fcitx5
exec-once = steam -silent & exec-once = uwsm app -- steam -silent
exec-once = 1password --silent & exec-once = uwsm app -- 1password --silent
############################# #############################
### ENVIRONMENT VARIABLES ### ### ENVIRONMENT VARIABLES ###
@ -165,18 +165,18 @@ device {
$mainMod = SUPER # Sets "Windows" key as main modifier $mainMod = SUPER # Sets "Windows" key as main modifier
# Example binds, see https://wiki.hyprland.org/Configuring/Binds/ for more # Example binds, see https://wiki.hyprland.org/Configuring/Binds/ for more
bind = $mainMod, Q, exec, ghostty bind = $mainMod, Q, exec, uwsm app -- ghostty
bind = $mainMod, B, exec, firefox bind = $mainMod, B, exec, uwsm app -- firefox
bind = $mainMod, D, exec, walker bind = $mainMod, D, exec, walker
bind = $mainMod shift, D, exec, 1password --quick-access bind = $mainMod shift, D, exec, uwsm app -- 1password --quick-access
bind = $mainMod, S, exec, hyprshot -z --clipboard-only -m region bind = $mainMod, S, exec, uwsm app -- hyprshot -z --clipboard-only -m region
bind = $mainMod shift, S, exec, hyprshot -z --clipboard-only -m window bind = $mainMod shift, S, exec, uwsm app -- hyprshot -z --clipboard-only -m window
bind = $mainMod control, S, exec, hyprshot -z --clipboard-only -m active bind = $mainMod control, S, exec, uwsm app -- hyprshot -z --clipboard-only -m active
bind = $mainMod, V, exec, sh ~/.config/hypr/hyprlock.sh bind = $mainMod, V, exec, uwsm app -- sh ~/.config/hypr/hyprlock.sh
bind = $mainMod, SPACE, togglefloating, bind = $mainMod, SPACE, togglefloating,
bind = $mainMod, W, killactive, bind = $mainMod, W, killactive,
bind = $mainMod, M, exit, bind = $mainMod, M, exec, uwsm stop
#bind = $mainMod, P, pseudo, # dwindle # have no clue what this does #bind = $mainMod, P, pseudo, # dwindle # have no clue what this does
bind = $mainMod, F, fullscreen bind = $mainMod, F, fullscreen