ardj

hyprland.conf

Apr 18th, 2025
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.13 KB | None | 0 0
  1.  
  2. # #######################################################################################
  3. # AUTOGENERATED HYPR CONFIG.
  4. # PLEASE USE THE CONFIG PROVIDED IN THE GIT REPO /examples/hypr.conf AND EDIT IT,
  5. # OR EDIT THIS ONE ACCORDING TO THE WIKI INSTRUCTIONS.
  6. # #######################################################################################
  7.  
  8. #autogenerated = 1 # 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/Configuring-Hyprland/
  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 = foot
  38. $fileManager = thunar #dolphin
  39. $menu = wofi --show drun
  40. $menuAlter = wofi --show run
  41. $cliphist = cliphist list | wofi -S dmenu | cliphist decode | wl-copy
  42.  
  43.  
  44. #################
  45. ### AUTOSTART ###
  46. #################
  47.  
  48. # Autostart necessary processes (like notifications daemons, status bars, etc.)
  49. # Or execute your favorite apps at launch like this:
  50.  
  51. # exec-once = $terminal
  52. # exec-once = nm-applet &
  53. # exec-once = waybar & hyprpaper & firefox
  54.  
  55. exec-once = nm-applet &
  56. exec-once = sh -c "sleep 2 && waybar &"
  57. exec-once = ~/.local/scripts/random_wallpaper_hyprland.sh
  58. exec-once = exec wl-paste --watch cliphist store
  59. #############################
  60. ### ENVIRONMENT VARIABLES ###
  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(ebdbb2ee)
  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 = false
  88.  
  89. # Please see https://wiki.hyprland.org/Configuring/Tearing/ before you turn this on
  90. allow_tearing = false
  91. layout = master
  92. }
  93.  
  94. # https://wiki.hyprland.org/Configuring/Variables/#decoration
  95. decoration {
  96. rounding = 5
  97.  
  98. # Change transparency of focused and unfocused windows
  99. active_opacity = 1.0
  100. inactive_opacity = 1.0
  101.  
  102. drop_shadow = true
  103. shadow_range = 4
  104. shadow_render_power = 3
  105. col.shadow = rgba(1a1a1aee)
  106.  
  107. # https://wiki.hyprland.org/Configuring/Variables/#blur
  108. blur {
  109. enabled = true
  110. size = 3
  111. passes = 1
  112.  
  113. vibrancy = 0.1696
  114. }
  115. }
  116.  
  117. # https://wiki.hyprland.org/Configuring/Variables/#animations
  118. animations {
  119. enabled = true
  120.  
  121. # Default animations, see https://wiki.hyprland.org/Configuring/Animations/ for more
  122.  
  123. bezier = myBezier, 0.05, 0.9, 0.1, 1.05
  124.  
  125. animation = windows, 1, 7, myBezier
  126. animation = windowsOut, 1, 7, default, popin 80%
  127. animation = border, 1, 10, default
  128. animation = borderangle, 1, 8, default
  129. animation = fade, 1, 7, default
  130. animation = workspaces, 1, 6, default
  131. }
  132.  
  133.  
  134. # See https://wiki.hyprland.org/Configuring/Master-Layout/ for more
  135. master {
  136. new_status = master
  137. }
  138.  
  139. # https://wiki.hyprland.org/Configuring/Variables/#misc
  140. misc {
  141. force_default_wallpaper = 0 # Set to 0 or 1 to disable the anime mascot wallpapers
  142. disable_hyprland_logo = false # If true disables the random hyprland logo / anime girl background. :(
  143. }
  144.  
  145.  
  146. #############
  147. ### INPUT ###
  148. #############
  149.  
  150. # https://wiki.hyprland.org/Configuring/Variables/#input
  151. input {
  152. kb_layout = us,es
  153. follow_mouse = 1
  154.  
  155. sensitivity = 0 # -1.0 - 1.0, 0 means no modification.
  156.  
  157. touchpad {
  158. natural_scroll = false
  159. }
  160. }
  161.  
  162. # https://wiki.hyprland.org/Configuring/Variables/#gestures
  163. gestures {
  164. workspace_swipe = false
  165. }
  166.  
  167. # Example per-device config
  168. # See https://wiki.hyprland.org/Configuring/Keywords/#per-device-input-configs for more
  169. device {
  170. name = epic-mouse-v1
  171. sensitivity = -0.5
  172. }
  173.  
  174.  
  175. ###################
  176. ### KEYBINDINGS ###
  177. ###################
  178.  
  179. # See https://wiki.hyprland.org/Configuring/Keywords/
  180. $mainMod = SUPER # Sets "Windows" key as main modifier
  181. $changeWallpaper = ~/.local/scripts/random_wallpaper_hyprland.sh
  182. $powerMenu = ~/.local/scripts/power_menu.sh
  183.  
  184.  
  185. # Example binds, see https://wiki.hyprland.org/Configuring/Binds/ for more
  186. # === General ===
  187. bind = $mainMod SHIFT, q, exit
  188. bind = $mainMod, E, exec, $fileManager
  189. bind = $mainMod, W, exec, $changeWallpaper
  190. bind = $mainMod, B, exec, pkill -SIGUSR1 waybar
  191. bind = $mainMod, X, exec, $powerMenu
  192. bind = $mainMod, R, exec, ~/.local/scripts/toggle-recording.sh
  193.  
  194. # === App Launching ===
  195. bind = $mainMod, Return, exec, $terminal
  196. bind = $mainMod, P, exec, $menu
  197. bind = $mainMod SHIFT, P, exec, $menuAlter
  198. bind = $mainMod, V, exec, $cliphist
  199. #bind = , Print, exec, grimblast copy area
  200.  
  201.  
  202. bind = , Print, exec, grimblast copy area
  203. bind = SHIFT, Print, exec, grimblast copy screen
  204. #bind = SUPER, p, exec, rofi -show drun # replace with dmenu if needed
  205. #bind = SUPER, v, exec, clipmenu
  206. #bind = SUPER, e, exec, your-minimal-browser
  207. #bind = SUPER, grave, exec, foot --title scratchpad -e btop # example scratchpad
  208. #bind = SUPER, x, exec, your-power-menu-script
  209. #bind = SUPER|ALT, space, exec, your-keyboard-layout-toggle-scri
  210.  
  211. # === Window Management ===
  212. bind = $mainMod, j, layoutmsg, cyclenext
  213. bind = $mainMod, k, layoutmsg, cycleprev
  214. bind = $mainMod SHIFT, j, layoutmsg, swapnext
  215. bind = $mainMod SHIFT, k, layoutmsg, swapprev
  216. bind = $mainMod, h, layoutmsg, mfact -0.05
  217. bind = $mainMod, l, layoutmsg, mfact +0.05
  218.  
  219. bind = $mainMod, i, layoutmsg, addmaster
  220. bind = $mainMod, d, layoutmsg, removemaster
  221. bind = $mainMod, space, layoutmsg, orientationcycle
  222. bind = $mainMod SHIFT, Return, layoutmsg, swapwithmaster
  223. bind = $mainMod, f, togglefloating
  224. bind = $mainMod SHIFT, f, fullscreen
  225. bind = $mainMod, q, killactive
  226. bind = $mainMod, Tab, workspace, previous
  227. bind = $mainMod, space, togglesplit # if you want cyclelayout behavior
  228.  
  229. # === Gaps Management ===
  230. bind = $mainMod, equal, exec, hyprctl dispatch changegapsout 5 && hyprctl dispatch changegapsin 5
  231. bind = $mainMod, minus, exec, hyprctl dispatch changegapsout -5 && hyprctl dispatch changegapsin -5
  232. bind = $mainMod CTRL, equal, exec, hyprctl dispatch changegapsin 5
  233. bind = $mainMod CTRL, minus, exec, hyprctl dispatch changegapsin -5
  234. bind = $mainMod SHIFT, equal, exec, hyprctl dispatch changegapsout 5
  235. bind = $mainMod SHIFT, minus, exec, hyprctl dispatch changegapsout -5
  236. bind = $mainMod SHIFT CTRL, equal, exec, hyprctl --batch 'keyword general:gaps_in 5; keyword general:gaps_out 5'
  237. bind = $mainMod SHIFT CTRL, minus, exec, hyprctl --batch 'keyword general:gaps_in 0; keyword general:gaps_out 0'
  238.  
  239.  
  240. # === Monitor Focus & Move ===
  241. bind = $mainMod, comma, focusmonitor, -1
  242. bind = $mainMod, period, focusmonitor, +1
  243. #bind = $mainMod SHIFT, comma, movetomonitor, -1
  244. #bind = $mainMod SHIFT, period, movetomonitor, +1
  245.  
  246. # === Workspaces (Tags) ===
  247. bind = $mainMod, 1, workspace, 1
  248. bind = $mainMod SHIFT, 1, movetoworkspace, 1
  249. bind = $mainMod, 2, workspace, 2
  250. bind = $mainMod SHIFT, 2, movetoworkspace, 2
  251. bind = $mainMod, 3, workspace, 3
  252. bind = $mainMod SHIFT, 3, movetoworkspace, 3
  253. bind = $mainMod, 4, workspace, 4
  254. bind = $mainMod SHIFT, 4, movetoworkspace, 4
  255. bind = $mainMod, 5, workspace, 5
  256. bind = $mainMod SHIFT, 5, movetoworkspace, 5
  257. bind = $mainMod, 6, workspace, 6
  258. bind = $mainMod SHIFT, 6, movetoworkspace, 6
  259. bind = $mainMod, 7, workspace, 7
  260. bind = $mainMod SHIFT, 7, movetoworkspace, 7
  261. bind = $mainMod, 8, workspace, 8
  262. bind = $mainMod SHIFT, 8, movetoworkspace, 8
  263. bind = $mainMod, 9, workspace, 9
  264. bind = $mainMod SHIFT, 9, movetoworkspace, 9
  265. bind = $mainMod, 0, workspace, 10
  266. bind = $mainMod SHIFT, 0, movetoworkspace, 10
  267.  
  268. # Example special workspace (scratchpad)
  269. bind = $mainMod, S, togglespecialworkspace, magic
  270. bind = $mainMod SHIFT, S, movetoworkspace, special:magic
  271.  
  272. # Scroll through existing workspaces with mainMod + scroll
  273. #bind = $mainMod, mouse_down, workspace, e+1
  274. #bind = $mainMod, mouse_up, workspace, e-1
  275.  
  276. # Move/resize windows with mainMod + LMB/RMB and dragging
  277. bindm = $mainMod, mouse:272, movewindow
  278. bindm = $mainMod, mouse:273, resizewindow
  279.  
  280. # Laptop multimedia keys for volume and LCD brightness
  281. bindel = ,XF86AudioRaiseVolume, exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%+
  282. bindel = ,XF86AudioLowerVolume, exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%-
  283. bindel = ,XF86AudioMute, exec, wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle
  284. bindel = ,XF86AudioMicMute, exec, wpctl set-mute @DEFAULT_AUDIO_SOURCE@ toggle
  285. bindel = ,XF86MonBrightnessUp, exec, brightnessctl s 10%+
  286. bindel = ,XF86MonBrightnessDown, exec, brightnessctl s 10%-
  287.  
  288. # Requires playerctl
  289. bindl = , XF86AudioNext, exec, playerctl next
  290. bindl = , XF86AudioPause, exec, playerctl play-pause
  291. bindl = , XF86AudioPlay, exec, playerctl play-pause
  292. bindl = , XF86AudioPrev, exec, playerctl previous
  293.  
  294. ##############################
  295. ### WINDOWS AND WORKSPACES ###
  296. ##############################
  297.  
  298. # See https://wiki.hyprland.org/Configuring/Window-Rules/ for more
  299. # See https://wiki.hyprland.org/Configuring/Workspace-Rules/ for workspace rules
  300.  
  301. # Example windowrule v1
  302. # windowrule = float, ^(kitty)$
  303.  
  304. # Example windowrule v2
  305. # windowrulev2 = float,class:^(kitty)$,title:^(kitty)$
  306.  
  307. # Ignore maximize requests from apps. You'll probably like this.
  308. windowrulev2 = suppressevent maximize, class:.*
  309.  
  310. # Fix some dragging issues with XWayland
  311. windowrulev2 = nofocus,class:^$,title:^$,xwayland:1,floating:1,fullscreen:0,pinned:0
  312.  
  313. master {
  314. new_status = slave
  315. mfact = 0.5
  316. }
  317.  
Advertisement
Add Comment
Please, Sign In to add comment