Home Gen93 @ 2024-04-25-00:18

This commit is contained in:
Jonas Röger 2024-04-25 21:04:29 +02:00
parent 25494f7d8f
commit 48f092b9c9
3 changed files with 294 additions and 0 deletions

File diff suppressed because one or more lines are too long

139
home/jonas/hyprland.nix Normal file
View File

@ -0,0 +1,139 @@
{
config,
pkgs,
...
}: {
wayland.windowManager.hyprland = {
enable = true;
settings = {
"$mod" = "SUPER";
bind =
[
"$mod, F, exec, firefox"
", Print, exec, grimblast copy area"
]
++ (
# workspaces
# binds $mod + [shift +] {1..10} to [move to] workspace {1..10}
builtins.concatLists (builtins.genList (
x: let
ws = let
c = (x + 1) / 10;
in
builtins.toString (x + 1 - (c * 10));
in [
"$mod, ${ws}, workspace, ${toString (x + 1)}"
"$mod SHIFT, ${ws}, movetoworkspace, ${toString (x + 1)}"
]
)
10)
);
# See https://wiki.hyprland.org/Configuring/Monitors/
monitor = ",preferred,auto,auto";
# See https://wiki.hyprland.org/Configuring/Keywords/ for more
# Execute your favorite apps at launch
# exec-once = waybar & hyprpaper & firefox
# Source a file (multi-file configs)
# source = ~/.config/hypr/myColors.conf
# Some default env vars.
env = "XCURSOR_SIZE,24";
# For all categories, see https://wiki.hyprland.org/Configuring/Variables/
input = {
kb_layout = "de";
kb_variant = "";
kb_model = "";
kb_options = "";
kb_rules = "";
follow_mouse = 1;
touchpad = {
natural_scroll = no;
};
sensitivity = 0; # -1.0 - 1.0, 0 means no modification.
};
general = {
# See https://wiki.hyprland.org/Configuring/Variables/ for more
gaps_in = 5;
gaps_out = 20;
border_size = 2;
col.active_border = "rgba(33ccffee) rgba(00ff99ee) 45deg";
col.inactive_border = "rgba(595959aa)";
layout = "dwindle";
# Please see https://wiki.hyprland.org/Configuring/Tearing/ before you turn this on
allow_tearing = false;
};
decoration = {
# See https://wiki.hyprland.org/Configuring/Variables/ for more
rounding = 10;
blur = {
enabled = true;
size = 3;
passes = 1;
};
drop_shadow = "yes";
shadow_range = 4;
shadow_render_power = 3;
col.shadow = "rgba(1a1a1aee)";
};
animations = {
enabled = "yes";
# Some default animations, see https://wiki.hyprland.org/Configuring/Animations/ for more
bezier = "myBezier, 0.05, 0.9, 0.1, 1.05";
animation = [
"windows, 1, 7, myBezier"
"windowsOut, 1, 7, default, popin 80%"
"border, 1, 10, default"
"borderangle, 1, 8, default"
"fade, 1, 7, default"
"workspaces, 1, 6, default"
];
};
dwindle = {
# See https://wiki.hyprland.org/Configuring/Dwindle-Layout/ for more
pseudotile = "yes"; # master switch for pseudotiling. Enabling is bound to mainMod + P in the keybinds section below
preserve_split = "yes"; # you probably want this
};
master = {
# See https://wiki.hyprland.org/Configuring/Master-Layout/ for more
new_is_master = true;
};
gestures = {
# See https://wiki.hyprland.org/Configuring/Variables/ for more
workspace_swipe = "off";
};
misc = {
# See https://wiki.hyprland.org/Configuring/Variables/ for more
force_default_wallpaper = -1; # Set to 0 to disable the anime mascot wallpapers
};
# Example per-device config
# See https://wiki.hyprland.org/Configuring/Keywords/#executing for more
"device:epic-mouse-v1" = {
sensitivity = -0.5;
};
};
};
}

View File

