rnga

hyprland.conf

Aug 2nd, 2025
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.24 KB | None | 0 0
  1. # #######################################################################################
  2. # AUTOGENERATED HYPRLAND CONFIG.
  3. # PLEASE USE THE CONFIG PROVIDED IN THE GIT REPO /examples/hyprland.conf AND EDIT IT,
  4. # OR EDIT THIS ONE ACCORDING TO THE WIKI INSTRUCTIONS.
  5. # #######################################################################################
  6.  
  7.  
  8. # You can split this configuration into multiple files
  9. # Create your files separately and then link them to this file like this:
  10. # source = ~/.config/hypr/myColors.conf
  11.  
  12.  
  13. ################
  14. ### MONITORS ###
  15. ################
  16.  
  17. monitor=DP-1,2560x1440@144,0x0,1
  18.  
  19.  
  20. ###################
  21. ### MY PROGRAMS ###
  22. ###################
  23.  
  24. $terminal = alacritty
  25. $fileManager = dolphin
  26. $menu = rofi -show drun
  27. $browser = librewolf
  28. $email = thunderbird
  29.  
  30. #################
  31. ### AUTOSTART ###
  32. #################
  33.  
  34. exec-once = hyprpanel
  35. exec-once = /opt/piavpn/bin/pia-client %u --quiet
  36. exec-once = hyprpaper & hypridle
  37. # Starts polkit that asks credentials to access other hard drives in the system
  38. exec-once = /usr/lib/polkit-kde-authentication-agent-1 &
  39. # Start streamcontroller in silent background mode
  40. exec-once = streamcontroller -b >/dev/null 2>&1 &
  41.  
  42.  
  43.  
  44. #############################
  45. ### ENVIRONMENT VARIABLES ###
  46. #############################
  47.  
  48. env = XCURSOR_SIZE,16
  49. env = HYPRCURSOR_SIZE,16
  50. env = XDG_MENU_PREFIX,arch-
  51. env = XDG_CURRENT_DESKTOP,Hyprland
  52. env = XDG_SESSION_TYPE,wayland
  53. env = XDG_SESSION_TYPE,X11
  54. env = XDG_SESSION_DESKTOP,Hyprland
  55. env = QT_QPA_PLATFORMTHEME,qt5ct
  56. env = QT_QPA_PLATFORMTHEME,qt6ct
  57. env = QT_QPA_PLATFORM,wayland
  58.  
  59. #####################
  60. ### LOOK AND FEEL ###
  61. #####################
  62.  
  63. general {
  64. gaps_in = 2
  65. gaps_out = 4
  66.  
  67. border_size = 0
  68.  
  69. # https://wiki.hyprland.org/Configuring/Variables/#variable-types for info about colors
  70. col.active_border = rgba(33ccffee) rgba(00ff99ee) 45deg
  71. col.inactive_border = rgba(595959aa)
  72.  
  73. # Set to true enable resizing windows by clicking and dragging on borders and gaps
  74. resize_on_border = true
  75.  
  76. # Please see https://wiki.hyprland.org/Configuring/Tearing/ before you turn this on
  77. allow_tearing = false
  78.  
  79. layout = dwindle
  80. }
  81.  
  82. decoration {
  83. rounding = 0
  84. rounding_power = 0
  85.  
  86. # Change transparency of focused and unfocused windows
  87. active_opacity = 1.0
  88. inactive_opacity = 1.0
  89.  
  90. shadow {
  91. enabled = false
  92. range = 4
  93. render_power = 3
  94. color = rgba(1a1a1aee)
  95. }
  96.  
  97. # https://wiki.hyprland.org/Configuring/Variables/#blur
  98. blur {
  99. enabled = true
  100. size = 4
  101. passes = 2
  102. vibrancy = 0.1696
  103. ignore_opacity = true
  104. }
  105. }
  106.  
  107. animations {
  108. enabled = yes
  109.  
  110. # Default animations, see https://wiki.hyprland.org/Configuring/Animations/ for more
  111.  
  112. bezier = easeOutQuint,0.23,1,0.32,1
  113. bezier = easeInOutCubic,0.65,0.05,0.36,1
  114. bezier = linear,0,0,1,1
  115. bezier = almostLinear,0.5,0.5,0.75,1.0
  116. bezier = quick,0.15,0,0.1,1
  117.  
  118. animation = global, 1, 10, default
  119. animation = border, 1, 5.39, easeOutQuint
  120. animation = windows, 1, 4.79, easeOutQuint
  121. animation = windowsIn, 1, 4.1, easeOutQuint, popin 87%
  122. animation = windowsOut, 1, 1.49, linear, popin 87%
  123. animation = fadeIn, 1, 1.73, almostLinear
  124. animation = fadeOut, 1, 1.46, almostLinear
  125. animation = fade, 1, 3.03, quick
  126. animation = layers, 1, 3.81, easeOutQuint
  127. animation = layersIn, 1, 4, easeOutQuint, fade
  128. animation = layersOut, 1, 1.5, linear, fade
  129. animation = fadeLayersIn, 1, 1.79, almostLinear
  130. animation = fadeLayersOut, 1, 1.39, almostLinear
  131. animation = workspaces, 1, 1.94, almostLinear, fade
  132. animation = workspacesIn, 1, 1.21, almostLinear, fade
  133. animation = workspacesOut, 1, 1.94, almostLinear, fade
  134. }
  135.  
  136. # Ref https://wiki.hyprland.org/Configuring/Workspace-Rules/
  137. # "Smart gaps" / "No gaps when only"
  138. # uncomment all if you wish to use that.
  139. # workspace = w[tv1], gapsout:0, gapsin:0
  140. # workspace = f[1], gapsout:0, gapsin:0
  141. # windowrule = bordersize 0, floating:0, onworkspace:w[tv1]
  142. # windowrule = rounding 0, floating:0, onworkspace:w[tv1]
  143. # windowrule = bordersize 0, floating:0, onworkspace:f[1]
  144. # windowrule = rounding 0, floating:0, onworkspace:f[1]
  145.  
  146. dwindle {
  147. pseudotile = true # Master switch for pseudotiling. Enabling is bound to mainMod + P in the keybinds section below
  148. preserve_split = true # You probably want this
  149. }
  150.  
  151. master {
  152. new_status = master
  153. }
  154.  
  155. misc {
  156. force_default_wallpaper = 0 # 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. mouse_move_enables_dpms = true
  159. key_press_enables_dpms = true
  160. }
  161.  
  162.  
  163. #############
  164. ### INPUT ###
  165. #############
  166.  
  167. input {
  168. kb_layout = gb
  169. kb_variant =
  170. kb_model = logitech_g915
  171. kb_options =
  172. kb_rules = evdev
  173.  
  174. follow_mouse = 1
  175.  
  176. sensitivity = 0 # -1.0 - 1.0, 0 means no modification.
  177.  
  178. touchpad {
  179. natural_scroll = false
  180. }
  181. }
  182.  
  183. gestures {
  184. workspace_swipe = false
  185. }
  186.  
  187. device {
  188. name = epic-mouse-v1
  189. sensitivity = -0.5
  190. }
  191.  
  192.  
  193. ###################
  194. ### KEYBINDINGS ###
  195. ###################
  196.  
  197. $mainMod = SUPER # Sets "Windows" key as main modifier
  198.  
  199. # Example binds, see https://wiki.hyprland.org/Configuring/Binds/ for more
  200. bind = $mainMod, RETURN, exec, $terminal
  201. bind = $mainMod, Q, killactive,
  202. bind = $mainMod, M, exit,
  203. bind = $mainMod, E, exec, $fileManager
  204. bind = $mainMod, F, togglefloating,
  205. bind = $mainMod, SPACE, exec, $menu
  206. bind = $mainMod, P, pseudo, # dwindle
  207. bind = $mainMod, J, togglesplit, # dwindle
  208. bind = $mainMod, W, exec, $browser
  209. bind = $mainMod, T, exec, $email
  210. bind = $mainMod, C, exec, hyprpanel toggleWindow settings-dialog
  211. bind = $mainMod, L, exec, hyprlock
  212. bind = , PRINT, exec, hyprshot -m region
  213.  
  214.  
  215. # Move focus with mainMod + arrow keys
  216. bind = $mainMod, left, movefocus, l
  217. bind = $mainMod, right, movefocus, r
  218. bind = $mainMod, up, movefocus, u
  219. bind = $mainMod, down, movefocus, d
  220.  
  221. # Switch workspaces with mainMod + [0-9]
  222. bind = $mainMod, 1, workspace, 1
  223. bind = $mainMod, 2, workspace, 2
  224. bind = $mainMod, 3, workspace, 3
  225. bind = $mainMod, 4, workspace, 4
  226. bind = $mainMod, 5, workspace, 5
  227. bind = $mainMod, 6, workspace, 6
  228. bind = $mainMod, 7, workspace, 7
  229. bind = $mainMod, 8, workspace, 8
  230. bind = $mainMod, 9, workspace, 9
  231. bind = $mainMod, 0, workspace, 10
  232.  
  233. # Move active window to a workspace with Ctrl + SHIFT + [0-9]
  234. bind = CTRL_SHIFT, 1, movetoworkspace, 1
  235. bind = CTRL_SHIFT, 2, movetoworkspace, 2
  236. bind = CTRL_SHIFT, 3, movetoworkspace, 3
  237. bind = CTRL_SHIFT, 4, movetoworkspace, 4
  238. bind = CTRL_SHIFT, 5, movetoworkspace, 5
  239. bind = CTRL_SHIFT, 6, movetoworkspace, 6
  240. bind = CTRL_SHIFT, 7, movetoworkspace, 7
  241. bind = CTRL_SHIFT, 8, movetoworkspace, 8
  242. bind = CTRL_SHIFT, 9, movetoworkspace, 9
  243. bind = CTRL_SHIFT, 0, movetoworkspace, 10
  244.  
  245.  
  246. # Scroll through existing workspaces with mainMod + scroll
  247. bind = $mainMod, mouse_down, workspace, e+1
  248. bind = $mainMod, mouse_up, workspace, e-1
  249.  
  250. # Move/resize windows with mainMod + LMB/RMB and dragging
  251. bindm = $mainMod, mouse:272, movewindow
  252. bindm = $mainMod, mouse:273, resizewindow
  253.  
  254. # Laptop multimedia keys for volume and LCD brightness
  255. bindel = ,XF86AudioRaiseVolume, exec, wpctl set-volume -l 1 @DEFAULT_AUDIO_SINK@ 5%+
  256. bindel = ,XF86AudioLowerVolume, exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%-
  257. bindel = ,XF86AudioMute, exec, wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle
  258. bindel = ,XF86AudioMicMute, exec, wpctl set-mute @DEFAULT_AUDIO_SOURCE@ toggle
  259.  
  260. # Requires playerctl
  261. bindl = , XF86AudioNext, exec, playerctl next
  262. bindl = , XF86AudioPause, exec, playerctl play-pause
  263. bindl = , XF86AudioPlay, exec, playerctl play-pause
  264. bindl = , XF86AudioPrev, exec, playerctl previous
  265.  
  266. ##############################
  267. ### WINDOWS AND WORKSPACES ###
  268. ##############################
  269.  
  270. windowrule = opacity 0.70 1.0,class:^(Alacritty)$
  271.  
  272. # Ignore maximize requests from apps. You'll probably like this.
  273. windowrule = suppressevent maximize, class:.*
  274.  
  275. # Fix some dragging issues with XWayland
  276. windowrule = nofocus,class:^$,title:^$,xwayland:1,floating:1,fullscreen:0,pinned:0
  277.  
  278. #Opening Thunderbird at workspace 5
  279. windowrulev2 = workspace 5, class:^(thunderbird)$
Advertisement
Add Comment
Please, Sign In to add comment