Advertisement
TestUser__01

Untitled

Jul 24th, 2024
36
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 7.96 KB | Software | 0 0
  1. # https://wiki.hyprland.org/Configuring/Configuring-Hyprland/
  2.  
  3. debug:disable_logs = false
  4.  
  5. ################
  6. ### MONITORS ###
  7. ################
  8.  
  9. monitor=,preferred,auto,auto
  10.  
  11.  
  12. ################
  13. ### PROGRAMS ###
  14. ################
  15.  
  16. # See https://wiki.hyprland.org/Configuring/Keywords/
  17.  
  18. # Set programs that you use
  19. $terminal = kitty
  20. $fileManager = dolphin
  21. $menu = wofi --show drun
  22. $browser = firefox
  23.  
  24. xwayland {
  25.   force_zero_scaling = true # makes vscode and friends look nice
  26. }
  27.  
  28. #################
  29. ### AUTOSTART ###
  30. #################
  31.  
  32. # Autostart necessary processes (like notifications daemons, status bars, etc.)
  33. # Or execute your favorite apps at launch like this:
  34.  
  35. # exec-once = pipewire & pipewire-pulse # audio nonsense
  36. exec-once = hyprlock # stay out >:}
  37. exec-once = swaync
  38. exec-once = echo 0
  39. exec-once = waybar # yay waybar
  40. exec-once = sudo tlp start
  41. exec-once = hyprpaper
  42. # exec-once = $terminal
  43. # exec-once = nm-applet &
  44. # exec-once = waybar & hyprpaper & firefox
  45.  
  46.  
  47. #############################
  48. ### ENVIRONMENT VARIABLES ###
  49. #############################
  50.  
  51. # See https://wiki.hyprland.org/Configuring/Environment-variables/
  52.  
  53. env = XCURSOR_SIZE,24
  54. env = HYPRCURSOR_SIZE,24
  55.  
  56.  
  57. #####################
  58. ### LOOK AND FEEL ###
  59. #####################
  60.  
  61. # Refer to https://wiki.hyprland.org/Configuring/Variables/
  62.  
  63. # https://wiki.hyprland.org/Configuring/Variables/#general
  64. general {
  65.     gaps_in = 5
  66.     gaps_out = 7
  67.  
  68.     border_size = 2
  69.  
  70.     # https://wiki.hyprland.org/Configuring/Variables/#variable-types for info about colors
  71.     # col.active_border = rgba(F92672aa) rgba(66D9EFcb) -110deg
  72.     col.active_border = rgba(75715e99)
  73.     col.inactive_border = rgba(595959aa)
  74.  
  75.     # Set to true enable resizing windows by clicking and dragging on borders and gaps
  76.     resize_on_border = false
  77.  
  78.     no_focus_fallback = true
  79.  
  80.     # Please see https://wiki.hyprland.org/Configuring/Tearing/ before you turn this on
  81.     allow_tearing = false
  82.  
  83.     layout = dwindle
  84. }
  85.  
  86. # https://wiki.hyprland.org/Configuring/Variables/#decoration
  87. decoration {
  88.     rounding = 10
  89.  
  90.     # Change transparency of focused and unfocused windows
  91.     active_opacity = 1.0
  92.     inactive_opacity = .8
  93.  
  94.     drop_shadow = true
  95.     shadow_range = 4
  96.     shadow_render_power = 3
  97.     col.shadow = rgba(1a1a1aee)
  98.  
  99.     # https://wiki.hyprland.org/Configuring/Variables/#blur
  100.     blur {
  101.         enabled = true
  102.         size = 3
  103.         passes = 1
  104.        
  105.         vibrancy = 0.1696
  106.     }
  107. }
  108.  
  109. # https://wiki.hyprland.org/Configuring/Variables/#animations
  110. animations {
  111.     enabled = true
  112.  
  113.     # Default animations, see https://wiki.hyprland.org/Configuring/Animations/ for more
  114.  
  115.     bezier = myBezier, 0.05, 0.9, 0.1, 1.05
  116.  
  117.     animation = windows, 1, 7, myBezier
  118.     animation = windowsOut, 1, 7, default, popin 80%
  119.     animation = border, 1, 10, default
  120.     animation = borderangle, 1, 8, default
  121.     animation = fade, 1, 2, default
  122.     animation = workspaces, 1, 6, default
  123. }
  124.  
  125. # See https://wiki.hyprland.org/Configuring/Dwindle-Layout/ for more
  126. dwindle {
  127.     pseudotile = true # Master switch for pseudotiling. Enabling is bound to mainMod + P in the keybinds section below
  128.     preserve_split = true # You probably want this
  129. }
  130.  
  131. # See https://wiki.hyprland.org/Configuring/Master-Layout/ for more
  132. master {
  133.     new_status = master
  134. }
  135.  
  136. # https://wiki.hyprland.org/Configuring/Variables/#misc
  137. misc {
  138.     force_default_wallpaper = 0 # Set to 0 or 1 to disable the anime mascot wallpapers
  139.     disable_hyprland_logo = true # If true disables the random hyprland logo / anime girl background. :(
  140. }
  141.  
  142.  
  143. #############
  144. ### INPUT ###
  145. #############
  146.  
  147. # https://wiki.hyprland.org/Configuring/Variables/#input
  148. input {
  149.     kb_layout = us
  150.     kb_variant =
  151.     kb_model =
  152.     kb_options =
  153.     kb_rules =
  154.  
  155.     follow_mouse = 1
  156.  
  157.     sensitivity = 0.0 # -1.0 - 1.0, 0 means no modification.
  158.  
  159.     touchpad {
  160.         natural_scroll = true
  161.         scroll_factor = 0.25
  162.     }
  163. }
  164.  
  165. # https://wiki.hyprland.org/Configuring/Variables/#gestures
  166. gestures {
  167.     workspace_swipe = true # 3 finger swipe
  168.     workspace_swipe_distance = 500 # length
  169.     workspace_swipe_cancel_ratio = .55 # how much needed for swipe normalized
  170.     workspace_swipe_min_speed_to_force = 6
  171.     workspace_swipe_use_r = true
  172. }
  173.  
  174. # Example per-device config
  175. # See https://wiki.hyprland.org/Configuring/Keywords/#per-device-input-configs for more
  176. device {
  177.     name = epic-mouse-v1
  178.     sensitivity = -0.5
  179. }
  180.  
  181.  
  182. ####################
  183. ### KEYBINDINGSS ###
  184. ####################
  185.  
  186. # See https://wiki.hyprland.org/Configuring/Keywords/
  187. $mainMod = SUPER # Sets "Windows" key as main modifier
  188.  
  189. # Example binds, see https://wiki.hyprland.org/Configuring/Binds/ for more
  190. bind = $mainMod, W, exec, $terminal
  191. bind = $mainMod, F, exec, $browser
  192. # bind = $mainMod, E, exec, $fileManager
  193. bind = $mainMod, A, exec, firefox --new-window https://beta.music.apple.com/us/home # music player
  194. bind = $mainMod, D, exec, rofi -show drun
  195. bind = $mainMod, E, exec, rofi -show run
  196. bind = $mainMod, TAB, exec, rofi -show window
  197. bind = $mainMod, Q, killactive,
  198. bind = $mainMod, C, exec, code
  199. bind = $mainMod, M, exit,
  200. # See https://wiki.hyprland.org/Configuring/Monitors/
  201. bind = $mainMod, V, exec, ~/bin/center_window.zsh # togglefloating,
  202. bind = $mainMod, R, exec, $menu
  203. bind = $mainMod, P, pseudo, # dwindle
  204. bind = $mainMod, J, togglesplit, # dwindle
  205.  
  206. # lock computer
  207. bind = $mainMod, escape, exec, hyprlock
  208. bindl=,switch:off:Lid Switch, exec, hyprlock --immediate
  209.  
  210. # Move focus with mainMod + arrow keys
  211. bind = $mainMod, left, movefocus, l
  212. bind = $mainMod, right, movefocus, r
  213. bind = $mainMod, up, movefocus, u
  214. bind = $mainMod, down, movefocus, d
  215.  
  216. binde = $mainMod SHIFT, left, movetoworkspace, r-1
  217. binde = $mainMod SHIFT, right, movetoworkspace, r+1
  218.  
  219.  
  220. # Switch workspaces with mainMod + [0-9]
  221. bind = $mainMod, 1, workspace, 1
  222. bind = $mainMod, 2, workspace, 2
  223. bind = $mainMod, 3, workspace, 3
  224. bind = $mainMod, 4, workspace, 4
  225. bind = $mainMod, 5, workspace, 5
  226. bind = $mainMod, 6, workspace, 6
  227. bind = $mainMod, 7, workspace, 7
  228. bind = $mainMod, 8, workspace, 8
  229. bind = $mainMod, 9, workspace, 9
  230. bind = $mainMod, 0, workspace, 10
  231.  
  232. # Move active window to a workspace with mainMod + SHIFT + [0-9]
  233. bind = $mainMod SHIFT, 1, movetoworkspace, 1
  234. bind = $mainMod SHIFT, 2, movetoworkspace, 2
  235. bind = $mainMod SHIFT, 3, movetoworkspace, 3
  236. bind = $mainMod SHIFT, 4, movetoworkspace, 4
  237. bind = $mainMod SHIFT, 5, movetoworkspace, 5
  238. bind = $mainMod SHIFT, 6, movetoworkspace, 6
  239. bind = $mainMod SHIFT, 7, movetoworkspace, 7
  240. bind = $mainMod SHIFT, 8, movetoworkspace, 8
  241. bind = $mainMod SHIFT, 9, movetoworkspace, 9
  242. bind = $mainMod SHIFT, 0, movetoworkspace, 10
  243.  
  244. # Example special workspace (scratchpad)
  245. bind = $mainMod, S, togglespecialworkspace, magic
  246. bind = $mainMod SHIFT, S, movetoworkspace, special:magic
  247.  
  248. # Scroll through existing workspaces with mainMod + scroll
  249. bind = $mainMod, mouse_down, workspace, e+1
  250. bind = $mainMod, mouse_up, workspace, e-1
  251.  
  252. # Volume controls
  253. bind = , code:121, exec, pamixer -t # toggle mute (f1)
  254. binde = , code:122, exec, pamixer --decrease 5 # f2
  255. binde = , code:123, exec, pamixer --increase 5 # f3
  256.  
  257. binde = , code:232, exec, brightnessctl s 10- # f7
  258. binde = , code:233, exec, brightnessctl s +10 # f8
  259.  
  260. # Move/resize windows with mainMod + LMB/RMB and dragging
  261. bindm = $mainMod, mouse:272, movewindow
  262. bindm = $mainMod, mouse:273, resizewindow
  263.  
  264. ##############################
  265. ### WINDOWS AND WORKSPACES ###
  266. ##############################
  267.  
  268. # See https://wiki.hyprland.org/Configuring/Window-Rules/ for more
  269. # See https://wiki.hyprland.org/Configuring/Workspace-Rules/ for workspace rules
  270.  
  271. # Example windowrule v1
  272. # windowrule = float, ^(kitty)$
  273.  
  274. # Example windowrule v2
  275. # windowrulev2 = float,class:^(kitty)$,title:^(kitty)$
  276.  
  277. windowrulev2 = size 800 600, class:firefox,title:Save Image # makes save image not my whole screen lol
  278. windowrulev2 = suppressevent maximize, class:.* # You'll probably like this.
  279.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement