Guest User

hyprland

a guest
Jun 12th, 2025
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.11 KB | None | 0 0
  1. ################################################
  2. # | | | |_ _ _ __ _ __| | __ _ _ __ __| | #
  3. # | |_| | | | | '_ \| '__| |/ _` | '_ \ / _` | #
  4. # | _ | |_| | |_) | | | | (_| | | | | (_| | #
  5. # |_| |_|\__, | .__/|_| |_|\__,_|_| |_|\__,_| #
  6. # |___/|_| #
  7. ################################################
  8.  
  9.  
  10. ### monitors
  11. monitor=eDP-1,1920x1080@60,1366x0,1.25
  12. monitor=HDMI-A-1,[email protected],0x0,1
  13.  
  14. ### workspaces
  15. workspace = 1, monitor:HDMI-A-1, default:true
  16. workspace = 2, monitor:eDP-1, default:true
  17. workspace = 3, monitor:eDP-1, default:true
  18. workspace = 4, monitor:eDP-1, default:true
  19. workspace = 5, monitor:eDP-1, default:true
  20. workspace = 6, monitor:HDMI-A-1, default:true
  21. workspace = 7, monitor:eDP-1, default:true
  22. workspace = 8, monitor:eDP-1, default:true
  23. workspace = 9, monitor:eDP-1, default:true
  24. workspace = 0, monitor:eDP-1, default:true
  25.  
  26. ### default env vars.
  27. env = XCURSOR_SIZE,24
  28. env = LIBVA_DRIVER_NAME,nvidia
  29. env = XDG_SESSION_TYPE,wayland
  30. env = XDG_CURRENT_DESKTOP,Hyprland
  31. env = XDG_SESSION_DESKTOP,Hyprland
  32. env = GBM_BACKEND,nvidia-drm
  33. env = __GLX_VENDOR_LIBRARY_NAME,nvidia
  34.  
  35. ### autstart on launch
  36. exec-once=hyprpaper
  37. exec-once=waybar
  38. exec-once=playerctld daemon
  39. exec-once=xremap ~/.config/xremap/config.yml
  40.  
  41. ### window rules
  42.  
  43. xwayland {
  44. force_zero_scaling = true
  45. }
  46.  
  47.  
  48. input {
  49. kb_layout = us
  50. kb_variant =
  51. kb_model =
  52. kb_options =
  53. kb_rules =
  54.  
  55. follow_mouse = 1
  56.  
  57. touchpad {
  58. natural_scroll = yes
  59. clickfinger_behavior = true
  60. tap-to-click = true
  61. tap_button_map = lrm
  62. }
  63.  
  64. sensitivity = -0.3 # -1.0 - 1.0, 0 means no modification.
  65. accel_profile = flat
  66. }
  67.  
  68.  
  69. general {
  70. gaps_in = 4
  71. gaps_out = 8
  72. border_size = 0
  73. col.active_border = rgba(151818aa)
  74. col.inactive_border = rgba(595959aa)
  75. layout = dwindle
  76. allow_tearing = false
  77. resize_on_border = true
  78. }
  79.  
  80.  
  81. decoration {
  82. rounding = 7
  83.  
  84. blur {
  85. enabled = true
  86. size = 3
  87. passes = 1
  88. }
  89. }
  90.  
  91.  
  92. animations {
  93. enabled = yes
  94. bezier = myBezier, 0.05, 0.9, 0.1, 1.05
  95.  
  96. animation = windows, 1, 7, myBezier
  97. animation = windowsOut, 1, 7, default, popin 80%
  98. animation = border, 1, 10, default
  99. animation = borderangle, 1, 8, default
  100. animation = fade, 1, 7, default
  101. animation = workspaces, 1, 6, default
  102. }
  103.  
  104.  
  105. dwindle {
  106. # See https://wiki.hyprland.org/Configuring/Dwindle-Layout/ for more
  107. pseudotile = yes # master switch for pseudotiling. Enabling is bound to mainMod + P in the keybinds section below
  108. preserve_split = yes # you probably want this
  109. }
  110.  
  111.  
  112. master {
  113. # See https://wiki.hyprland.org/Configuring/Master-Layout/ for more
  114. new_status = master
  115. }
  116.  
  117.  
  118. gestures {
  119. # See https://wiki.hyprland.org/Configuring/Variables/ for more
  120. workspace_swipe = off
  121. }
  122.  
  123.  
  124. misc {
  125. # See https://wiki.hyprland.org/Configuring/Variables/ for more
  126. force_default_wallpaper = 0 # Set to 0 to disable the anime mascot wallpapers
  127. disable_hyprland_logo = true
  128. }
  129.  
  130.  
  131. ## per-device config
  132. device {
  133. name = razer-razer-deathadder-essential
  134. accel_profile = flat
  135. #sensitivity = 0.9
  136. }
  137.  
  138. cursor {
  139. no_hardware_cursors = true
  140. }
  141.  
  142.  
  143. ### keybinds
  144. $mainMod = SUPER
  145.  
  146. bind = $mainMod, T, exec, kitty
  147. bind = $mainMod, Q, killactive,
  148. bind = $mainMod, M, exit,
  149. bind = $mainMod, E, exec, nemo
  150. bind = $mainMod, V, togglefloating,
  151. bind = $mainMod, R, exec, rofi -show drun
  152. bind = $mainMod, TAB, exec, rofi -show window
  153. bind = $mainMod, P, pseudo, # dwindle
  154. bind = $mainMod, X, togglesplit, # dwindle
  155. bind = $mainMod, F, fullscreen,
  156. bind = $mainMod SHIFT, Print, exec, grim -l 0
  157. bind = $mainMod, period, exec, rofimoji -a type -s ask
  158. bind = $mainMod SHIFT, L, exec, hyprlock
  159. bind = $mainMod SHIFT, T, exec, ~/programming/scripts/hyprsunset.sh
  160.  
  161. ## move focus
  162. bind = $mainMod, left, movefocus, l
  163. bind = $mainMod, right, movefocus, r
  164. bind = $mainMod, up, movefocus, u
  165. bind = $mainMod, down, movefocus, d
  166.  
  167. bind = $mainMod, h, movefocus, l
  168. bind = $mainMod, l, movefocus, r
  169. bind = $mainMod, k, movefocus, u
  170. bind = $mainMod, j, movefocus, d
  171.  
  172. ## switch workspaces
  173. bind = $mainMod, 1, workspace, 1
  174. bind = $mainMod, 2, workspace, 2
  175. bind = $mainMod, 3, workspace, 3
  176. bind = $mainMod, 4, workspace, 4
  177. bind = $mainMod, 5, workspace, 5
  178. bind = $mainMod, 6, workspace, 6
  179. bind = $mainMod, 7, workspace, 7
  180. bind = $mainMod, 8, workspace, 8
  181. bind = $mainMod, 9, workspace, 9
  182. bind = $mainMod, 0, workspace, 10
  183.  
  184. ## move active window to a workspace
  185. bind = $mainMod SHIFT, 1, movetoworkspace, 1
  186. bind = $mainMod SHIFT, 2, movetoworkspace, 2
  187. bind = $mainMod SHIFT, 3, movetoworkspace, 3
  188. bind = $mainMod SHIFT, 4, movetoworkspace, 4
  189. bind = $mainMod SHIFT, 5, movetoworkspace, 5
  190. bind = $mainMod SHIFT, 6, movetoworkspace, 6
  191. bind = $mainMod SHIFT, 7, movetoworkspace, 7
  192. bind = $mainMod SHIFT, 8, movetoworkspace, 8
  193. bind = $mainMod SHIFT, 9, movetoworkspace, 9
  194. bind = $mainMod SHIFT, 0, movetoworkspace, 10
  195.  
  196. ## move active window to a workspace without switching workspace
  197. bind = $mainMod CTRL, 1, movetoworkspacesilent, 1
  198. bind = $mainMod CTRL, 2, movetoworkspacesilent, 2
  199. bind = $mainMod CTRL, 3, movetoworkspacesilent, 3
  200. bind = $mainMod CTRL, 4, movetoworkspacesilent, 4
  201. bind = $mainMod CTRL, 5, movetoworkspacesilent, 5
  202. bind = $mainMod CTRL, 6, movetoworkspacesilent, 6
  203. bind = $mainMod CTRL, 7, movetoworkspacesilent, 7
  204. bind = $mainMod CTRL, 8, movetoworkspacesilent, 8
  205. bind = $mainMod CTRL, 9, movetoworkspacesilent, 9
  206. bind = $mainMod CTRL, 0, movetoworkspacesilent, 10
  207.  
  208. ## special workspace (scratchpad)
  209. bind = $mainMod, S, togglespecialworkspace, magic
  210. bind = $mainMod SHIFT, S, movetoworkspace, special:magic
  211.  
  212. ## scroll through existing workspaces
  213. bind = $mainMod, mouse_down, workspace, e+1
  214. bind = $mainMod, mouse_up, workspace, e-1
  215.  
  216. ## move windows
  217. bindm = $mainMod, mouse:272, movewindow
  218. bindm = $mainMod, mouse:273, resizewindow
  219. bind = $mainMod SHIFT, left, movewindow, l
  220. bind = $mainMod SHIFT, right, movewindow, r
  221. bind = $mainMod SHIFT, up, movewindow, u
  222. bind = $mainMod SHIFT, down, movewindow, d
  223.  
  224. ## resize submap
  225. bind = ALT, R, submap, resize
  226. submap = resize
  227. # sets repeatable binds for resizing the active window
  228. binde = , l, resizeactive, 10 0
  229. binde = , h, resizeactive, -10 0
  230. binde = , k, resizeactive, 0 -10
  231. binde = , j, resizeactive, 0 10
  232. # return to global submap
  233. bind = , escape, submap, reset
  234. submap = reset
  235.  
  236. ##media keybinds
  237. bind = , XF86AudioPrev, exec, playerctl previous
  238. bind = , XF86AudioNext, exec, playerctl next
  239. bind = , XF86AudioPlay, exec, playerctl play-pause
  240.  
  241. ## volume Keybinds
  242. bind = , XF86AudioRaiseVolume, exec, pactl set-sink-volume @DEFAULT_SINK@ +5%
  243. bind = , XF86AudioLowerVolume, exec, pactl set-sink-volume @DEFAULT_SINK@ -5%
  244. bind = , XF86AudioMute, exec, pactl set-sink-mute @DEFAULT_SINK@ toggle
  245.  
  246. ## brightness keybinds
  247. bind = , XF86MonBrightnessUp, exec, brightnessctl set -e 5%+
  248. bind = , XF86MonBrightnessDown, exec, brightnessctl set -e 5%-
  249.  
  250. #xdg-desktop-portal
  251. exec-once=dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP
  252.  
Advertisement
Add Comment
Please, Sign In to add comment