Krolyxon
Commit 3718ac5

Branches

Refs →

dotfiles-x11.confighyprhyprland.conf

296 lines · 8.4 KB · nginx

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