Add hyprland
This commit is contained in:
parent
ed3d2e8ef8
commit
f10217bbae
6 changed files with 248 additions and 3 deletions
52
programs/hypr/default.conf
Normal file
52
programs/hypr/default.conf
Normal file
|
|
@ -0,0 +1,52 @@
|
|||
monitor=,preferred,auto,1
|
||||
monitor=HDMI-A-1,disable
|
||||
|
||||
exec-once = swww init
|
||||
exec-once = swww img $HOME/med/pix/bg.png
|
||||
|
||||
input {
|
||||
kb_layout = us
|
||||
follow_mouse = 1
|
||||
accel_profile = flat
|
||||
sensitivity = 0.2 # -1.0 - 1.0, 0 means no modification.
|
||||
}
|
||||
|
||||
general {
|
||||
gaps_in = 3
|
||||
gaps_out = 3
|
||||
border_size = 2
|
||||
col.active_border = rgb(F5C2E7)
|
||||
col.inactive_border = rgb(1E1D2F)
|
||||
|
||||
layout = master
|
||||
}
|
||||
|
||||
decoration {
|
||||
rounding = 2
|
||||
blur {
|
||||
size = 12
|
||||
}
|
||||
}
|
||||
|
||||
animations {
|
||||
enabled = yes
|
||||
|
||||
animation = windows, 1, 4, default, popin 50%
|
||||
animation = windowsOut, 1, 4, default, popin 50%
|
||||
animation = windowsMove, 1, 3, default
|
||||
animation = border, 1, 3, default
|
||||
animation = fade, 1, 3, default
|
||||
animation = workspaces, 1, 3, default
|
||||
}
|
||||
|
||||
master {
|
||||
no_gaps_when_only = true
|
||||
new_is_master = false
|
||||
}
|
||||
|
||||
Binds {
|
||||
workspace_back_and_forth = true
|
||||
}
|
||||
|
||||
windowrule = opacity 0.9 0.9,^(Alacritty)$
|
||||
windowrule = opacity 0.94 0.94,^(discord)$
|
||||
9
programs/hypr/default.nix
Normal file
9
programs/hypr/default.nix
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
{ config, pkgs, ... }:
|
||||
|
||||
{
|
||||
wayland.windowManager.hyprland.enable = true;
|
||||
wayland.windowManager.hyprland.extraConfig = ''
|
||||
${builtins.readFile ./default.conf}
|
||||
${builtins.readFile ./keybinds.conf}
|
||||
'';
|
||||
}
|
||||
50
programs/hypr/keybinds.conf
Normal file
50
programs/hypr/keybinds.conf
Normal file
|
|
@ -0,0 +1,50 @@
|
|||
$mainMod = SUPER
|
||||
|
||||
# Exec programs
|
||||
bind = $mainMod, return, exec, alacritty
|
||||
bind = $mainMod SHIFT, return, exec, rofi -show run
|
||||
# bind = $mainMod SHIFT, P, exec, screenshot
|
||||
|
||||
# Hyprland Management
|
||||
bind = $mainMod SHIFT, Q, exit,
|
||||
|
||||
# Bars stuff
|
||||
bind = $mainMod, TAB, exec, eww open --toggle
|
||||
|
||||
# Workspace / Monitor Management
|
||||
bind = $mainMod, h, focusmonitor, l
|
||||
bind = $mainMod, l, focusmonitor, r
|
||||
bind = $mainMod, j, cyclenext,
|
||||
bind = $mainMod, k, cyclenext, prev
|
||||
|
||||
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
|
||||
|
||||
# Window Management
|
||||
bind = $mainMod, C, killactive,
|
||||
|
||||
bind = $mainMod, F, togglefloating,
|
||||
bind = $mainMod SHIFT, F, fullscreen,
|
||||
|
||||
bind = $mainMod SHIFT, 1, movetoworkspacesilent, 1
|
||||
bind = $mainMod SHIFT, 2, movetoworkspacesilent, 2
|
||||
bind = $mainMod SHIFT, 3, movetoworkspacesilent, 3
|
||||
bind = $mainMod SHIFT, 4, movetoworkspacesilent, 4
|
||||
bind = $mainMod SHIFT, 5, movetoworkspacesilent, 5
|
||||
bind = $mainMod SHIFT, 6, movetoworkspacesilent, 6
|
||||
bind = $mainMod SHIFT, 7, movetoworkspacesilent, 7
|
||||
bind = $mainMod SHIFT, 8, movetoworkspacesilent, 8
|
||||
bind = $mainMod SHIFT, 9, movetoworkspacesilent, 9
|
||||
bind = $mainMod SHIFT, 0, movetoworkspacesilent, 10
|
||||
|
||||
# Move/resize windows with mainMod + LMB/RMB and dragging
|
||||
bindm = $mainMod, mouse:272, movewindow
|
||||
bindm = $mainMod, mouse:273, resizewindow
|
||||
Loading…
Add table
Add a link
Reference in a new issue