[hyprland] feat: added special environment config

This commit is contained in:
Simon Cornet 2024-06-04 07:59:36 +02:00
parent e6564c4f50
commit 1dc494013e
8 changed files with 46 additions and 11 deletions

View File

@ -3,6 +3,7 @@
# include hyprland configs
home.file.".config/hypr/bindings.conf".text = ''
binds {
workspace_back_and_forth = true
}

View File

@ -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
'';
}

View File

@ -3,6 +3,7 @@
# include hyprland configs
home.file.".config/hypr/executions.conf".text = ''
# start waybar
exec = ~/.dotfiles/apps/waybar/startup.sh

View File

@ -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
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
}
'';
}

View File

@ -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
}
'';
}

View File

@ -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
}
}
'';
}

View File

@ -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)
'';
}

View File

@ -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
'';
}