diff --git a/nix/home/hyprland/hyprland-bindings.nix b/nix/home/hyprland/hyprland-bindings.nix index c73b48f..e15e4e5 100644 --- a/nix/home/hyprland/hyprland-bindings.nix +++ b/nix/home/hyprland/hyprland-bindings.nix @@ -3,6 +3,7 @@ # include hyprland configs home.file.".config/hypr/bindings.conf".text = '' + binds { workspace_back_and_forth = true } diff --git a/nix/home/hyprland/hyprland-environment.nix b/nix/home/hyprland/hyprland-environment.nix new file mode 100644 index 0000000..53c7990 --- /dev/null +++ b/nix/home/hyprland/hyprland-environment.nix @@ -0,0 +1,27 @@ +{ config, ... }: +{ + + # include hyprland configs + home.file.".config/hypr/environment.conf".text = '' + + # firefox + env = MOZ_ENABLE_WAYLAND,1 + + # electron + env = ELECTRON_OZONE_PLATFORM_HINT,auto + + # desktop frameworks + env = CLUTTER_BACKEND,wayland + env = GDK_BACKEND,wayland,x11 + env = QT_AUTO_SCREEN_SCALE_FACTOR,1 + env = QT_QPA_PLATFORM,wayland;xcb + env = QT_QPA_PLATFORMTHEME,qt5ct + env = QT_QPA_PLATFORMTHEME,qt6ct + env = QT_SCALE_FACTOR,1 + env = QT_WAYLAND_DISABLE_WINDOWDECORATION,1 + env = XDG_CURRENT_DESKTOP,Hyprland + env = XDG_SESSION_DESKTOP,Hyprland + env = XDG_SESSION_TYPE,wayland + + ''; +} diff --git a/nix/home/hyprland/hyprland-execution.nix b/nix/home/hyprland/hyprland-execution.nix index 09d92af..a1c2d33 100644 --- a/nix/home/hyprland/hyprland-execution.nix +++ b/nix/home/hyprland/hyprland-execution.nix @@ -3,6 +3,7 @@ # include hyprland configs home.file.".config/hypr/executions.conf".text = '' + # start waybar exec = ~/.dotfiles/apps/waybar/startup.sh diff --git a/nix/home/hyprland/hyprland-general.nix b/nix/home/hyprland/hyprland-general.nix index 4938b12..04e5893 100644 --- a/nix/home/hyprland/hyprland-general.nix +++ b/nix/home/hyprland/hyprland-general.nix @@ -3,14 +3,12 @@ # include hyprland configs home.file.".config/hypr/general.conf".text = '' - # environment - env = MOZ_ENABLE_WAYLAND,1 - env = ELECTRON_OZONE_PLATFORM_HINT,auto # dwindle secion dwindle { - pseudotile = yes - preserve_split = yes + pseudotile = yes + preserve_split = yes + special_scale_factor = 0.8 } # general section @@ -18,7 +16,7 @@ border_size = 3 col.active_border = rgba(528bffaa) rgba(043a8baa) 45deg - col.inactive_border = rgb(595959) + col.inactive_border = rgba(2b2a33aa) gaps_in = 5 gaps_out = 20 @@ -26,9 +24,11 @@ layout = dwindle } + # misc section misc { disable_hyprland_logo = true disable_splash_rendering = true } + ''; } diff --git a/nix/home/hyprland/hyprland-graphics.nix b/nix/home/hyprland/hyprland-graphics.nix index 6ecc455..15f07c6 100644 --- a/nix/home/hyprland/hyprland-graphics.nix +++ b/nix/home/hyprland/hyprland-graphics.nix @@ -3,6 +3,7 @@ # include hyprland configs home.file.".config/hypr/graphics.conf".text = '' + # main monitors monitor = eDP-1, 1920x1200@60, 760x1440, 1 # laptop (native: 2560x1600@60, preffered 1920x1200) monitor = HDMI-A-1, 1920x1080@60, 0x0, 1 # force 1080p on hdmi output @@ -57,5 +58,6 @@ active_opacity = 1.0 inactive_opacity = 1.0 } + ''; } diff --git a/nix/home/hyprland/hyprland-input.nix b/nix/home/hyprland/hyprland-input.nix index eb96c3f..0e2c9aa 100644 --- a/nix/home/hyprland/hyprland-input.nix +++ b/nix/home/hyprland/hyprland-input.nix @@ -3,6 +3,7 @@ # include hyprland configs home.file.".config/hypr/input.conf".text = '' + # gesture secion gestures { workspace_swipe = true @@ -18,8 +19,11 @@ touchpad { disable_while_typing = true - natural_scroll = yes + drag_lock = true + natural_scroll = true + tap-and-drag = true } } + ''; } diff --git a/nix/home/hyprland/hyprland-window_rules.nix b/nix/home/hyprland/hyprland-window_rules.nix index 3beb1bd..41dac94 100644 --- a/nix/home/hyprland/hyprland-window_rules.nix +++ b/nix/home/hyprland/hyprland-window_rules.nix @@ -3,10 +3,6 @@ # include hyprland configs home.file.".config/hypr/window_rules.conf".text = '' - # master section - master { - new_is_master = true - } # window rules windowrule = float, confirm|confirmreset @@ -82,5 +78,6 @@ windowrulev2 = forceinput, class:(wofi) windowrulev2 = windowdance, class:(wofi) windowrulev2 = stayfocused, class:(wofi) + ''; } diff --git a/nix/home/hyprland/hyprland.nix b/nix/home/hyprland/hyprland.nix index ddaac88..c70c1ff 100644 --- a/nix/home/hyprland/hyprland.nix +++ b/nix/home/hyprland/hyprland.nix @@ -3,11 +3,14 @@ # include hyprland configs home.file.".config/hypr/hyprland.conf".text = '' + + source = ~/.config/hypr/environ,ent.conf source = ~/.config/hypr/executions.conf source = ~/.config/hypr/general.conf source = ~/.config/hypr/graphics.conf source = ~/.config/hypr/input.conf source = ~/.config/hypr/window_rules.conf source = ~/.config/hypr/bindings.conf + ''; }