Krolyxon
Commit ce2ccda

Branches

Refs →

dotfiles-x11.confighyprhyprland.conf

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