############################################## # These files are just for reference. # If you want to change anything definitive, edit the source files in: # ~/henrovnix/assets/conf # Temporarily(!) testing can by editing this file, edit the file and reloading hyprshell # # After that, run: # cd ~/henrovnix && emacs README.org --batch -f org-babel-tangle && git add . && git commit -m "Adjusted conf files" && sudo nixos-rebuild switch --flake .# # # If everything still works, you can use the same command but: # - keep "switch" # - and add a reboot: # # cd ~/henrovnix && sudo nixos-rebuild switch --flake .# && systemctl reboot # # NOTE: # Make sure the lines starting with: cd ~/henrovnix # are written as ONE single line. ############################################### ############################ # Variables ############################ # Colors (Hyprland "col" values commonly use rgba(aarrggbb)-style hex) # See Hyprland variable / type docs for color formats & bools. :contentReference[oaicite:2]{index=2} $base = rgba(1e1e2eff) $inactive = rgba(595959aa) $blue = rgba(33ccffee) $green = rgba(00ff99ee) # Recommended for correct environment in systemd user session / portals. :contentReference[oaicite:4]{index=4} exec-once = dbus-update-activation-environment --systemd --all exec-once = uwsm app -- waybar input { follow_mouse = 1 kb_layout = us kb_options = ctrl:nocaps sensitivity = -0.5 accel_profile = adaptive scroll_factor = 0.5 touchpad { natural_scroll = yes scroll_factor = 0.5 } } cursor { no_hardware_cursors = true } general { gaps_in = 2 gaps_out = 4 border_size = 2 # Gradient syntax: color color angle (e.g. 45deg). :contentReference[oaicite:5]{index=5} col.active_border = $blue $green 45deg col.inactive_border = $inactive layout = dwindle resize_on_border = true extend_border_grab_area = 20 # Makes it easier to "grab" the edge } decoration { rounding = 5 } animations { enabled = yes bezier = myBezier, 0.05, 0.9, 0.1, 1.05 animation = windows, 1, 7, myBezier animation = windowsOut, 1, 7, default, popin 80% animation = border, 1, 10, default animation = borderangle, 1, 8, default animation = fade, 1, 7, default animation = workspaces, 1, 6, default } dwindle { pseudotile = yes preserve_split = yes } misc { disable_hyprland_logo = false focus_on_activate = true } # Start required session helpers exec-once = hypridle exec-once = hyprpolkitagent # Lid close: lock only if no external monitor is connected bindl = , switch:on:Lid Switch, exec, ~/.config/hypr/scripts/lid-lock.sh # Lid open: turn DPMS back on (does not unlock) bindl = , switch:off:Lid Switch, exec, hyprctl dispatch dpms on exec-once = systemd-run --user --scope --unit=elephant elephant