@ -0,0 +1,14 @@
(undo-tree-save-format-version . 1)
"565253f6e89f272bb9e591433453738928bae658"
[nil nil nil nil (26154 41899 625986 894000) 0 nil]
([nil nil ((nil rear-nonsticky nil 869 . 870) (#("
" 0 1 (ws-butler-chg chg fontified nil)) . -902) (867 . 903) 833 (t 26145 23001 499156 128000)) nil (26154 41899 625985 0) 0 nil])
([nil nil ((881 . 889) (#("plasma" 0 6 (face nix-attribute-face ws-butler-chg chg fontified t)) . 881) (undo-tree-id28 . -5) (undo-tree-id29 . -1) 882) nil (26154 41917 479696 102000) 0 nil])
([nil nil ((907 . 910) (904 . 907) (t 26154 41920 49851 622000) 868) nil (26154 41936 417197 611000) 0 nil] [nil nil ((#(" desktop.de.plasma.enable = true;
" 0 2 (fontified t) 2 26 (face nix-attribute-face fontified t) 26 29 (fontified t) 29 33 (face nix-builtin-face fontified t) 33 34 (fontified t) 34 35 (ws-butler-chg chg fontified t)) . 833) (undo-tree-id30 . -20) (undo-tree-id31 . -20) (undo-tree-id32 . -20) (undo-tree-id33 . -20) (undo-tree-id34 . -20) (undo-tree-id35 . -20) (undo-tree-id36 . -20) (undo-tree-id37 . -20) (undo-tree-id38 . -20) (undo-tree-id39 . -20) (undo-tree-id40 . -20) (undo-tree-id41 . -20) (undo-tree-id42 . -20)) ((833 . 868) (t 26154 41899 658518 315000)) (26154 41917 145243 909000) 0 nil])
([nil nil ((#("
" 0 1 (ws-butler-chg chg fontified t) 1 3 (ws-butler-chg chg fontified nil)) . 904) (undo-tree-id68 . -3) (undo-tree-id69 . -3) (undo-tree-id70 . -3) (undo-tree-id71 . -3) (undo-tree-id72 . -3) (undo-tree-id73 . -3) (#("asd" 0 3 (ws-butler-chg chg fontified t)) . 907) (undo-tree-id74 . -2) (undo-tree-id75 . -3) (undo-tree-id76 . -2) (undo-tree-id77 . -2) (undo-tree-id78 . -2) (undo-tree-id79 . -2)) nil (26154 41936 417195 748000) 0 nil])
nil
([nil current ((#(" desktop.dm.autologin = \"jonas\";
" 0 2 (fontified t) 2 22 (face nix-attribute-face fontified t) 22 25 (fontified t) 25 26 (face font-lock-string-face nix-string-type 34 syntax-table (15) fontified t) 26 31 (face font-lock-string-face fontified t) 31 32 (face font-lock-string-face nix-string-type 34 syntax-table (15) fontified t) 32 34 (fontified t)) . 799) (undo-tree-id43 . -33) (undo-tree-id44 . -34) (undo-tree-id45 . -34) (undo-tree-id46 . -34) (undo-tree-id47 . -34) (undo-tree-id48 . -34) (undo-tree-id49 . -34) (undo-tree-id50 . -34) (undo-tree-id51 . -34) (undo-tree-id52 . -34) (undo-tree-id53 . -34) (undo-tree-id54 . -34) (undo-tree-id55 . -34) (undo-tree-id56 . -34) (undo-tree-id57 . -34) (undo-tree-id58 . -34) (undo-tree-id59 . -34) (undo-tree-id60 . -34) (undo-tree-id61 . -34) (undo-tree-id62 . -34) (undo-tree-id63 . -34) (undo-tree-id64 . -34) (undo-tree-id65 . -34) (undo-tree-id66 . -34) (undo-tree-id67 . -34) (t 26154 41920 49851 622000)) nil (26154 41936 417181 320000) 0 nil])
nil