init
This commit is contained in:
2
packages/hyprland/colors.conf
Normal file
2
packages/hyprland/colors.conf
Normal file
@@ -0,0 +1,2 @@
|
||||
$borderActive = 0xffb072d1
|
||||
$borderInactive = 0xff292a37
|
||||
22
packages/hyprland/default.nix
Normal file
22
packages/hyprland/default.nix
Normal file
@@ -0,0 +1,22 @@
|
||||
{ pkgs, config, lib,... }:
|
||||
{
|
||||
home.packages = with pkgs; [
|
||||
hyprland
|
||||
swww
|
||||
wl-clipboard
|
||||
pulseaudio
|
||||
];
|
||||
|
||||
home.file =
|
||||
lib.mkMerge [
|
||||
{
|
||||
".config/hypr/hyprland.conf".source = ./hyprland.conf;
|
||||
".config/hypr/keybinds.conf".source = ./keybinds.conf;
|
||||
".config/hypr/rules.conf".source = ./rules.conf;
|
||||
".config/hypr/setup.conf".source = ./setup.conf;
|
||||
".config/hypr/startup.conf".source = ./startup.conf;
|
||||
".config/hypr/colors.conf".source = ./colors.conf;
|
||||
".config/hypr/theme.conf".source = ./theme.conf;
|
||||
}
|
||||
];
|
||||
}
|
||||
12
packages/hyprland/hyprland.conf
Normal file
12
packages/hyprland/hyprland.conf
Normal file
@@ -0,0 +1,12 @@
|
||||
#monitor=DP-3,1920x1080,-1920x0,1
|
||||
#monitor=DP-2,preferred,0x0,1
|
||||
monitor=eDP-1,preferred,0x0,1
|
||||
|
||||
|
||||
source = ~/.config/hypr/startup.conf
|
||||
source = ~/.config/hypr/setup.conf
|
||||
source = ~/.config/hypr/rules.conf
|
||||
source = ~/.config/hypr/keybinds.conf
|
||||
source = ~/.config/hypr/colors.conf
|
||||
source = ~/.config/hypr/theme.conf
|
||||
|
||||
55
packages/hyprland/keybinds.conf
Normal file
55
packages/hyprland/keybinds.conf
Normal file
@@ -0,0 +1,55 @@
|
||||
$mainMod = SUPER
|
||||
|
||||
# Example binds, see https://wiki.hyprland.org/Configuring/Binds/ for more
|
||||
bind = $mainMod, RETURN, exec, kitty
|
||||
bind = $mainMod, Q, exec, brave
|
||||
bind = SUPER, BackSpace, killactive,
|
||||
bind = SUPER_SHIFT, P, exec, sudo shutdown now
|
||||
bind = SUPER_SHIFT, R, exec, sudo reboot now
|
||||
bind = $mainMod, M, exec, hyprctl dispatch exit
|
||||
#bind = $mainMod, E, exec, dolphin
|
||||
bind = $mainMod, V, togglefloating,
|
||||
# bind = $mainMod, R, exec, rofi -show drun
|
||||
#bind = $mainMod, P, pseudo, # dwindle
|
||||
bind = $mainMod, J, togglesplit, # dwindle
|
||||
bind = $mainMod, F, fullscreen,1
|
||||
bind = SUPER_SHIFT, F, fullscreen,0
|
||||
|
||||
# Move focus with mainMod + arrow keys
|
||||
bind = $mainMod, left, movefocus, l
|
||||
bind = $mainMod, right, movefocus, r
|
||||
bind = $mainMod, up, movefocus, u
|
||||
bind = $mainMod, down, movefocus, d
|
||||
|
||||
# Switch workspaces with mainMod + [0-9]
|
||||
bind = $mainMod, 1, workspace, 1
|
||||
bind = $mainMod, 2, workspace, 2
|
||||
bind = $mainMod, 3, workspace, 3
|
||||
bind = $mainMod, 4, workspace, 4
|
||||
bind = $mainMod, 5, workspace, 5
|
||||
bind = $mainMod, 6, workspace, 6
|
||||
bind = $mainMod, 7, workspace, 7
|
||||
bind = $mainMod, 8, workspace, 8
|
||||
bind = $mainMod, 9, workspace, 9
|
||||
bind = $mainMod, 0, workspace, 10
|
||||
|
||||
|
||||
# Move active window to a workspace with mainMod + SHIFT + [0-9]
|
||||
bind = $mainMod SHIFT, 1, movetoworkspace, 1
|
||||
bind = $mainMod SHIFT, 2, movetoworkspace, 2
|
||||
bind = $mainMod SHIFT, 3, movetoworkspace, 3
|
||||
bind = $mainMod SHIFT, 4, movetoworkspace, 4
|
||||
bind = $mainMod SHIFT, 5, movetoworkspace, 5
|
||||
bind = $mainMod SHIFT, 6, movetoworkspace, 6
|
||||
bind = $mainMod SHIFT, 7, movetoworkspace, 7
|
||||
bind = $mainMod SHIFT, 8, movetoworkspace, 8
|
||||
bind = $mainMod SHIFT, 9, movetoworkspace, 9
|
||||
bind = $mainMod SHIFT, 0, movetoworkspace, 10
|
||||
|
||||
# Scroll through existing workspaces with mainMod + scroll
|
||||
bind = $mainMod, mouse_down, workspace, e+1
|
||||
bind = $mainMod, mouse_up, workspace, e-1
|
||||
|
||||
# Move/resize windows with mainMod + LMB/RMB and dragging
|
||||
bindm = $mainMod, mouse:272, movewindow
|
||||
bindm = $mainMod, mouse:273, resizewindow
|
||||
78
packages/hyprland/rules.conf
Normal file
78
packages/hyprland/rules.conf
Normal file
@@ -0,0 +1,78 @@
|
||||
# ######## Window rules ########
|
||||
windowrule = noblur,.*
|
||||
# windowrule = opacity 0.89 override 0.89 override, .* # Applies transparency to EVERY WINDOW
|
||||
windowrule = float, ^(blueberry.py)$
|
||||
windowrule = float, ^(steam)$
|
||||
windowrule = float, ^(guifetch)$ # FlafyDev/guifetch
|
||||
windowrulev2 = tile, class:(dev.warp.Warp)
|
||||
windowrulev2 = float, title:^([Pp]icture[-\s]?[Ii]n[-\s]?[Pp]icture)(.*)$
|
||||
windowrule = center, title:^(Open File)(.*)$
|
||||
windowrule = center, title:^(Select a File)(.*)$
|
||||
windowrule = center, title:^(Choose wallpaper)(.*)$
|
||||
windowrule = center, title:^(Open Folder)(.*)$
|
||||
windowrule = center, title:^(Save As)(.*)$
|
||||
windowrule = center, title:^(Library)(.*)$
|
||||
windowrule = center, title:^(File Upload)(.*)$
|
||||
|
||||
# Dialogs
|
||||
windowrule=float,title:^(Open File)(.*)$
|
||||
windowrule=float,title:^(Select a File)(.*)$
|
||||
windowrule=float,title:^(Choose wallpaper)(.*)$
|
||||
windowrule=float,title:^(Open Folder)(.*)$
|
||||
windowrule=float,title:^(Save As)(.*)$
|
||||
windowrule=float,title:^(Library)(.*)$
|
||||
windowrule=float,title:^(File Upload)(.*)$
|
||||
|
||||
# Tearing
|
||||
windowrule=immediate,.*\.exe
|
||||
windowrulev2=immediate,class:(steam_app)
|
||||
|
||||
# No shadow for tiled windows
|
||||
windowrulev2 = noshadow,floating:0
|
||||
|
||||
# ######## Layer rules ########
|
||||
layerrule = xray 1, .*
|
||||
# layerrule = noanim, .*
|
||||
layerrule = noanim, walker
|
||||
layerrule = noanim, selection
|
||||
layerrule = noanim, overview
|
||||
layerrule = noanim, anyrun
|
||||
layerrule = noanim, indicator.*
|
||||
layerrule = noanim, osk
|
||||
layerrule = noanim, hyprpicker
|
||||
layerrule = blur, shell:*
|
||||
layerrule = ignorealpha 0.6, shell:*
|
||||
|
||||
layerrule = noanim, noanim
|
||||
layerrule = blur, gtk-layer-shell
|
||||
layerrule = ignorezero, gtk-layer-shell
|
||||
layerrule = blur, launcher
|
||||
layerrule = ignorealpha 0.5, launcher
|
||||
layerrule = blur, notifications
|
||||
layerrule = ignorealpha 0.69, notifications
|
||||
|
||||
# ags
|
||||
layerrule = animation slide top, sideleft.*
|
||||
layerrule = animation slide top, sideright.*
|
||||
layerrule = blur, session
|
||||
|
||||
layerrule = blur, bar
|
||||
layerrule = ignorealpha 0.6, bar
|
||||
layerrule = blur, corner.*
|
||||
layerrule = ignorealpha 0.6, corner.*
|
||||
layerrule = blur, dock
|
||||
layerrule = ignorealpha 0.6, dock
|
||||
layerrule = blur, indicator.*
|
||||
layerrule = ignorealpha 0.6, indicator.*
|
||||
layerrule = blur, overview
|
||||
layerrule = ignorealpha 0.6, overview
|
||||
layerrule = blur, cheatsheet
|
||||
layerrule = ignorealpha 0.6, cheatsheet
|
||||
layerrule = blur, sideright
|
||||
layerrule = ignorealpha 0.6, sideright
|
||||
layerrule = blur, sideleft
|
||||
layerrule = ignorealpha 0.6, sideleft
|
||||
layerrule = blur, indicator*
|
||||
layerrule = ignorealpha 0.6, indicator*
|
||||
layerrule = blur, osk
|
||||
layerrule = ignorealpha 0.6, osk
|
||||
55
packages/hyprland/setup.conf
Normal file
55
packages/hyprland/setup.conf
Normal file
@@ -0,0 +1,55 @@
|
||||
input {
|
||||
kb_layout = de
|
||||
kb_variant =
|
||||
kb_model =
|
||||
kb_options =
|
||||
kb_rules =
|
||||
|
||||
follow_mouse = 1
|
||||
|
||||
touchpad {
|
||||
natural_scroll = no
|
||||
}
|
||||
}
|
||||
|
||||
general {
|
||||
#sensitivity=1
|
||||
|
||||
gaps_in=6
|
||||
gaps_out=12
|
||||
border_size=4
|
||||
col.active_border=$borderActive
|
||||
col.inactive_border=$borderInactive
|
||||
}
|
||||
|
||||
misc {
|
||||
disable_hyprland_logo=true
|
||||
disable_splash_rendering=true
|
||||
}
|
||||
|
||||
decoration {
|
||||
rounding = 8
|
||||
active_opacity = 0.95
|
||||
inactive_opacity = 0.83
|
||||
fullscreen_opacity = 1
|
||||
blur {
|
||||
enabled = true
|
||||
xray = true
|
||||
}
|
||||
drop_shadow=true
|
||||
shadow_range=4
|
||||
col.shadow=0x66000000
|
||||
}
|
||||
|
||||
animations {
|
||||
enabled=1
|
||||
|
||||
animation=windows,1,4,default,slide
|
||||
animation=border,1,5,default
|
||||
animation=fade,1,5,default
|
||||
animation=workspaces,1,3,default
|
||||
}
|
||||
|
||||
dwindle {
|
||||
pseudotile=0
|
||||
}
|
||||
1
packages/hyprland/startup.conf
Normal file
1
packages/hyprland/startup.conf
Normal file
@@ -0,0 +1 @@
|
||||
exec-once=asztal
|
||||
37
packages/hyprland/theme.conf
Normal file
37
packages/hyprland/theme.conf
Normal file
@@ -0,0 +1,37 @@
|
||||
# exec = gsettings set org.gnome.desktop.interface icon-theme 'Papirus-Dark'
|
||||
# exec = gsettings set org.gnome.desktop.interface gtk-theme 'Layan-Dark-Solid'
|
||||
# exec = gsettings set org.gnome.desktop.interface color-scheme 'prefer-dark'
|
||||
|
||||
general {
|
||||
gaps_in = 3
|
||||
gaps_out = 8
|
||||
border_size = 2
|
||||
col.active_border = rgba(ca9ee6ff) rgba(f2d5cfff) 45deg
|
||||
col.inactive_border = rgba(b4befecc) rgba(6c7086cc) 45deg
|
||||
layout = dwindle
|
||||
resize_on_border = true
|
||||
no_border_on_floating = true
|
||||
}
|
||||
|
||||
group {
|
||||
col.border_active = rgba(ca9ee6ff) rgba(f2d5cfff) 45deg
|
||||
col.border_inactive = rgba(b4befecc) rgba(6c7086cc) 45deg
|
||||
col.border_locked_active = rgba(ca9ee6ff) rgba(f2d5cfff) 45deg
|
||||
col.border_locked_inactive = rgba(b4befecc) rgba(6c7086cc) 45deg
|
||||
}
|
||||
|
||||
decoration {
|
||||
rounding = 10
|
||||
drop_shadow = false
|
||||
|
||||
blur {
|
||||
enabled = yes
|
||||
size = 6
|
||||
passes = 3
|
||||
new_optimizations = on
|
||||
ignore_opacity = on
|
||||
xray = false
|
||||
}
|
||||
}
|
||||
|
||||
layerrule = blur,waybar
|
||||
Reference in New Issue
Block a user