From 82ddd5bebb80226294a90c4aa91bc55c69cc17c8 Mon Sep 17 00:00:00 2001 From: crurak Date: Tue, 8 Aug 2023 19:32:15 +0200 Subject: [PATCH] hyprland config --- home/hyprland.nix | 31 +++++++++++++++++-------------- home/kitty.nix | 1 + modules/hyprland.nix | 17 +++++++++++++++++ modules/packages.nix | 1 - 4 files changed, 35 insertions(+), 15 deletions(-) diff --git a/home/hyprland.nix b/home/hyprland.nix index 695c3a2..f99239d 100644 --- a/home/hyprland.nix +++ b/home/hyprland.nix @@ -8,22 +8,19 @@ in { env = XDG_SESSION_DESKTOP,hyprland env = GDK_BACKEND,wayland env = QT_QPA_PLATFORM,wayland - env = SWWW_TRANSITION,grow - env = SWWW_TRANSITION_STEP,200 - env = SWWW_TRANSITION_DURATION,1.5 - env = SWWW_TRANSITION_FPS,240 - env = SWWW_TRANSITION_WAVE,80,40 env = WLR_NO_HARDWARE_CURSORS,1 monitor=eDP-1,1920x1080@60.096001,0x0,1 general { - gaps_in = 0 - gaps_out = -1 - border_size = 0 + gaps_in = 5 + gaps_out = 5 + border_size = 2 col.active_border = rgba(002B36ee) 45deg col.inactive_border = rgba(07364299) + no_border_on_floating = false layout = dwindle + no_cursor_warps = true } input { @@ -42,10 +39,11 @@ in { decoration { rounding = 10 - blur = yes - blur_size = 3 - blur_passes = 1 - blur_new_optimizations = on + blur = true + blur_size = 6 + blur_passes = 3 + blur_new_optimizations = true + blur_ignore_opacity = true drop_shadow = yes shadow_range = 4 col.shadow = rgba(1a1a1aee) @@ -63,8 +61,9 @@ in { # } dwindle { + no_gaps_when_only = false preserve_split = yes -# pseudotile = yes # master switch for pseudotiling. Enabling is bound to mainMod + P in the keybinds section below + pseudotile = true # master switch for pseudotiling. Enabling is bound to mainMod + P in the keybinds section below } master { @@ -78,7 +77,7 @@ in { } exec-once = waybar - exec-once = sleep 0.5; swww init && swww query | rg color && swww img ${../assets/wallpaper_street.jpg} + exec-once = hyprpaper $SUPER = ${modifier} $SUPER_SHIFT = ${modifier}_SHIFT @@ -105,4 +104,8 @@ in { bindl=, XF86MonBrightnessUp, exec, brightnessctl set +5% && notify-send -t 2000 "Increased brightness to" "$(brightnessctl get)" ''; + xdg.configFile."hypr/hyprpaper.conf".text = '' + preload = ${../assets/wallpaper_street.jpg} + wallpaper = eDP-1,${../assets/wallpaper_street.jpg} + ''; } diff --git a/home/kitty.nix b/home/kitty.nix index fd61ca9..996bde6 100644 --- a/home/kitty.nix +++ b/home/kitty.nix @@ -5,6 +5,7 @@ enable_audio_bell = false; close_on_child_death = true; cursor_blink_interval = 0; + background_opacity = "0.8"; open_url_with = "librewolf"; wayland_titlebar_color = "background"; diff --git a/modules/hyprland.nix b/modules/hyprland.nix index d6a2742..61606db 100644 --- a/modules/hyprland.nix +++ b/modules/hyprland.nix @@ -1,8 +1,25 @@ { inputs, pkgs, ... }: { programs.hyprland = { enable = true; + xwayland = { + enable = true; + hidpi = true; + }; }; + environment.systemPackages = with pkgs; [ + xdg-desktop-portal-hyprland +# hyprland-protocols + # xdg-desktop-portal + # xdg-desktop-portal-gtk + + rofi-wayland # launcher +# wl-clipboard # wayland clipboard support +# swaylock-effects # screenlocker +# swayidle # idle daemon (screen time out) + hyprpaper # Wallpaper daemon + ]; + services.xserver = { enable = true; excludePackages = [ pkgs.xterm ]; diff --git a/modules/packages.nix b/modules/packages.nix index 5f5ca4b..a84e0b4 100644 --- a/modules/packages.nix +++ b/modules/packages.nix @@ -5,7 +5,6 @@ jq neofetch ripgrep # rg in home/hyprland.nix - swww tree wget wl-clipboard