Guest User

Hyprland Config

a guest
Feb 8th, 2025
214
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.38 KB | None | 0 0
  1.  
  2. # #######################################################################################
  3. # AUTOGENERATED HYPRLAND CONFIG.
  4. # PLEASE USE THE CONFIG PROVIDED IN THE GIT REPO /examples/hyprland.conf AND EDIT IT,
  5. # OR EDIT THIS ONE ACCORDING TO THE WIKI INSTRUCTIONS.
  6. # #######################################################################################
  7.  
  8. autogenerated = 0 # remove this line to remove the warning
  9.  
  10. # This is an example Hyprland config file.
  11. # Refer to the wiki for more information.
  12. # https://wiki.hyprland.org/Configuring/
  13.  
  14. # Please note not all available settings / options are set here.
  15. # For a full list, see the wiki
  16.  
  17. # You can split this configuration into multiple files
  18. # Create your files separately and then link them to this file like this:
  19. # source = ~/.config/hypr/myColors.conf
  20.  
  21.  
  22. ################
  23. ### MONITORS ###
  24. ################
  25.  
  26. # See https://wiki.hyprland.org/Configuring/Monitors/
  27. monitor=,preferred,auto,auto
  28.  
  29.  
  30. ###################
  31. ### MY PROGRAMS ###
  32. ###################
  33.  
  34. # See https://wiki.hyprland.org/Configuring/Keywords/
  35.  
  36. # Set programs that you use
  37. $terminal = kitty
  38. $fileManager = nautilus
  39. $menu = wofi --show drun
  40. $explorer = firefox
  41.  
  42.  
  43. #################
  44. ### AUTOSTART ###
  45. #################
  46.  
  47. # Autostart necessary processes (like notifications daemons, status bars, etc.)
  48. # Or execute your favorite apps at launch like this:
  49.  
  50. exec-once = [workspace 1] $terminal
  51. exec-once = [workspace 2] $explorer
  52. # exec-once = waybar & hyprpaper & firefox
  53. exec-once = waybar
  54. exec-once = hyprpaper
  55. exec-once = [workspace 3] spotify
  56. #############################
  57. ### ENVIRONMENT VARIABLES ###
  58. #############################
  59.  
  60. # Try booting
  61.  
  62.  
  63. # See https://wiki.hyprland.org/Configuring/Environment-variables/
  64.  
  65. env = XCURSOR_SIZE,24
  66. env = HYPRCURSOR_SIZE,24
  67.  
  68.  
  69. #####################
  70. ### LOOK AND FEEL ###
  71. #####################
  72.  
  73. # Refer to https://wiki.hyprland.org/Configuring/Variables/
  74.  
  75. # https://wiki.hyprland.org/Configuring/Variables/#general
  76. general {
  77. gaps_in = 5
  78. gaps_out = 10
  79.  
  80. border_size = 2
  81.  
  82. # https://wiki.hyprland.org/Configuring/Variables/#variable-types for info about colors
  83. col.active_border = rgba(CF6CA2ee) rgba(7E4CA1ee) 45deg
  84. col.inactive_border = rgba(595959aa)
  85.  
  86. # Set to true enable resizing windows by clicking and dragging on borders and gaps
  87. resize_on_border = true
  88.  
  89. # Please see https://wiki.hyprland.org/Configuring/Tearing/ before you turn this on
  90. allow_tearing = true
  91.  
  92. layout = dwindle
  93. }
  94.  
  95. # https://wiki.hyprland.org/Configuring/Variables/#decoration
  96. decoration {
  97. rounding = 7
  98. rounding_power = 2
  99.  
  100. # Change transparency of focused and unfocused windows
  101. active_opacity = 1.0
  102. inactive_opacity = 1
  103.  
  104. shadow {
  105. enabled = true
  106. range = 4
  107. render_power = 3
  108. color = rgba(1a1a1aee)
  109. }
  110.  
  111. # https://wiki.hyprland.org/Configuring/Variables/#blur
  112. blur {
  113. enabled = true
  114. size = 3
  115. passes = 1
  116.  
  117. vibrancy = 0.1696
  118. }
  119. }
  120.  
  121. # https://wiki.hyprland.org/Configuring/Variables/#animations
  122. animations {
  123. enabled = yes, please :)
  124.  
  125. # Default animations, see https://wiki.hyprland.org/Configuring/Animations/ for more
  126.  
  127. bezier = easeOutQuint,0.23,1,0.32,1
  128. bezier = easeInOutCubic,0.65,0.05,0.36,1
  129. bezier = linear,0,0,1,1
  130. bezier = almostLinear,0.5,0.5,0.75,1.0
  131. bezier = quick,0.15,0,0.1,1
  132.  
  133. animation = global, 1, 10, default
  134. animation = border, 1, 5.39, easeOutQuint
  135. animation = windows, 1, 4.79, easeOutQuint
  136. animation = windowsIn, 1, 4.1, easeOutQuint, popin 87%
  137. animation = windowsOut, 1, 1.49, linear, popin 87%
  138. animation = fadeIn, 1, 1.73, almostLinear
  139. animation = fadeOut, 1, 1.46, almostLinear
  140. animation = fade, 1, 3.03, quick
  141. animation = layers, 1, 3.81, easeOutQuint
  142. animation = layersIn, 1, 4, easeOutQuint, fade
  143. animation = layersOut, 1, 1.5, linear, fade
  144. animation = fadeLayersIn, 1, 1.79, almostLinear
  145. animation = fadeLayersOut, 1, 1.39, almostLinear
  146. animation = workspaces, 1, 1.94, almostLinear, fade
  147. animation = workspacesIn, 1, 1.21, almostLinear, fade
  148. animation = workspacesOut, 1, 1.94, almostLinear, fade
  149. }
  150.  
  151. # Ref https://wiki.hyprland.org/Configuring/Workspace-Rules/
  152. # "Smart gaps" / "No gaps when only"
  153. # uncomment all if you wish to use that.
  154. # workspace = w[tv1], gapsout:0, gapsin:0
  155. # workspace = f[1], gapsout:0, gapsin:0
  156. # windowrulev2 = bordersize 0, floating:0, onworkspace:w[tv1]
  157. # windowrulev2 = rounding 0, floating:0, onworkspace:w[tv1]
  158. # windowrulev2 = bordersize 0, floating:0, onworkspace:f[1]
  159. # windowrulev2 = rounding 0, floating:0, onworkspace:f[1]
  160.  
  161. # See https://wiki.hyprland.org/Configuring/Dwindle-Layout/ for more
  162. dwindle {
  163. pseudotile = true # Master switch for pseudotiling. Enabling is bound to mainMod + P in the keybinds section below
  164. preserve_split = true # You probably want this
  165. }
  166.  
  167. # See https://wiki.hyprland.org/Configuring/Master-Layout/ for more
  168. master {
  169. new_status = master
  170. }
  171.  
  172. # https://wiki.hyprland.org/Configuring/Variables/#misc
  173. misc {
  174. force_default_wallpaper = -1 # Set to 0 or 1 to disable the anime mascot wallpapers
  175. disable_hyprland_logo = false # If true disables the random hyprland logo / anime girl background. :(
  176. }
  177.  
  178.  
  179. #############
  180. ### INPUT ###
  181. #############
  182.  
  183. # https://wiki.hyprland.org/Configuring/Variables/#input
  184. input {
  185. kb_layout = gb
  186. kb_variant =
  187. kb_model =
  188. kb_options =
  189. kb_rules =
  190. accel_profile = flat
  191.  
  192. follow_mouse = 1
  193.  
  194. sensitivity = -0.1 # -1.0 - 1.0, 0 means no modification.
  195.  
  196. touchpad {
  197. natural_scroll = false
  198. }
  199. }
  200.  
  201. # https://wiki.hyprland.org/Configuring/Variables/#gestures
  202. gestures {
  203. workspace_swipe = false
  204. }
  205.  
  206. # Example per-device config
  207. # See https://wiki.hyprland.org/Configuring/Keywords/#per-device-input-configs for more
  208. device {
  209. name = epic-mouse-v1
  210. sensitivity = -0.5
  211. }
  212.  
  213.  
  214. ###################
  215. ### KEYBINDINGS ###
  216. ###################
  217.  
  218. # See https://wiki.hyprland.org/Configuring/Keywords/
  219. $mainMod = SUPER # Sets "Windows" key as main modifier
  220.  
  221. # Example binds, see https://wiki.hyprland.org/Configuring/Binds/ for more
  222. bind = $mainMod, Q, exec, $terminal
  223. bind = $mainMod, C, killactive,
  224. bind = $mainMod, M, exit,
  225. bind = $mainMod, E, exec, $fileManager
  226. bind = $mainMod, V, exec, $explorer
  227. bind = $mainMod, F, fullscreen
  228. bind = $mainMod, R, exec, $menu
  229. bind = $mainMod, J, togglesplit, # dwindle
  230. bind = $mainMod, P, exec, hyprpicker -a
  231.  
  232. # Move focus with mainMod + arrow keys
  233. bind = $mainMod, left, movefocus, l
  234. bind = $mainMod, right, movefocus, r
  235. bind = $mainMod, up, movefocus, u
  236. bind = $mainMod, down, movefocus, d
  237.  
  238. # Switch workspaces with mainMod + [0-9]
  239. bind = $mainMod, 1, workspace, 1
  240. bind = $mainMod, 2, workspace, 2
  241. bind = $mainMod, 3, workspace, 3
  242. bind = $mainMod, 4, workspace, 4
  243. bind = $mainMod, 5, workspace, 5
  244. bind = $mainMod, 6, workspace, 6
  245. bind = $mainMod, 7, workspace, 7
  246. bind = $mainMod, 8, workspace, 8
  247. bind = $mainMod, 9, workspace, 9
  248. bind = $mainMod, 0, workspace, 10
  249.  
  250. # Move active window to a workspace with mainMod + SHIFT + [0-9]
  251. bind = $mainMod SHIFT, 1, movetoworkspace, 1
  252. bind = $mainMod SHIFT, 2, movetoworkspace, 2
  253. bind = $mainMod SHIFT, 3, movetoworkspace, 3
  254. bind = $mainMod SHIFT, 4, movetoworkspace, 4
  255. bind = $mainMod SHIFT, 5, movetoworkspace, 5
  256. bind = $mainMod SHIFT, 6, movetoworkspace, 6
  257. bind = $mainMod SHIFT, 7, movetoworkspace, 7
  258. bind = $mainMod SHIFT, 8, movetoworkspace, 8
  259. bind = $mainMod SHIFT, 9, movetoworkspace, 9
  260. bind = $mainMod SHIFT, 0, movetoworkspace, 10
  261.  
  262. # Example special workspace (scratchpad)
  263. bind = $mainMod, S, togglespecialworkspace, magic
  264. bind = $mainMod SHIFT, S, movetoworkspace, special:magic
  265.  
  266. # Scroll through existing workspaces with mainMod + scroll
  267. bind = $mainMod, mouse_down, workspace, e+1
  268. bind = $mainMod, mouse_up, workspace, e-1
  269.  
  270. # Move/resize windows with mainMod + LMB/RMB and dragging
  271. bindm = $mainMod, mouse:272, movewindow
  272. bindm = $mainMod, mouse:273, resizewindow
  273.  
  274. # Laptop multimedia keys for volume and LCD brightness
  275. bindel = ,XF86AudioRaiseVolume, exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%+
  276. bindel = ,XF86AudioLowerVolume, exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%-
  277. bindel = ,XF86AudioMute, exec, wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle
  278. bindel = ,XF86AudioMicMute, exec, wpctl set-mute @DEFAULT_AUDIO_SOURCE@ toggle
  279. bindel = ,XF86MonBrightnessUp, exec, brightnessctl s 10%+
  280. bindel = ,XF86MonBrightnessDown, exec, brightnessctl s 10%-
  281.  
  282. # Requires playerctl
  283. bindl = , XF86AudioNext, exec, playerctl next
  284. bindl = , XF86AudioPause, exec, playerctl play-pause
  285. bindl = , XF86AudioPlay, exec, playerctl play-pause
  286. bindl = , XF86AudioPrev, exec, playerctl previous
  287.  
  288. ##############################
  289. ### WINDOWS AND WORKSPACES ###
  290. ##############################
  291.  
  292. # See https://wiki.hyprland.org/Configuring/Window-Rules/ for more
  293. # See https://wiki.hyprland.org/Configuring/Workspace-Rules/ for workspace rules
  294.  
  295. # Example windowrule v1
  296. # windowrule = float, ^(kitty)$
  297.  
  298. # Example windowrule v2
  299. # windowrulev2 = float,class:^(kitty)$,title:^(kitty)$
  300.  
  301. # Ignore maximize requests from apps. You'll probably like this.
  302. windowrulev2 = suppressevent maximize, class:.*
  303.  
  304. # Fix some dragging issues with XWayland
  305. windowrulev2 = nofocus,class:^$,title:^$,xwayland:1,floating:1,fullscreen:0,pinned:0
  306.  
Advertisement
Add Comment
Please, Sign In to add comment