[hyprland] feat: added special environment config
This commit is contained in:
parent
e6564c4f50
commit
1dc494013e
@ -3,6 +3,7 @@
|
|||||||
|
|
||||||
# include hyprland configs
|
# include hyprland configs
|
||||||
home.file.".config/hypr/bindings.conf".text = ''
|
home.file.".config/hypr/bindings.conf".text = ''
|
||||||
|
|
||||||
binds {
|
binds {
|
||||||
workspace_back_and_forth = true
|
workspace_back_and_forth = true
|
||||||
}
|
}
|
||||||
|
27
nix/home/hyprland/hyprland-environment.nix
Normal file
27
nix/home/hyprland/hyprland-environment.nix
Normal 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
|
||||||
|
|
||||||
|
'';
|
||||||
|
}
|
@ -3,6 +3,7 @@
|
|||||||
|
|
||||||
# include hyprland configs
|
# include hyprland configs
|
||||||
home.file.".config/hypr/executions.conf".text = ''
|
home.file.".config/hypr/executions.conf".text = ''
|
||||||
|
|
||||||
# start waybar
|
# start waybar
|
||||||
exec = ~/.dotfiles/apps/waybar/startup.sh
|
exec = ~/.dotfiles/apps/waybar/startup.sh
|
||||||
|
|
||||||
|
@ -3,14 +3,12 @@
|
|||||||
|
|
||||||
# include hyprland configs
|
# include hyprland configs
|
||||||
home.file.".config/hypr/general.conf".text = ''
|
home.file.".config/hypr/general.conf".text = ''
|
||||||
# environment
|
|
||||||
env = MOZ_ENABLE_WAYLAND,1
|
|
||||||
env = ELECTRON_OZONE_PLATFORM_HINT,auto
|
|
||||||
|
|
||||||
# dwindle secion
|
# dwindle secion
|
||||||
dwindle {
|
dwindle {
|
||||||
pseudotile = yes
|
pseudotile = yes
|
||||||
preserve_split = yes
|
preserve_split = yes
|
||||||
|
special_scale_factor = 0.8
|
||||||
}
|
}
|
||||||
|
|
||||||
# general section
|
# general section
|
||||||
@ -18,7 +16,7 @@
|
|||||||
border_size = 3
|
border_size = 3
|
||||||
|
|
||||||
col.active_border = rgba(528bffaa) rgba(043a8baa) 45deg
|
col.active_border = rgba(528bffaa) rgba(043a8baa) 45deg
|
||||||
col.inactive_border = rgb(595959)
|
col.inactive_border = rgba(2b2a33aa)
|
||||||
|
|
||||||
gaps_in = 5
|
gaps_in = 5
|
||||||
gaps_out = 20
|
gaps_out = 20
|
||||||
@ -26,9 +24,11 @@
|
|||||||
layout = dwindle
|
layout = dwindle
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# misc section
|
||||||
misc {
|
misc {
|
||||||
disable_hyprland_logo = true
|
disable_hyprland_logo = true
|
||||||
disable_splash_rendering = true
|
disable_splash_rendering = true
|
||||||
}
|
}
|
||||||
|
|
||||||
'';
|
'';
|
||||||
}
|
}
|
||||||
|
@ -3,6 +3,7 @@
|
|||||||
|
|
||||||
# include hyprland configs
|
# include hyprland configs
|
||||||
home.file.".config/hypr/graphics.conf".text = ''
|
home.file.".config/hypr/graphics.conf".text = ''
|
||||||
|
|
||||||
# main monitors
|
# main monitors
|
||||||
monitor = eDP-1, 1920x1200@60, 760x1440, 1 # laptop (native: 2560x1600@60, preffered 1920x1200)
|
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
|
monitor = HDMI-A-1, 1920x1080@60, 0x0, 1 # force 1080p on hdmi output
|
||||||
@ -57,5 +58,6 @@
|
|||||||
active_opacity = 1.0
|
active_opacity = 1.0
|
||||||
inactive_opacity = 1.0
|
inactive_opacity = 1.0
|
||||||
}
|
}
|
||||||
|
|
||||||
'';
|
'';
|
||||||
}
|
}
|
||||||
|
@ -3,6 +3,7 @@
|
|||||||
|
|
||||||
# include hyprland configs
|
# include hyprland configs
|
||||||
home.file.".config/hypr/input.conf".text = ''
|
home.file.".config/hypr/input.conf".text = ''
|
||||||
|
|
||||||
# gesture secion
|
# gesture secion
|
||||||
gestures {
|
gestures {
|
||||||
workspace_swipe = true
|
workspace_swipe = true
|
||||||
@ -18,8 +19,11 @@
|
|||||||
|
|
||||||
touchpad {
|
touchpad {
|
||||||
disable_while_typing = true
|
disable_while_typing = true
|
||||||
natural_scroll = yes
|
drag_lock = true
|
||||||
|
natural_scroll = true
|
||||||
|
tap-and-drag = true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
'';
|
'';
|
||||||
}
|
}
|
||||||
|
@ -3,10 +3,6 @@
|
|||||||
|
|
||||||
# include hyprland configs
|
# include hyprland configs
|
||||||
home.file.".config/hypr/window_rules.conf".text = ''
|
home.file.".config/hypr/window_rules.conf".text = ''
|
||||||
# master section
|
|
||||||
master {
|
|
||||||
new_is_master = true
|
|
||||||
}
|
|
||||||
|
|
||||||
# window rules
|
# window rules
|
||||||
windowrule = float, confirm|confirmreset
|
windowrule = float, confirm|confirmreset
|
||||||
@ -82,5 +78,6 @@
|
|||||||
windowrulev2 = forceinput, class:(wofi)
|
windowrulev2 = forceinput, class:(wofi)
|
||||||
windowrulev2 = windowdance, class:(wofi)
|
windowrulev2 = windowdance, class:(wofi)
|
||||||
windowrulev2 = stayfocused, class:(wofi)
|
windowrulev2 = stayfocused, class:(wofi)
|
||||||
|
|
||||||
'';
|
'';
|
||||||
}
|
}
|
||||||
|
@ -3,11 +3,14 @@
|
|||||||
|
|
||||||
# include hyprland configs
|
# include hyprland configs
|
||||||
home.file.".config/hypr/hyprland.conf".text = ''
|
home.file.".config/hypr/hyprland.conf".text = ''
|
||||||
|
|
||||||
|
source = ~/.config/hypr/environ,ent.conf
|
||||||
source = ~/.config/hypr/executions.conf
|
source = ~/.config/hypr/executions.conf
|
||||||
source = ~/.config/hypr/general.conf
|
source = ~/.config/hypr/general.conf
|
||||||
source = ~/.config/hypr/graphics.conf
|
source = ~/.config/hypr/graphics.conf
|
||||||
source = ~/.config/hypr/input.conf
|
source = ~/.config/hypr/input.conf
|
||||||
source = ~/.config/hypr/window_rules.conf
|
source = ~/.config/hypr/window_rules.conf
|
||||||
source = ~/.config/hypr/bindings.conf
|
source = ~/.config/hypr/bindings.conf
|
||||||
|
|
||||||
'';
|
'';
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user