Skip to content

Commit 6f93b9f

Browse files
authored
Create hyprland.conf
0 parents  commit 6f93b9f

File tree

1 file changed

+129
-0
lines changed

1 file changed

+129
-0
lines changed

hyprland.conf

Lines changed: 129 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,129 @@
1+
env = XDG_CURRENT_DESKTOP, Hyprland
2+
env = XDG_SESSION_TYPE, wayland
3+
env = XDG_SESSION_DESKTOP, Hyprland
4+
exec-once = dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP
5+
6+
exec-once = ~/.config/hypr/xdg-portal-hyprland
7+
exec-once = /usr/libexec/polkit-gnome-authentication-agent-1 &
8+
9+
exec-once = waybar
10+
exec-once = hyprpaper
11+
12+
bind = , XF86AudioRaiseVolume, exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%+
13+
bind = , XF86AudioLowerVolume, exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%-
14+
15+
windowrulev2 = tile,class:(.)
16+
17+
# screenshot
18+
bind = , Print, exec, grim -g "$(slurp -d)" - | wl-copy
19+
20+
# open terminal
21+
bind = SUPERSHIFT, RETURN, exec, kitty
22+
23+
# app launch
24+
bind = SUPER, P, exec, wofi --show drun --sort-order=alphabetical
25+
26+
# close window
27+
bind = SUPERSHIFT, C, killactive
28+
29+
# exit hyprland
30+
bind = SUPERSHIFT, Q, exit
31+
32+
# window modes
33+
bind = SUPERSHIFT, SPACE, togglefloating
34+
35+
# compositing
36+
37+
decoration {
38+
rounding=10
39+
blur {
40+
enabled=true
41+
passes=3
42+
size=20
43+
noise=0.1
44+
brightness=1.0
45+
vibrancy=0.19
46+
}
47+
}
48+
49+
# general
50+
general {
51+
col.active_border = rgb(7445c4)
52+
col.inactive_border = rgb(444444)
53+
border_size = 5
54+
gaps_out = 0
55+
animation=windows,0,2,default,popin 85%
56+
layout = master
57+
}
58+
59+
master {
60+
new_is_master = false
61+
orientation = "left"
62+
}
63+
64+
misc {
65+
disable_splash_rendering = true
66+
disable_hyprland_logo = true
67+
}
68+
69+
# Switch workspaces with mainMod + [0-9]
70+
bind = SUPER, 1, workspace, 1
71+
bind = SUPER, 2, workspace, 2
72+
bind = SUPER, 3, workspace, 3
73+
bind = SUPER, 4, workspace, 4
74+
bind = SUPER, 5, workspace, 5
75+
bind = SUPER, 6, workspace, 6
76+
bind = SUPER, 7, workspace, 7
77+
bind = SUPER, 8, workspace, 8
78+
bind = SUPER, 9, workspace, 9
79+
80+
# Move active window to a workspace with mainMod + SHIFT + [0-9]
81+
bind = SUPERSHIFT, 1, movetoworkspace, 1
82+
bind = SUPERSHIFT, 2, movetoworkspace, 2
83+
bind = SUPERSHIFT, 3, movetoworkspace, 3
84+
bind = SUPERSHIFT, 4, movetoworkspace, 4
85+
bind = SUPERSHIFT, 5, movetoworkspace, 5
86+
bind = SUPERSHIFT, 6, movetoworkspace, 6
87+
bind = SUPERSHIFT, 7, movetoworkspace, 7
88+
bind = SUPERSHIFT, 8, movetoworkspace, 8
89+
bind = SUPERSHIFT, 9, movetoworkspace, 9
90+
91+
# windows
92+
93+
bindm = SUPER, mouse:272, movewindow
94+
bindm = SUPER, mouse:273, resizewindow
95+
96+
# rules
97+
98+
# waybar blurring
99+
layerrule = blur, waybar
100+
101+
# file-roller
102+
windowrulev2 = float,class:^(file-roller)$
103+
windowrulev2 = center,class:^(file-roller)$
104+
105+
# common modals
106+
windowrule = float,title:^(Open)$
107+
windowrule = float,title:^(Choose Files)$
108+
windowrule = float,title:^(Save As)$
109+
windowrule = float,title:^(Confirm to replace files)$
110+
windowrule = float,title:^(File Operation Progress)$
111+
windowrulev2 = float,class:^(google-chrome)$,title:^(Open Files)$
112+
windowrulev2 = float,class:^(google-chrome)$,title:^(Open File)$
113+
114+
# taskwarrior
115+
windowrule = center,^(task-floating)$
116+
windowrule = float,^(task-floating)$
117+
windowrule = dimaround,^(task-floating)$
118+
windowrule = noborder,^(task-floating)$
119+
120+
windowrule = center,pavucontrol
121+
windowrule = float,pavucontrol
122+
123+
windowrulev2 = dimaround,class:^(jetbrains-phpstorm)$,title:^(License )
124+
windowrulev2 = float,class:^(jetbrains-phpstorm)$,title:^(License )
125+
windowrulev2 = center,class:^(jetbrains-phpstorm)$,title:^(License )
126+
127+
# window rules to prevent screen from turning off
128+
windowrule = idleinhibit fullscreen,firefox
129+
windowrule = idleinhibit fullscreen,mpv

0 commit comments

Comments
 (0)