Guest User

Untitled

a guest
May 22nd, 2024
153
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.92 KB | Software | 0 0
  1.  
  2. #
  3. # Please note not all available settings / options are set here.
  4. # For a full list, see the wiki
  5. #
  6.  
  7.  
  8. # See https://wiki.hyprland.org/Configuring/Monitors/
  9. monitor=DP-3,3840x2160,auto,1.875,bitdepth,10
  10. #monitor=DP-3,1920x1080,auto,1.0 #,bitdepth,10
  11.  
  12.  
  13. # See https://wiki.hyprland.org/Configuring/Keywords/ for more
  14.  
  15. # Source a file (multi-file configs)
  16. # source = ~/.config/hypr/myColors.conf
  17.  
  18. # Some default env vars.
  19. env = WLR_RENDERER,gles2
  20. env = XDG_RUNTIME_DIR,/run/user/1000
  21. env = CLUTTER_BACKEND,wayland
  22. env = QT_QPA_PLATFORM,wayland-egl
  23.  
  24. env = ECORE_EVAS_ENGINE,wayland-egl
  25. env = ELM_ENGINE,wayland_egl
  26. env = SDL_VIDEODRIVER,wayland
  27. env = _JAVA_AWT_WM_NONREPARENTING,1
  28. env = NO_AT_BRIDGE=1
  29. env = KWIN_USE_BUFFER_AGE=0
  30.  
  31. env = LIBVA_DRIVER_NAME,nvidia
  32. env = GBM_BACKEND,nvidia-drm
  33. env = __GLX_VENDOR_LIBRARY_NAME,nvidia
  34.  
  35. env = MOZ_ENABLE_WAYLAND,1
  36. env = NVD_BACKEND,direct
  37. env = MOZ_DISABLE_RDD_SANDBOX,1
  38.  
  39. env = KITTY_ENABLE_WAYLAND=1
  40. env = QT_WAYLAND_FORCE_DPI,physical
  41. env = GDK_BACKEND,wayland,x11
  42. #env = GDK_DPI_SCALE,0.5
  43.  
  44. env = LIBSEAT_BACKEND,logind
  45. #env = WLR_DRM_NO_ATOMIC,1
  46. #env = WLR_DRM_NO_MODIFIERS,1
  47. #env = XWAYLAND_NO_GLAMOR,1
  48. env = WLR_NO_HARDWARE_CURSORS,1
  49. env = XCURSOR_SIZE,48
  50. env = XDG_CURRENT_DESKTOP,Hyprland
  51. env = XDG_SESSION_TYPE,wayland
  52. env = XDG_SESSION_DESKTOP,Hyprland
  53.  
  54. env = GTK2_RC_FILES,/etc/gtk-2.0/gtkrc:/home/alexv/.gtkrc-2.0:/home/alexv/.config/gtkrc-2.0
  55. #env = QT_SCREEN_SCALE_FACTORS,DP-3=1.75
  56. env = QT_AUTO_SCREEN_SCALE_FACTOR,0
  57. env = XDG_CONFIG_DIRS,/home/alexv/.config/kdedefaults:/etc/xdg
  58. env = XCURSOR_THEME,breeze_cursors
  59. env = GTK_MODULES,canberra-gtk-module:appmenu-gtk-module
  60. env = QT_LOGGING_RULES,*.debug=false
  61. env = QT_QPA_PLATFORMTHEME,qt5ct
  62.  
  63. env = XDG_DATA_HOME,$HOME/.local/share
  64.  
  65. # Execute your favorite apps at launch
  66. exec-once = kwalletd5
  67. exec-once = /usr/lib64/libexec/polkit-kde-authentication-agent-1
  68. exec-once = dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP
  69. exec-once = waybar # & nm-applet --indicator
  70. exec-once = kitty
  71. exec-once = sleep 5 && qbittorrent
  72. exec-once = hyprctl dispatch exec "[workspace 5 silent;noanim] telegram-desktop"
  73. exec-once = sleep 2 && hyprctl dispatch exec "[workspace 5 silent;noanim] pachca --enable-oop-rasterization --enable-gpu-rasterization --enable-native-gpu-memory-buffers --enable-features=VaapiVideoDecoder,VaapiVideoEncoder,CanvasOopRasterization --enable-features=VaapiVideoDecoder --enable-features=UseOzonePlatform --ozone-platform=wayland --enable-features=WaylandWindowDecorations --password-store=basic --enable-gpu-compositing --enable-zero-copy --enable-raw-draw --disable-gpu-driver-bug-workarounds --disable-gpu-driver-workarounds --disable-high-precision-scrolling"
  74. #exec-once = hyprctl dispatch exec "[workspace 9 silent;noanim] kmail"
  75. exec-once = hyprctl dispatch exec "[workspace 9 silent;noanim] thunderbird-bin"
  76. exec-once = hyprctl dispatch exec "[workspace 2 silent;noanim] /opt/yandex/browser-beta/yandex-browser-beta --enable-oop-rasterization --enable-gpu-rasterization --enable-native-gpu-memory-buffers --enable-features=VaapiVideoDecoder,VaapiVideoEncoder,CanvasOopRasterization --enable-features=VaapiVideoDecoder --enable-features=UseOzonePlatform --ozone-platform=wayland --enable-features=WaylandWindowDecorations --password-store=basic --disable-gpu-compositing --enable-zero-copy --enable-raw-draw --disable-gpu-driver-bug-workarounds --disable-gpu-driver-workarounds --disable-high-precision-scrolling"
  77. exec-once = /home/alexv/hyprland-per-window-xkblayout
  78. exec-once = swayidle
  79. exec-once = sleep 5 && systemctl --user restart wireplumber.service
  80.  
  81. # For all categories, see https://wiki.hyprland.org/Configuring/Variables/
  82. input {
  83. kb_model = razer_blackwidow_v3
  84. kb_options = grp:alt_shift_toggle
  85. numlock_by_default = true
  86. kb_layout = us, ru
  87. kb_variant = razer-razer-blackwidow-v3
  88. kb_rules =
  89.  
  90. follow_mouse = 1
  91.  
  92. touchpad {
  93. natural_scroll = no
  94. }
  95.  
  96. sensitivity = 0 # -1.0 - 1.0, 0 means no modification.
  97. }
  98.  
  99. general {
  100. # See https://wiki.hyprland.org/Configuring/Variables/ for more
  101.  
  102. gaps_in = 5
  103. gaps_out = 5
  104. border_size = 2
  105. col.active_border = rgba(33ccffee) rgba(00ff99ee) 45deg
  106. col.inactive_border = rgba(595959aa)
  107. cursor_inactive_timeout = 300 # Hyprland uses seconds
  108.  
  109. layout = dwindle
  110. }
  111.  
  112. decoration {
  113. # See https://wiki.hyprland.org/Configuring/Variables/ for more
  114.  
  115. rounding = 5
  116.  
  117. drop_shadow = yes
  118. shadow_range = 4
  119. shadow_render_power = 3
  120. col.shadow = rgba(1a1a1aee)
  121. }
  122.  
  123. animations {
  124. enabled = yes
  125.  
  126. # Some default animations, see https://wiki.hyprland.org/Configuring/Animations/ for more
  127.  
  128. bezier = myBezier, 0.05, 0.9, 0.1, 1.05
  129.  
  130. animation = windows, 1, 7, myBezier
  131. animation = windowsOut, 1, 7, default, popin 80%
  132. animation = border, 1, 10, default
  133. animation = borderangle, 1, 8, default
  134. animation = fade, 1, 7, default
  135. animation = workspaces, 1, 6, default
  136. }
  137.  
  138. dwindle {
  139. # See https://wiki.hyprland.org/Configuring/Dwindle-Layout/ for more
  140. pseudotile = yes # master switch for pseudotiling. Enabling is bound to mainMod + P in the keybinds section below
  141. preserve_split = yes # you probably want this
  142. }
  143.  
  144. master {
  145. # See https://wiki.hyprland.org/Configuring/Master-Layout/ for more
  146. new_is_master = true
  147. }
  148.  
  149. gestures {
  150. # See https://wiki.hyprland.org/Configuring/Variables/ for more
  151. workspace_swipe = off
  152. }
  153.  
  154. # Example per-device config
  155. # See https://wiki.hyprland.org/Configuring/Keywords/#executing for more
  156. device:epic-mouse-v1 {
  157. # sensitivity = -0.5
  158. }
  159.  
  160. # Example windowrule v1
  161. # windowrule = float, ^(kitty)$
  162. # Example windowrule v2
  163. # windowrulev2 = float,class:^(kitty)$,title:^(kitty)$
  164. # See https://wiki.hyprland.org/Configuring/Window-Rules/ for more
  165.  
  166.  
  167. xwayland {
  168. force_zero_scaling = true
  169. use_nearest_neighbor = false
  170. }
  171.  
  172.  
  173. opengl {
  174. nvidia_anti_flicker = false
  175. }
  176.  
  177. misc {
  178. vrr = 0
  179. }
  180.  
  181. debug {
  182. #disable_scale_checks = true
  183. }
  184.  
  185. windowrulev2 = workspace 2, class:^(firefox)$
  186. windowrulev2 = workspace 2, class:^(Yandex-browser-beta)$
  187.  
  188. windowrulev2 = workspace 5, class:^(org.telegram.desktop)$
  189. windowrulev2 = workspace 5, class:^(pachca)$
  190. windowrulev2 = workspace 4, class:^(xfreerdp)$
  191. windowrulev2 = workspace 9, class:^(kmail)$
  192. windowrulev2 = workspace 9, class:^(BlueMail)$
  193. windowrulev2 = float, class:^(org.kde.kcalc)$
  194. windowrulev2 = workspace special:magic, class:^(org.kde.kcalc)$
  195. windowrulev2 = workspace 0, class:^(Steam)$
  196.  
  197. #windowrulev2 = float, workspace:special:debug
  198. windowrulev2 = float, class:^(CameraCalcMeasure)$
  199. windowrulev2 = float, class:^(CameraCalcMeasure)$
  200. windowrulev2 = workspace special:debug, class:^(CameraCalcMeasure)$
  201.  
  202. workspace=1,name:term,label:term
  203.  
  204.  
  205. # See https://wiki.hyprland.org/Configuring/Keywords/ for more
  206. $mainMod = SUPER
  207.  
  208. # Example binds, see https://wiki.hyprland.org/Configuring/Binds/ for more
  209. bind = $mainMod, Q, exec, kitty
  210. bind = $mainMod, C, killactive,
  211. bind = $mainMod, M, exit,
  212. bind = $mainMod, E, exec, dolphin
  213.  
  214. bind = $mainMod, D, togglespecialworkspace, debug
  215. bind = $mainMod, S, togglespecialworkspace, magic
  216. bind = $mainMod SHIFT, S, movetoworkspace, special:magic
  217.  
  218. bind = ,Print, exec, /usr/bin/grimblast copy area
  219. bind = Ctrl,Print, exec, grim -g "$(slurp)" - | ksnip -
  220. bind = $mainMod, Y, exec, hyprctl dispatch exec "[workspace 2 silent;noanim] /opt/yandex/browser-beta/yandex-browser-beta --enable-oop-rasterization --enable-gpu-rasterization --enable-native-gpu-memory-buffers --enable-features=VaapiVideoDecoder,VaapiVideoEncoder,CanvasOopRasterization --enable-features=VaapiVideoDecoder --enable-features=UseOzonePlatform --ozone-platform=wayland --enable-features=WaylandWindowDecorations --password-store=basic --disable-gpu-compositing --enable-zero-copy --enable-raw-draw --disable-gpu-driver-bug-workarounds --disable-gpu-driver-workarounds"
  221.  
  222. bind = $mainMod, V, togglefloating,
  223. bind = $mainMod, R, exec, hyprctl switchxkblayout "razer-razer-blackwidow-v3" "0" & rofi -show drun -theme "$HOME/.config/rofi/launchers/type-1"/style-1.rasi
  224. bind = $mainMod, Tab, exec, rofi -show window -theme "$HOME/.config/rofi/launchers/type-1"/style-10.rasi
  225. bind = $mainMod, P, pseudo, # dwindle
  226. bind = $mainMod, J, togglesplit, # dwindle
  227. bind = $mainMod, F, fullscreen
  228.  
  229. bind = , XF86AudioRaiseVolume, exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%+
  230. bind = , XF86AudioLowerVolume, exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%-
  231. bind = , XF86AudioMute, exec, wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle
  232.  
  233. # Move focus with mainMod + arrow keys
  234. bind = $mainMod, left, movefocus, l
  235. bind = $mainMod, right, movefocus, r
  236. bind = $mainMod, up, movefocus, u
  237. bind = $mainMod, down, movefocus, d
  238.  
  239.  
  240. # Switch workspaces with mainMod + [0-9]
  241. bind = $mainMod, 1, workspace, 1
  242. bind = $mainMod, 2, workspace, 2
  243. bind = $mainMod, 3, workspace, 3
  244. bind = $mainMod, 4, workspace, 4
  245. bind = $mainMod, 5, workspace, 5
  246. bind = $mainMod, 6, workspace, 6
  247. bind = $mainMod, 7, workspace, 7
  248. bind = $mainMod, 8, workspace, 8
  249. bind = $mainMod, 9, workspace, 9
  250. bind = $mainMod, 0, workspace, 10
  251. # Move active window to a workspace with mainMod + SHIFT + [0-9]
  252. bind = $mainMod SHIFT, 1, movetoworkspace, 1
  253. bind = $mainMod SHIFT, 2, movetoworkspace, 2
  254. bind = $mainMod SHIFT, 3, movetoworkspace, 3
  255. bind = $mainMod SHIFT, 4, movetoworkspace, 4
  256. bind = $mainMod SHIFT, 5, movetoworkspace, 5
  257. bind = $mainMod SHIFT, 6, movetoworkspace, 6
  258. bind = $mainMod SHIFT, 7, movetoworkspace, 7
  259. bind = $mainMod SHIFT, 8, movetoworkspace, 8
  260. bind = $mainMod SHIFT, 9, movetoworkspace, 9
  261. bind = $mainMod SHIFT, 0, movetoworkspace, 10
  262.  
  263. # Scroll through existing workspaces with mainMod + scroll
  264. bind = $mainMod, mouse_down, workspace, e-1
  265. bind = $mainMod, mouse_up, workspace, e+1
  266.  
  267. # Move/resize windows with mainMod + LMB/RMB and dragging
  268. bindm = $mainMod, mouse:272, movewindow
  269. bindm = $mainMod, mouse:273, resizewindow
Tags: hyprland
Add Comment
Please, Sign In to add comment