-
Notifications
You must be signed in to change notification settings - Fork 0
/
settings.nix
173 lines (148 loc) · 4.49 KB
/
settings.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
{ config, pkgs, lib, device, ... }:
let
monitors = [ "eDP-1" ] ++
map (id: "DP-" + builtins.toString id) (lib.lists.range 1 8) ++
map (id: "HDMI-A-" + builtins.toString id) (lib.lists.range 1 2);
in
{
services.hyprpaper.settings = {
ipc = "off";
splash = false;
};
wayland.windowManager.hyprland.settings = {
monitor = [
# "eDP-1,2736x1824,0x0,2" # builtin
"desc:Samsung Display Corp. 0x4190,2880x1800@120,0x0,2" # builtin (120hz possibles)
"desc:Fujitsu Siemens Computers GmbH E22W-5 YV2C027320,1680x1050@60,1440x-1050,1" # big fujitsu
"desc:Ancor Communications Inc ASUS VW199 DCLMTF153087,1440x900@60,0x-900,1" # small asus
"desc:HSI HiTV 0x00000001,highres,0x-1440,1" # projector
"desc:Ancor Communications Inc VX279 D5LMRS021367,1920x1080,0x-1080,1" # work
"desc:Dell Inc. DELL U2412M Y1H5T17S0N3L,1680x1050@60,0x-1050,1" # work dell
"desc:Dell Inc. DELL P2312H YJ3JX2B2H1UL,1920x1080@60,0x-1080,1" # another work dell
",preferred,auto,1" # fallback
];
env = [
"GRIM_DEFAULT_DIR,${config.xdg.userDirs.pictures}/screenshots"
];
windowrule = [
# xdg-desktop-portal-termfilechooser
"float,^(file_chooser)$"
"size 800 500,^(file_chooser)$"
"center,^(file_chooser)$"
];
input = {
touchpad.natural_scroll = true;
kb_layout = "it,us";
kb_options = "grp:win_space_toggle,caps:escape_shifted_capslock";
repeat_rate = 25;
repeat_delay = 500;
follow_mouse = 2; # keyboard focus don't change until click on window
};
device = [
{
name = "ipts-stylus";
transform = 0;
output = "eDP-1";
}
];
general = {
layout = "dwindle";
border_size = 0;
};
animations = {
enabled = true;
};
dwindle = {
preserve_split = true;
pseudotile = true;
};
master = {
new_status = "master";
};
gestures = {
workspace_swipe = true;
workspace_swipe_fingers = 3;
workspace_swipe_forever = false;
workspace_swipe_use_r = true;
workspace_swipe_distance = 150;
workspace_swipe_cancel_ratio = 0.1;
};
plugin = {
# hyprfocus = {
# enabled = "yes";
# keyboard_focus_animation = "flash";
# mouse_focus_animation = "nothing";
# bezier = [ "bezIn, 0.5,0.0,1.0,0.5" "bezOut, 0.0,0.5,0.5,1.0" ];
#
# flash = {
# flash_opacity = 0.7;
# in_bezier = "bezIn";
# in_speed = 0.5;
# out_bezier = "bezOut";
# out_speed = 3;
# };
# shrink = {
# shrink_percentage = 0.95;
# in_bezier = "bezIn";
# in_speed = 0.5;
# out_bezier = "bezOut";
# out_speed = 3;
# };
# };
# overview = {
#
# };
};
debug = {
disable_logs = false;
enable_stdout_logs = false;
};
misc = {
disable_hyprland_logo = true;
disable_splash_rendering = true;
mouse_move_enables_dpms = true;
key_press_enables_dpms = true;
# suppress_portal_warnings = true; # documented but does not exists
allow_session_lock_restore = true;
};
cursor = {
enable_hyprcursor = true;
};
decoration = {
rounding = 19;
blur = {
enabled = true;
size = 4;
passes = 4;
new_optimizations = true;
ignore_opacity = true;
};
drop_shadow = true;
shadow_range = 15;
"col.shadow" = lib.mkDefault "0xffa7caff";
"col.shadow_inactive" = "0x50000000";
active_opacity = 1.0;
inactive_opacity = 0.75;
blurls = [
# "waybar"
"lockscreen"
# "wlroots"
"launcher"
# "swayosd"
];
};
# Monitor bindings and workspace persistance. N workspaces per monitor (But the [n]0 and [n]{n-1} cannot be accessed)
workspace =
let
n = config.wayland.windowManager.hyprland.maxNWorkspaces;
in
lib.lists.flatten
(lib.lists.imap0
(mId: name:
builtins.genList
(wId: builtins.toString (mId * n + wId) + ", monitor:${name}" + # optional: persistent:true, change only the waybar widget
lib.strings.optionalString (wId == 1) ", default:true") # The [n]1 workspace is the default
n)
monitors);
};
}