Advertisement
Guest User

Untitled

a guest
Jul 20th, 2023
48
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 14.99 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. #
  9. # Please note not all available settings / options are set here.
  10. # For a full list, see the wiki
  11. #
  12.  
  13. # See https://wiki.hyprland.org/Configuring/Monitors/
  14. monitor = eDP-1, 1920x1080@60, 1080x1080, 1 # Main
  15. monitor = DVI-I-1, 1920x1080@60, 0x0, 1, transform, 3 # DisplayLink
  16. monitor = DP-1, 1920x1080@60, 0x0, 1, transform, 3 # Station F
  17. monitor = DP-3, 1920x1080@60, 3000x1080, 1 # NeuroSpin
  18. monitor = DP-4, 1920x1080@60, 0x0, 1, transform, 3 # Station F
  19. monitor = DP-5, 1920x1080@60, 0x0, 1, transform, 3 # Station F
  20.  
  21. # Variables
  22. env = LIBVA_DRIVER_NAME,nvidia
  23. env = XDG_SESSION_TYPE,wayland
  24. env = GBM_BACKEND,nvidia-drm
  25. env = __GLX_VENDOR_LIBRARY_NAME,nvidia
  26. env = WLR_NO_HARDWARE_CURSORS,1
  27.  
  28. # Applications
  29. $term = kitty
  30. $browser = vivaldi-stable
  31. $editor = lvim
  32. $explorer = thunar
  33. $music = spotify
  34. $notepad = mousepad
  35. $launcher = wofi
  36.  
  37. # See https://wiki.hyprland.org/Configuring/Keywords/ for more
  38.  
  39. # Execute your favorite apps at launch
  40. # exec-once = waybar & hyprpaper & firefox
  41. exec-once=/usr/lib/polkit-kde-authentication-agent-1
  42. exec-once=dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP
  43. exec systemctl --user import-environment
  44.  
  45. # Source a file (multi-file configs)
  46. # source = ~/.config/hypr/myColors.conf
  47.  
  48. # Some default env vars.
  49. env = XCURSOR_SIZE,24
  50.  
  51. # For all categories, see https://wiki.hyprland.org/Configuring/Variables/
  52. input {
  53. kb_layout = fr
  54. kb_variant =
  55. kb_model =
  56. kb_options =
  57. kb_rules =
  58.  
  59. follow_mouse = 1
  60.  
  61. touchpad {
  62. natural_scroll = no
  63. disable_while_typing = true
  64. tap-to-click = true
  65. }
  66.  
  67. scroll_method = 2fg
  68.  
  69. sensitivity = 0 # -1.0 - 1.0, 0 means no modification.
  70. }
  71.  
  72. general {
  73. # See https://wiki.hyprland.org/Configuring/Variables/ for more
  74.  
  75. # gaps_in = 5
  76. # gaps_out = 20
  77. gaps_in = 10
  78. gaps_out = 25
  79. # border_size = 2
  80. border_size = 3
  81. col.active_border = rgb(f5e0dc) rgb(fab387) rgb(b4befe) rgb(cba6f7) 280deg
  82. col.inactive_border = rgb(181825)
  83. # col.active_border = rgba(33ccffee) rgba(00ff99ee) 45deg
  84. # col.inactive_border = rgba(595959aa)
  85.  
  86. layout = dwindle
  87. }
  88.  
  89. decoration {
  90. # See https://wiki.hyprland.org/Configuring/Variables/ for more
  91.  
  92. rounding = 10
  93. multisample_edges = true
  94.  
  95. active_opacity = 1.0
  96. inactive_opacity = 0.9
  97. fullscreen_opacity = 1.0
  98.  
  99. # blur = yes
  100. # blur_size = 3
  101. # blur_passes = 1
  102. # blur_new_optimizations = on
  103.  
  104. blur_size = 4 # minimum 1
  105. blur_passes = 6 # minimum 1
  106. blur_xray = true
  107. blur_new_optimizations = true
  108. blur_ignore_opacity = true
  109.  
  110. # drop_shadow = yes
  111. # shadow_range = 4
  112. # shadow_render_power = 3
  113. # col.shadow = rgba(1a1a1aee)
  114.  
  115. drop_shadow = true
  116. shadow_ignore_window = true
  117. shadow_range = 15
  118. shadow_render_power = 2
  119. col.shadow = rgb(cba6f7)
  120. col.shadow_inactive = rgb(181825)
  121.  
  122. dim_inactive = false
  123. dim_strength = 0.05
  124. }
  125.  
  126. animations {
  127. enabled = yes
  128.  
  129. # Some default animations, see https://wiki.hyprland.org/Configuring/Animations/ for more
  130.  
  131. bezier = myBezier, 0.05, 0.9, 0.1, 1.05
  132.  
  133. animation = windows, 1, 7, myBezier
  134. animation = windowsOut, 1, 7, default, popin 80%
  135. animation = border, 1, 10, default
  136. animation = borderangle, 1, 8, default
  137. animation = fade, 1, 7, default
  138. animation = workspaces, 1, 6, default
  139.  
  140. # Bezier curves (from https://easings.net/)
  141. # bezier = easeInSine, 0.12, 0.0, 0.39, 0.0
  142. # bezier = easeOutSine, 0.61, 1.0, 0.88, 1.0
  143. # bezier = easeInOutSine, 0.37, 0.0, 0.63, 1.0
  144. # bezier = easeInQuad, 0.11, 0.0, 0.50, 0.0
  145. # bezier = easeOutQuad, 0.50, 1.0, 0.89, 1.0
  146. # bezier = easeInOutQuad, 0.44, 0.0, 0.56, 1.0
  147. #bezier = easeInCubic, 0.32, 0.0, 0.67, 0.0
  148. #bezier = easeOutCubic, 0.33, 1.0, 0.68, 1.0
  149. #bezier = easeInOutCubic, 0.65, 0.0, 0.35, 1.0
  150. #bezier = easeInQuart, 0.50, 0.0, 0.75, 0.0
  151. #bezier = easeOutQuart, 0.25, 1.0, 0.50, 1.0
  152. #bezier = easeInOutQuart, 0.76, 0.0, 0.24, 1.0
  153. #bezier = easeInQuint, 0.64, 0.0, 0.78, 0.0
  154. #bezier = easeOutQuint, 0.22, 1.0, 0.36, 1.0
  155. #bezier = easeInOutQuint, 0.83, 0.0, 0.17, 1.0
  156. #bezier = easeInExpo, 0.70, 0.0, 0.84, 0.0
  157. #bezier = easeOutExpo, 0.16, 1.0, 0.30, 1.0
  158. #bezier = easeInOutExpo, 0.87, 0.0, 0.13, 1.0
  159. #bezier = easeInCirc, 0.55, 0.0, 1.00, 0.45
  160. #bezier = easeOutCirc, 0.00, 0.55, 0.45, 1.00
  161. #bezier = easeInOutCirc, 0.85, 0.0, 0.15, 1.0
  162. #bezier = easeInBack, 0.36, 0.0, 0.66, -0.56
  163. #bezier = easeOutBack, 0.34, 1.56, 0.64, 1.0
  164. #bezier = easeInOutBack, 0.68, -0.6, 0.32, 1.6
  165.  
  166. # More Bezier Curves (from rxyhn @ GitHub)
  167. # Check out https://github.com/rxyhn/dotfiles/blob/main/home/wayland/hyprland/hyprland.conf#L95
  168. # bezier = overshot, 0.05, 0.9, 0.1, 1.05
  169. # bezier = overshot, 0.13, 0.99, 0.29, 1.1
  170.  
  171. # More Bezier Curves (again) (from linuxmobile @ GitHub)
  172. # Check out https://github.com/linuxmobile/hyprland-dots/blob/main/.config/hypr/hyprland.conf#L16
  173. #bezier=slow, 0, 0.85, 0.3, 1
  174. # bezier=overshot,0.7,0.6,0.1,1.1
  175.  
  176.  
  177. # Another Bezier Curve (again) (from Hyprland wiki)
  178. # bezier = overshot, 0.05, 0.9, 0.1, 1.1
  179.  
  180. # Yet Another Bezier Curve (... you get the idea) (from PROxZIMA @ GitHub)
  181. #bezier = overshot, 0.13, 0.99, 0.29, 1.1
  182.  
  183. # Animations
  184. #animation = windows, 1, 7, overshot, slide
  185. #animation = windowsMove, 1, 4, easeInOutCirc
  186. #animation = border, 1, 10, default
  187. #animation = fade, 1, 10, default
  188. #animation = workspaces, 1, 6, easeOutCubic, slide
  189. }
  190.  
  191. dwindle {
  192. # See https://wiki.hyprland.org/Configuring/Dwindle-Layout/ for more
  193. pseudotile = yes # master switch for pseudotiling. Enabling is bound to mainMod + P in the keybinds section below
  194. preserve_split = yes # you probably want this
  195. }
  196.  
  197. master {
  198. # See https://wiki.hyprland.org/Configuring/Master-Layout/ for more
  199. new_is_master = true
  200. }
  201.  
  202. gestures {
  203. # See https://wiki.hyprland.org/Configuring/Variables/ for more
  204. workspace_swipe = yes
  205. workspace_swipe_fingers = 3
  206. workspace_swipe_forever = true
  207. }
  208.  
  209. misc {
  210. disable_hyprland_logo = false
  211. disable_splash_rendering = false
  212.  
  213. # mouse_move_enables_dpms = true
  214.  
  215. enable_swallow = true
  216. swallow_regex = ^(kitty)$
  217.  
  218. vfr = true
  219. }
  220.  
  221. # Example per-device config
  222. # See https://wiki.hyprland.org/Configuring/Keywords/#executing for more
  223. device:epic-mouse-v1 {
  224. sensitivity = -0.5
  225. }
  226.  
  227. # Example windowrule v1
  228. # windowrule = float, ^(kitty)$
  229. # Example windowrule v2
  230. # windowrulev2 = float,class:^(kitty)$,title:^(kitty)$
  231. # See https://wiki.hyprland.org/Configuring/Window-Rules/ for more
  232.  
  233.  
  234. # See https://wiki.hyprland.org/Configuring/Keywords/ for more
  235. $mainMod = SUPER
  236. $mod_shift = SHIFT
  237. $mod_alt = ALT
  238.  
  239. custom {
  240. binds {
  241. # Example binds, see https://wiki.hyprland.org/Configuring/Binds/ for more
  242. bind = $mainMod, RETURN, exec, $term
  243. bind = $mainMod, Q, killactive,
  244. bind = $mainMod, N, exec, $explorer
  245. bind = $mainMod, V, togglefloating,
  246. bind = $mainMod, R, exec, wofi --show drun
  247. bind = $mainMod, P, pseudo, # dwindle
  248. bind = $mainMod, J, togglesplit, # dwindle
  249. bind = $mainMod, F, fullscreen
  250. bind = $mainMod, G, fullscreen, 1
  251. # bind = $mainMod, G, fakefullscreen
  252. bind = $mainMod, W, exec, $browser
  253. bind = $mainMod, C, exec, source /home/cp264607/mambaforge/bin/activate && kitty -e $editor
  254. bind = $mainMod, M, exec, $music
  255. bind = $mainMod, INSERT, exec, ~/.config/hypr/scripts/tools/colorpicker
  256. bind = $mainMod, S, exec, wlogout
  257. bind = $mainMod, L, exec, ~/.config/hypr/scripts/tools/lock.sh
  258.  
  259. # Move focus with mainMod + arrow keys
  260. bind = $mainMod, left, movefocus, l
  261. bind = $mainMod, right, movefocus, r
  262. bind = $mainMod, up, movefocus, u
  263. bind = $mainMod, down, movefocus, d
  264.  
  265. # Switch workspaces with mainMod + [0-9]
  266. # Switch workspaces
  267. bind = $mainMod, ampersand, exec, ~/.config/hypr/scripts/tools/workspaces workspace 1
  268. bind = $mainMod, eacute, exec, ~/.config/hypr/scripts/tools/workspaces workspace 2
  269. bind = $mainMod, quotedbl, exec, ~/.config/hypr/scripts/tools/workspaces workspace 3
  270. bind = $mainMod, apostrophe, exec, ~/.config/hypr/scripts/tools/workspaces workspace 4
  271. bind = $mainMod, parenleft, exec, ~/.config/hypr/scripts/tools/workspaces workspace 5
  272. bind = $mainMod, minus, exec, ~/.config/hypr/scripts/tools/workspaces workspace 6
  273. bind = $mainMod, egrave, exec, ~/.config/hypr/scripts/tools/workspaces workspace 7
  274. bind = $mainMod, underscore, exec, ~/.config/hypr/scripts/tools/workspaces workspace 8
  275. bind = $mainMod, ccedilla, exec, ~/.config/hypr/scripts/tools/workspaces workspace 9
  276.  
  277. # Move active window to a workspace with mainMod + SHIFT + [0-9]
  278. # Move windows between workspaces
  279. bind = SUPER_SHIFT, ampersand, exec, ~/.config/hypr/scripts/tools/workspaces movetoworkspace 1
  280. bind = SUPER_SHIFT, eacute, exec, ~/.config/hypr/scripts/tools/workspaces movetoworkspace 2
  281. bind = SUPER_SHIFT, quotedbl, exec, ~/.config/hypr/scripts/tools/workspaces movetoworkspace 3
  282. bind = SUPER_SHIFT, apostrophe, exec, ~/.config/hypr/scripts/tools/workspaces movetoworkspace 4
  283. bind = SUPER_SHIFT, parenleft, exec, ~/.config/hypr/scripts/tools/workspaces movetoworkspace 5
  284. bind = SUPER_SHIFT, minus, exec, ~/.config/hypr/scripts/tools/workspaces movetoworkspace 6
  285. bind = SUPER_SHIFT, egrave, exec, ~/.config/hypr/scripts/tools/workspaces movetoworkspace 7
  286. bind = SUPER_SHIFT, underscore, exec, ~/.config/hypr/scripts/tools/workspaces movetoworkspace 8
  287. bind = SUPER_SHIFT, ccedilla, exec, ~/.config/hypr/scripts/tools/workspaces movetoworkspace 9
  288.  
  289. # Scroll through existing workspaces with mainMod + scroll
  290. bind = $mainMod, mouse_down, workspace, e+1
  291. bind = $mainMod, mouse_up, workspace, e-1
  292.  
  293. # Move/resize windows with mainMod + LMB/RMB and dragging
  294. bindm = $mainMod, mouse:272, movewindow
  295. bindm = $mainMod, mouse:273, resizewindow
  296.  
  297.  
  298. # From PROxZIMA @ GitHub
  299. # Use this to get thw XF86 bind (FN + Fx combination) for your keyboard
  300. # xev | grep -A2 --line-buffered '^KeyRelease' | sed -n '/keycode /s/^.*keycode \([0-9]*\).* (.*, \(.*\)).*$/\1 \2/p'
  301.  
  302. # Volume Control
  303. bind = ,XF86AudioRaiseVolume,exec,~/.config/hypr/scripts/tools/volume increase
  304. bind = ,XF86AudioLowerVolume,exec,~/.config/hypr/scripts/tools/volume decrease
  305. bind = ,XF86AudioMute,exec,~/.config/hypr/scripts/tools/volume mute
  306.  
  307. # Media Control
  308. bind = ,XF86AudioMedia,exec,playerctl play-pause
  309. bind = ,XF86AudioPlay,exec,playerctl play-pause
  310. bind = ,XF86AudioStop,exec,playerctl stop
  311. bind = ,XF86AudioPrev,exec,playerctl previous
  312. bind = ,XF86AudioNext,exec,playerctl next
  313.  
  314. # Brightness Control
  315. bind = ,XF86MonBrightnessUp,exec,~/.config/hypr/scripts/tools/brightness_ctl.sh up
  316. bind = ,XF86MonBrightnessDown,exec,~/.config/hypr/scripts/tools/brightness_ctl.sh down
  317.  
  318. # Screenshot
  319. bind = ,Print,exec,~/.config/hypr/scripts/tools/screenshot select
  320. bind = SUPER,Print,exec,~/.config/hypr/scripts/tools/screenshot
  321. bind = SUPER_SHIFT,Print,exec,~/.config/hypr/scripts/tools/screenshot flameshot
  322.  
  323. # Lock Screen
  324. # bind = SUPER_SHIFT,L,exec,~/.config/hypr/scripts/tools/lock
  325.  
  326. # Reload waybar
  327. bind = SUPER_SHIFT,R,exec,~/.config/waybar/launch.sh
  328.  
  329. # Logout
  330. # bind = SUPER,Delete,exec,loginctl terminate-session $XDG_SESSION_ID
  331.  
  332. # Show WLogout Menu
  333. # bind = $mainMod,S,exec,~/.config/wlogout/launch.sh
  334.  
  335. # Force Quit Hyprland
  336. bind = SUPER_SHIFT,Delete,exit
  337. }
  338.  
  339. rules {
  340. # Example Window Rules
  341. # for windows named/classed as abc and xyz
  342. # windowrule = move 69 420,abc
  343. # windowrule = size 420 69,abc
  344. # windowrule = tile,xyz
  345. # windowrule = float,abc
  346. # windowrule = pseudo,abc
  347. # windowrule = monitor 0,xyz
  348.  
  349. # Floating Windows
  350. windowrule = float, *.exe
  351. windowrule = float, wofi
  352.  
  353. # Tiling Windows
  354. windowrule = tile,^(neovide)$
  355. windowrulev2 = tile, class:^(Spotify)$
  356. windowrulev2 = tile, title:^(Minecraft.*)$
  357.  
  358. # Window Opacity
  359. # windowrulev2 = opacity 0.5, class:^Code(\s+-\s+Insiders)?$
  360. # windowrulev2 = opacity 0.5, class:^(Code)$
  361. # windowrulev2 = opacity 0.5, class:^(Code - Insiders)$
  362. # windowrule = opacity 0.5, class:^(Code - Insiders)$
  363. # windowrule = opacity 0.4, code-insiders
  364.  
  365. # Floating Windows
  366. windowrule = float,^(pavucontrol)$
  367. windowrule = float,^(blueman-manager)$
  368. windowrule = float,^(nm-connection-editor)$
  369. windowrule = float,^(mediainfo-gui)$
  370.  
  371. # No Blur Windows
  372. windowrule = noblur,^(firefoxdeveloperedition)$
  373.  
  374. # Menus
  375. windowrulev2 = animation slide, class:^(rofi)$
  376. windowrulev2 = animation slide, class:^(wofi)$
  377. windowrulev2 = animation popin, class:^(wlogout)$, title:^(wlogout)$
  378. windowrulev2 = float, class:^(wlogout)$, title:^(wlogout)$
  379. }
  380.  
  381.  
  382. # ========================================
  383. # | Executables |
  384. # ========================================
  385.  
  386. exec {
  387. # Something with dbus + xdg-desktop-portal-wlr
  388. # See the following:
  389. # https://wiki.hyprland.org/FAQ/#some-of-my-apps-take-a-really-long-time-to-open
  390. # https://gist.github.com/PowerBall253/2dea6ddf6974ba4e5d26c3139ffb7580
  391. exec-once=dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP
  392. exec-once = systemctl --user import-environment WAYLAND_DISPLAY XDG_CURRENT_DESKTOP
  393.  
  394. # Startup Applications
  395. exec-once = ~/.config/hypr/scripts/startup.sh
  396.  
  397. # Wallpaper
  398. # exec-once = swaybg --mode fill --image $wallpaper
  399. # exec-once = ~/.dotfiles/config/hypr/scripts/tools/wallpaper set $wallpaper
  400. # exec-once = ~/.dotfiles/config/hypr/scripts/tools/wallpaper shuffle
  401. }
  402.  
  403. # ========================================
  404. # | More Decorations |
  405. # ========================================
  406. decorations {
  407. # Blurring Layer Surfaces
  408. # blurls = gtk-layer-shell
  409. # blurls = waybar
  410. blurls = wofi
  411. }
  412. }
  413.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement