nixos-dotfiles

nixos-dotfiles

https://git.tonybtw.com/nixos-dotfiles.git git://git.tonybtw.com/nixos-dotfiles.git
6,018 bytes raw
1
monitor=,preferred,auto,1.0
2
# monitor=eDP-1,1920x1080@60,0x0,1.0
3
4
5
###################
6
### MY PROGRAMS ###
7
###################
8
9
# See https://wiki.hyprland.org/Configuring/Keywords/
10
11
# Set programs that you use
12
$terminal = foot
13
$fileManager = dolphin
14
$menu = wofi --show drun
15
$reload_waybar = pkill waybar; waybar &
16
$snip = snip
17
18
19
#################
20
### AUTOSTART ###
21
#################
22
23
# Autostart necessary processes (like notifications daemons, status bars, etc.)
24
# Or execute your favorite apps at launch like this:
25
26
# exec-once = $terminal
27
# exec-once = nm-applet &
28
exec-once = waybar & hyprpaper & 
29
30
31
#############################
32
### ENVIRONMENT VARIABLES ###
33
#############################
34
35
# See https://wiki.hyprland.org/Configuring/Environment-variables/
36
env = GTK_THEME,Tokyo-Night-Dark
37
env = GTK_ICON_THEME,Adwaita
38
39
env = XCURSOR_SIZE,24
40
env = HYPRCURSOR_SIZE,24
41
env = XDG_CURRENT_DESKTOP,Hyprland
42
env = XDG_SESSION_TYPE,wayland
43
44
45
#####################
46
### LOOK AND FEEL ###
47
#####################
48
49
# Refer to https://wiki.hyprland.org/Configuring/Variables/
50
51
# https://wiki.hyprland.org/Configuring/Variables/#general
52
general {
53
    gaps_in = 2
54
    gaps_out = 2
55
    border_size = 1
56
57
    col.active_border = rgba(33ccffee) rgba(00ff99ee) 45deg
58
    col.inactive_border = rgba(595959aa)
59
60
    resize_on_border = false
61
    allow_tearing = false
62
63
    layout = dwindle
64
}
65
66
67
# https://wiki.hyprland.org/Configuring/Variables/#decoration
68
decoration {
69
    rounding = 0
70
    rounding_power = 0
71
72
    # Change transparency of focused and unfocused windows
73
    active_opacity = 1.0
74
    inactive_opacity = 1.0
75
76
77
    # https://wiki.hyprland.org/Configuring/Variables/#blur
78
    blur {
79
        enabled = true
80
        size = 3
81
        passes = 1
82
        
83
        vibrancy = 0.1696
84
    }
85
}
86
87
# https://wiki.hyprland.org/Configuring/Variables/#animations
88
animations {
89
    enabled = true
90
91
    # Default animations, see https://wiki.hyprland.org/Configuring/Animations/ for more
92
93
    bezier = myBezier, 0.05, 0.9, 0.1, 1.05
94
95
    animation = windows, 1, 7, myBezier
96
    animation = windowsOut, 1, 7, default, popin 80%
97
    animation = border, 1, 10, default
98
    animation = borderangle, 1, 8, default
99
    animation = fade, 1, 7, default
100
    animation = workspaces, 1, 6, default
101
}
102
103
# See https://wiki.hyprland.org/Configuring/Dwindle-Layout/ for more
104
dwindle {
105
    pseudotile = true # Master switch for pseudotiling. Enabling is bound to mainMod + P in the keybinds section below
106
    preserve_split = true # You probably want this
107
}
108
109
# See https://wiki.hyprland.org/Configuring/Master-Layout/ for more
110
master {
111
    new_status = master
112
}
113
114
# https://wiki.hyprland.org/Configuring/Variables/#misc
115
misc { 
116
    force_default_wallpaper = -1 # Set to 0 or 1 to disable the anime mascot wallpapers
117
    disable_hyprland_logo = false # If true disables the random hyprland logo / anime girl background. :(
118
}
119
120
121
#############
122
### INPUT ###
123
#############
124
125
# https://wiki.hyprland.org/Configuring/Variables/#input
126
input {
127
    kb_layout = us
128
    kb_variant =
129
    kb_model =
130
    kb_options =
131
    kb_rules =
132
133
    follow_mouse = 1
134
135
    sensitivity = 0 # -1.0 - 1.0, 0 means no modification.
136
137
    #xset r rate 200 35
138
    repeat_rate = 35
139
    repeat_delay = 200
140
141
142
    touchpad {
143
        natural_scroll = false
144
    }
145
}
146
147
cursor {
148
    inactive_timeout = 30
149
    no_hardware_cursors = true
150
}
151
152
153
# Example per-device config
154
# See https://wiki.hyprland.org/Configuring/Keywords/#per-device-input-configs for more
155
device {
156
    name = epic-mouse-v1
157
    sensitivity = -0.5
158
}
159
160
161
####################
162
### KEYBINDINGSS ###
163
####################
164
165
# See https://wiki.hyprland.org/Configuring/Keywords/
166
$mainMod = SUPER # Sets "Windows" key as main modifier
167
168
# Example binds, see https://wiki.hyprland.org/Configuring/Binds/ for more
169
bind = $mainMod, Return, exec, $terminal
170
bind = $mainMod, Q, killactive,
171
bind = $mainMod, M, exit,
172
bind = $mainMod, E, exec, $fileManager
173
bind = $mainMod, V, togglefloating,
174
bind = $mainMod, D, exec, $menu
175
bind = $mainMod, R, exec, $reload_waybar
176
bind = $mainMod, S, exec, $snip
177
178
# Move focus with mainMod + arrow keys
179
bind = $mainMod, l, movefocus, l
180
bind = $mainMod, h, movefocus, r
181
bind = $mainMod, k, movefocus, u
182
bind = $mainMod, j, movefocus, d
183
184
# Switch workspaces with mainMod + [0-9]
185
bind = $mainMod, 1, workspace, 1
186
bind = $mainMod, 2, workspace, 2
187
bind = $mainMod, 3, workspace, 3
188
bind = $mainMod, 4, workspace, 4
189
bind = $mainMod, 5, workspace, 5
190
bind = $mainMod, 6, workspace, 6
191
bind = $mainMod, 7, workspace, 7
192
bind = $mainMod, 8, workspace, 8
193
bind = $mainMod, 9, workspace, 9
194
bind = $mainMod, 0, workspace, 10
195
196
# Move active window to a workspace with mainMod + SHIFT + [0-9]
197
bind = $mainMod SHIFT, 1, movetoworkspace, 1
198
bind = $mainMod SHIFT, 2, movetoworkspace, 2
199
bind = $mainMod SHIFT, 3, movetoworkspace, 3
200
bind = $mainMod SHIFT, 4, movetoworkspace, 4
201
bind = $mainMod SHIFT, 5, movetoworkspace, 5
202
bind = $mainMod SHIFT, 6, movetoworkspace, 6
203
bind = $mainMod SHIFT, 7, movetoworkspace, 7
204
bind = $mainMod SHIFT, 8, movetoworkspace, 8
205
bind = $mainMod SHIFT, 9, movetoworkspace, 9
206
bind = $mainMod SHIFT, 0, movetoworkspace, 10
207
208
# Example special workspace (scratchpad)
209
# bind = $mainMod, S, togglespecialworkspace, magic
210
# bind = $mainMod SHIFT, S, movetoworkspace, special:magic
211
212
# Scroll through existing workspaces with mainMod + scroll
213
bind = $mainMod, mouse_down, workspace, e+1
214
bind = $mainMod, mouse_up, workspace, e-1
215
216
# Move/resize windows with mainMod + LMB/RMB and dragging
217
bindm = $mainMod, mouse:272, movewindow
218
bindm = $mainMod, mouse:273, resizewindow
219
220
221
##############################
222
### WINDOWS AND WORKSPACES ###
223
##############################
224
225
# See https://wiki.hyprland.org/Configuring/Window-Rules/ for more
226
# See https://wiki.hyprland.org/Configuring/Workspace-Rules/ for workspace rules
227
228
# Example windowrule v1
229
# windowrule = float, ^(kitty)$
230
231
# Example windowrule v2
232
# windowrulev2 = float,class:^(kitty)$,title:^(kitty)$
233
234
windowrulev2 = suppressevent maximize, class:.* # You'll probably like this.