Krolyxon
Commit 70249a2

Branches

Refs →

dotfiles-x11.confighyprhyprland.conf

280 lines · 8.0 KB · nginx

1autogenerated = 0
2
3# source = ~/.config/hypr/monitors.conf
4
5
6###################
7### MY PROGRAMS ###
8###################
9$terminal = alacritty
10$fileManager = pcmanfm
11# $menu = rofi -show drun
12$menu = rofi -show drun
13$browser = brave
14
15
16#################
17### AUTOSTART ###
18#################
19exec-once = (hyprpm reload -n & kanshi & waybar & hyprpaper & swaync & hyprsunset & hypridle)
20exec-once = systemctl --user start hyprpolkitagent
21
22plugin {
23 hyprsplit {
24 num_workspaces = 10
25 persistent_workspaces = true
26 }
27}
28
29#############################
30### ENVIRONMENT VARIABLES ###
31#############################
32# See https://wiki.hypr.land/Configuring/Environment-variables/
33env = HYPRSHOT_DIR,/home/krolyxon/pix/ss/
34env = XCURSOR_SIZE,24
35env = HYPRCURSOR_SIZE,24
36
37# XDG Specifications
38env = XDG_CURRENT_DESKTOP,Hyprland
39env = XDG_SESSION_TYPE,wayland
40env = XDG_SESSION_DESKTOP,Hyprland
41
42#######################
43### PLUGIN SETTINGS ###
44#######################
45plugin {
46 split-monitor-workspaces {
47 count = 10
48 keep_focused = 1
49 enable_notifications = 0
50 enable_persistent_workspaces = 1
51 }
52}
53
54
55
56###################
57### PERMISSIONS ###
58###################
59ecosystem {
60 enforce_permissions = 1
61}
62
63permission = /usr/(bin|local/bin)/grim, screencopy, allow
64permission = /usr/(lib|libexec|lib64)/xdg-desktop-portal-hyprland, screencopy, allow
65permission = /usr/(bin|local/bin)/hyprpm, plugin, allow
66permission = ${lib.escapeRegex (lib.getExe config.programs.hyprlock.package)}, screencopy, allow
67
68
69#####################
70### LOOK AND FEEL ###
71#####################
72general {
73 gaps_in = 5
74 gaps_out = 5
75 border_size = 2
76 resize_on_border = false
77 allow_tearing = false
78 # col.active_border = rgba(7da6ffee)
79 # col.inactive_border = rgba(888e8eaa)
80 col.active_border = rgb(8aadf4) rgb(24273A) rgb(24273A) rgb(8aadf4) 45deg
81 col.inactive_border = rgb(24273A) rgb(24273A) rgb(24273A) rgb(27273A) 45deg
82 layout = master
83}
84
85decoration {
86 rounding = 8
87
88
89 blur {
90 enabled = false
91 size = 3
92 passes = 1
93 }
94
95 # drop_shadow = yes
96 # shadow_range = 4
97 # shadow_render_power = 3
98 # col.shadow = rgba(1a1a1aee)
99}
100
101animations {
102 enabled = yes
103 bezier = myBezier, 0.05, 0.9, 0.1, 1.05
104 animation = windows, 1, 7, myBezier
105 animation = windowsOut, 1, 7, default, popin 80%
106 animation = border, 1, 10, default
107 animation = borderangle, 1, 8, default
108 animation = fade, 1, 7, default
109 animation = workspaces, 1, 6, default
110}
111
112# Ref https://wiki.hypr.land/Configuring/Workspace-Rules/
113# "Smart gaps" / "No gaps when only"
114# uncomment all if you wish to use that.
115# workspace = w[tv1], gapsout:0, gapsin:0
116# workspace = f[1], gapsout:0, gapsin:0
117# windowrule = bordersize 0, floating:0, onworkspace:w[tv1]
118# windowrule = rounding 0, floating:0, onworkspace:w[tv1]
119# windowrule = bordersize 0, floating:0, onworkspace:f[1]
120# windowrule = rounding 0, floating:0, onworkspace:f[1]
121
122# See https://wiki.hypr.land/Configuring/Dwindle-Layout/ for more
123dwindle {
124 pseudotile = true# Master switch for pseudotiling. Enabling is bound to mainMod + P in the keybinds section below
125 preserve_split = true # You probably want this
126}
127
128# See https://wiki.hypr.land/Configuring/Master-Layout/ for more
129master {
130 new_status = master
131 new_on_top = true
132
133}
134
135# https://wiki.hypr.land/Configuring/Variables/#misc
136misc {
137 force_default_wallpaper = -1 # Set to 0 or 1 to disable the anime mascot wallpapers
138 disable_hyprland_logo = true# If true disables the random hyprland logo / anime girl background. :(
139}
140
141
142#############
143### INPUT ###
144#############
145
146# https://wiki.hypr.land/Configuring/Variables/#input
147input {
148 kb_layout = us
149 kb_variant =
150 kb_model =
151 kb_options =
152 kb_rules =
153
154 follow_mouse = 1
155
156 sensitivity = 0 # -1.0 - 1.0, 0 means no modification.
157
158 touchpad {
159 natural_scroll = false
160 }
161
162 repeat_delay = 300
163 repeat_rate = 50
164}
165
166# https://wiki.hypr.land/Configuring/Variables/#gestures
167gestures {
168 workspace_swipe = false
169}
170
171# Example per-device config
172# See https://wiki.hypr.land/Configuring/Keywords/#per-device-input-configs for more
173device {
174 name = epic-mouse-v1
175 sensitivity = -0.5
176}
177
178
179###################
180### KEYBINDINGS ###
181###################
182
183# See https://wiki.hypr.land/Configuring/Keywords/
184$mainMod = SUPER # Sets "Windows" key as main modifier
185
186# Example binds, see https://wiki.hypr.land/Configuring/Binds/ for more
187bind = $mainMod, Return, exec, $terminal
188bind = $mainMod SHIFT, X, killactive,
189bind = $mainMod SHIFT, Q, exit,
190bind = $mainMod, F, Fullscreen
191bind = $mainMod SHIFT, R, togglefloating,
192bind = $mainMod, R, exec, $menu
193bind = $mainMod SHIFT, P, pseudo, # dwindle
194bind = $mainMod, J, togglesplit, # dwindle
195binde = $mainMod, tab, cyclenext, prev
196bind = $mainMod, b, exec, killall waybar || waybar
197
198# Applications
199bind = $mainMod, W, exec, $browser
200
201# Music Controls
202bind = $mainMod, m, exec, $terminal -e "ncmpcpp"
203bind = $mainMod, p, exec, mpc toggle
204binde = $mainMod, comma, exec, mpc seek -10
205bind = $mainMod, period, exec, mpc seek +10
206
207# Swap current focused window with master
208bind = $mainMod, space, layoutmsg, swapwithmaster
209
210# Resize windows with h/j/k/l
211binde = $mainMod, h, resizeactive, -30 0
212binde = $mainMod, l, resizeactive, 30 0
213binde = $mainMod, k, resizeactive, 0 -30
214binde = $mainMod, j, resizeactive, 0 30
215
216# Switch workspaces with mainMod + [0-9]
217bind = $mainMod, 1, split-workspace, 1
218bind = $mainMod, 2, split-workspace, 2
219bind = $mainMod, 3, split-workspace, 3
220bind = $mainMod, 4, split-workspace, 4
221bind = $mainMod, 5, split-workspace, 5
222bind = $mainMod, 6, split-workspace, 6
223bind = $mainMod, 7, split-workspace, 7
224bind = $mainMod, 8, split-workspace, 8
225bind = $mainMod, 9, split-workspace, 9
226bind = $mainMod, 0, split-workspace, 10
227
228# Move active window to a workspace with mainMod + SHIFT + [0-9]
229bind = $mainMod SHIFT, 1, split-movetoworkspacesilent, 1
230bind = $mainMod SHIFT, 2, split-movetoworkspacesilent, 2
231bind = $mainMod SHIFT, 3, split-movetoworkspacesilent, 3
232bind = $mainMod SHIFT, 4, split-movetoworkspacesilent, 4
233bind = $mainMod SHIFT, 5, split-movetoworkspacesilent, 5
234bind = $mainMod SHIFT, 6, split-movetoworkspacesilent, 6
235bind = $mainMod SHIFT, 7, split-movetoworkspacesilent, 7
236bind = $mainMod SHIFT, 8, split-movetoworkspacesilent, 8
237bind = $mainMod SHIFT, 9, split-movetoworkspacesilent, 9
238bind = $mainMod SHIFT, 0, split-movetoworkspacesilent, 10
239
240# Example special workspace (scratchpad)
241bind = $mainMod, S, togglespecialworkspace, magic
242bind = $mainMod SHIFT, S, movetoworkspace, special:magic
243
244# Scroll through existing workspaces with mainMod + scroll
245bind = $mainMod, mouse_down, workspace, e+1
246bind = $mainMod, mouse_up, workspace, e-1
247
248# Move/resize windows with mainMod + LMB/RMB and dragging
249bindm = $mainMod, mouse:272, movewindow
250bindm = $mainMod, mouse:273, resizewindow
251
252# Laptop multimedia keys for volume and LCD brightness
253bindel = ,XF86AudioRaiseVolume, exec, wpctl set-volume -l 1 @DEFAULT_AUDIO_SINK@ 5%+
254bindel = ,XF86AudioLowerVolume, exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%-
255bindel = ,XF86AudioMute, exec, wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle
256bindel = ,XF86AudioMicMute, exec, wpctl set-mute @DEFAULT_AUDIO_SOURCE@ toggle
257bindel = ,XF86MonBrightnessUp, exec, brightnessctl -e4 -n2 set 5%+
258bindel = ,XF86MonBrightnessDown, exec, brightnessctl -e4 -n2 set 5%-
259
260# Requires playerctl
261bindl = , XF86AudioNext, exec, playerctl next
262bindl = , XF86AudioPause, exec, playerctl play-pause
263bindl = , XF86AudioPlay, exec, playerctl play-pause
264bindl = , XF86AudioPrev, exec, playerctl previous
265
266##############################
267### WINDOWS AND WORKSPACES ###
268##############################
269
270# See https://wiki.hypr.land/Configuring/Window-Rules/ for more
271# See https://wiki.hypr.land/Configuring/Workspace-Rules/ for workspace rules
272
273# Example windowrule
274# windowrule = float,class:^(kitty)$,title:^(kitty)$
275
276# Ignore maximize requests from apps. You'll probably like this.
277windowrule = suppressevent maximize, class:.*
278
279# Fix some dragging issues with XWayland
280windowrule = nofocus,class:^$,title:^$,xwayland:1,floating:1,fullscreen:0,pinned:0