Krolyxon
Commit b8c1f0f

Branches

Refs →

dotfiles-x11.confighyprhyprland.conf

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