-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e0a9d51
commit 1347f75
Showing
25 changed files
with
236 additions
and
252 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ | ||
services.gpg-agent = { | ||
enable = true; | ||
enableSshSupport = true; | ||
defaultCacheTtl = 7200; # 2h | ||
pinentryFlavor = "curses"; | ||
}; | ||
} |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,130 @@ | ||
# ██╗ ██╗██╗ ██╗██████╗ ██████╗ | ||
# ██║ ██║╚██╗ ██╔╝██╔══██╗██╔══██╗ | ||
# ███████║ ╚████╔╝ ██████╔╝██████╔╝ | ||
# ██╔══██║ ╚██╔╝ ██╔═══╝ ██╔══██╗ | ||
# ██║ ██║ ██║ ██║ ██║ ██║ | ||
# ╚═╝ ╚═╝ ╚═╝ ╚═╝ ╚═╝ ╚═╝ | ||
{ | ||
config, | ||
lib, | ||
... | ||
}: let | ||
xkb = import ../../../hosts/home/services/xserver/xkb.nix {inherit lib;}; | ||
input = import ../../../hosts/home/hyprland/input.nix {config = xkb;}; | ||
monitors = import ../../../hosts/home/hyprland/monitors.nix {inherit lib;}; | ||
workspaces = [1 2 3 4 5 6 7 8]; | ||
in { | ||
wayland.windowManager.hyprland = { | ||
enable = true; | ||
settings = { | ||
inherit (input) input; | ||
inherit (monitors) "$M1" "$M2" "$M3" "monitor" "workspace"; | ||
|
||
exec-once = [ | ||
monitors.exec-once | ||
"waybar" | ||
]; | ||
|
||
"$MENU" = "wofi --show run"; | ||
"$TERM" = "foot"; | ||
"$BROWSER" = "google-chrome-stable --enable-unsafe-webgpu"; | ||
|
||
general = { | ||
allow_tearing = false; | ||
border_size = 2; | ||
gaps_in = 2; | ||
gaps_out = 4; | ||
layout = "dwindle"; | ||
|
||
"col.active_border" = "rgba(a7c080ff)"; | ||
"col.inactive_border" = "rgba(3d484dff)"; | ||
}; | ||
|
||
decoration = { | ||
blur.enabled = false; | ||
drop_shadow = true; | ||
rounding = 2; | ||
shadow_range = 8; | ||
shadow_render_power = 3; | ||
|
||
"col.shadow" = "rgba(1a1a1aee)"; | ||
}; | ||
|
||
animations = { | ||
enabled = true; | ||
|
||
bezier = "mybez, 0.05, 0.9, 0.1, 1.05"; | ||
animation = [ | ||
"windows, 1, 2, mybez" | ||
"windowsOut, 1, 2, default, popin 80%" | ||
"border, 1, 4, default" | ||
"borderangle, 1, 4, default" | ||
"fade, 1, 2, default" | ||
"workspaces, 1, 4, default" | ||
]; | ||
}; | ||
|
||
dwindle.preserve_split = true; | ||
|
||
"$MOD" = "SUPER"; | ||
|
||
# Workspaces: | ||
"$N1" = "ampersand"; | ||
"$N2" = "bracketleft"; | ||
"$N3" = "braceleft"; | ||
"$N4" = "braceright"; | ||
"$N5" = "parenleft"; | ||
"$N6" = "equal"; | ||
"$N7" = "asterisk"; | ||
"$N8" = "parenright"; | ||
|
||
bind = | ||
[ | ||
"$MOD SHIFT, ESCAPE, exit," | ||
"$MOD, Return, exec, $TERM" | ||
"$MOD, Space, togglefloating," | ||
"$MOD, Escape, killactive," | ||
"$MOD, A, exec, pavucontrol" # [a]udio | ||
"$MOD, B, exec, $BROWSER" # [b]rowser | ||
"$MOD, D, pseudo," # [d]windle | ||
"$MOD, F, fullscreen," # [f]ullscrean | ||
"$MOD, R, exec, $MENU" # [r]un | ||
"$MOD, T, togglesplit," # [t]ile (dwindle) | ||
|
||
# Move focus with MOD + arrow keys | ||
"$MOD, left, movefocus, l" | ||
"$MOD, right, movefocus, r" | ||
"$MOD, up, movefocus, u" | ||
"$MOD, down, movefocus, d" | ||
"ALT, Tab, cyclenext, prev" | ||
"ALT, Tab, bringactivetotop" | ||
"ALT SHIFT, Tab, cyclenext, next" | ||
"ALT SHIFT, Tab, bringactivetotop" | ||
|
||
# Special workspace (scratchpad) | ||
"$MOD, S, togglespecialworkspace, magic" | ||
"$MOD SHIFT, S, movetoworkspace, special:magic" | ||
|
||
# Scroll through existing workspaces with MOD + scroll | ||
"$MOD, mouse_down, workspace, e+1" | ||
"$MOD, mouse_up, workspace, e-1" | ||
] | ||
# Switch workspaces with MOD + num | ||
++ (map (n: "$MOD, $N${toString n}, workspace, ${toString n}") workspaces) | ||
# Move active window to a workspace with MOD + SHIFT + num | ||
++ (map (n: "$MOD SHIFT, $N${toString n}, movetoworkspace, ${toString n}") workspaces); | ||
|
||
bindm = [ | ||
# Move/resize windows with MOD + LMB/RMB and dragging | ||
"$MOD, mouse:272, movewindow" | ||
# TODO: Why does this not work any more? | ||
"$MOD, mouse:273, resizewindow" | ||
]; | ||
|
||
misc = { | ||
disable_splash_rendering = true; | ||
force_default_wallpaper = 0; | ||
}; | ||
}; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
{config, ...}: let | ||
input = { | ||
# Keyboard: | ||
kb_layout = config.services.xserver.xkb.layout; | ||
kb_variant = config.services.xserver.xkb.variant; | ||
kb_options = config.services.xserver.xkb.options; | ||
numlock_by_default = true; | ||
|
||
# Mouse: | ||
follow_mouse = 1; | ||
touchpad.natural_scroll = false; | ||
sensitivity = 0; | ||
}; | ||
in { | ||
inherit input; | ||
|
||
# RAW Hyprland config, for hyprland.greet.conf. | ||
hyprconf = with input; '' | ||
input = { | ||
# Keyboard: | ||
kb_layout = ${kb_layout} | ||
kb_variant = ${kb_variant} | ||
kb_options = ${kb_options} | ||
numlock_by_default = ${toString numlock_by_default} | ||
# Mouse: | ||
follow_mouse = ${toString follow_mouse} | ||
touchpad:natural_scroll = ${toString touchpad.natural_scroll} | ||
sensitivity = ${toString sensitivity} | ||
} | ||
''; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
{lib, ...}: let | ||
# Monitor layout: | ||
# ╔═══╗ ╔═══╗ | ||
# ║ L ║╔═══════╗║ D ║ | ||
# ║ E ║║ S A M ║║ E ║ | ||
# ║ N ║╚═══════╝║ L ║ | ||
# ╚═══╝ ╚═══╝ | ||
M1 = "Lenovo Group Limited P27h-20 V906V9HY"; | ||
M2 = "Samsung Electric Company U32J59x HNMW200264"; | ||
M3 = "Dell Inc. DELL P2720DC 81WTK01K1SFS"; | ||
|
||
monitor = [ | ||
"$M1, 2560x1440@60, 0x0, 1, transform, 1" | ||
"$M2, 3840x2160@60, 1440x200, 1" | ||
"$M3, 2560x1440@60, 5280x0, 1, transform, 3" | ||
]; | ||
|
||
workspace = [ | ||
"1, monitor:$M1, default:true" | ||
"2, monitor:$M2, default:true" | ||
"3, monitor:$M3, default:true" | ||
]; | ||
|
||
exec-once = "hyprctl dispatch focusmonitor $M2"; | ||
in { | ||
"$M1" = "desc:${M1}"; | ||
"$M2" = "desc:${M2}"; | ||
"$M3" = "desc:${M3}"; | ||
|
||
inherit monitor workspace exec-once; | ||
|
||
# RAW Hyprland config, for hyprland.greet.conf. | ||
hyprconf = lib.concatStringsSep "\n" ( | ||
[ | ||
"$M1 = desc:${M1}" | ||
"$M2 = desc:${M2}" | ||
"$M3 = desc:${M3}" | ||
] | ||
++ (map (x: "monitor = ${x}") monitor) | ||
++ (map (x: "workspace = ${x}") workspace) | ||
++ ["exec-once = ${exec-once}"] | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.