This commit is contained in:
Leon Wilzer 2024-06-22 01:48:38 +02:00
parent 68e4276ae2
commit d53cc48c9b

View File

@ -5,8 +5,6 @@
# OR EDIT THIS ONE ACCORDING TO THE WIKI INSTRUCTIONS. # OR EDIT THIS ONE ACCORDING TO THE WIKI INSTRUCTIONS.
# ####################################################################################### # #######################################################################################
autogenerated = 1 # remove this line to remove the warning
# This is an example Hyprland config file. # This is an example Hyprland config file.
# Refer to the wiki for more information. # Refer to the wiki for more information.
# https://wiki.hyprland.org/Configuring/Configuring-Hyprland/ # https://wiki.hyprland.org/Configuring/Configuring-Hyprland/
@ -19,6 +17,22 @@ autogenerated = 1 # remove this line to remove the warning
# source = ~/.config/hypr/myColors.conf # source = ~/.config/hypr/myColors.conf
###################
### NVIDIA (fu) ###
###################
env = LIBVA_DRIVER_NAME,nvidia
env = XDG_SESSION_TYPE,wayland
env = GBM_BACKEND,nvidia-drm
env = __GLX_VENDOR_LIBRARY_NAME,nvidia
cursor {
no_hardware_cursors = true
}
env = NVD_BACKEND,direct
env = ELECTRON_OZONE_PLATFORM_HINT,auto
################ ################
### MONITORS ### ### MONITORS ###
################ ################
@ -46,9 +60,9 @@ $menu = wofi --show drun
# Autostart necessary processes (like notifications daemons, status bars, etc.) # Autostart necessary processes (like notifications daemons, status bars, etc.)
# Or execute your favorite apps at launch like this: # Or execute your favorite apps at launch like this:
# exec-once = $terminal
# exec-once = nm-applet & # exec-once = nm-applet &
# exec-once = waybar & hyprpaper & firefox exec-once = waybar
exec-once = hyprpaper
############################# #############################
@ -184,10 +198,12 @@ device {
# See https://wiki.hyprland.org/Configuring/Keywords/ # See https://wiki.hyprland.org/Configuring/Keywords/
$mainMod = SUPER # Sets "Windows" key as main modifier $mainMod = SUPER # Sets "Windows" key as main modifier
$subMod = SHIFT # Sets "Shift" key as sub modifier
$supMod = CONTROL # Sets "CTRL" key as sub modifier
# Example binds, see https://wiki.hyprland.org/Configuring/Binds/ for more # Example binds, see https://wiki.hyprland.org/Configuring/Binds/ for more
bind = $mainMod, Q, exec, $terminal bind = $mainMod, Return, exec, $terminal
bind = $mainMod, C, killactive, bind = $mainMod $subMod, Q, killactive,
bind = $mainMod, M, exit, bind = $mainMod, M, exit,
bind = $mainMod, E, exec, $fileManager bind = $mainMod, E, exec, $fileManager
bind = $mainMod, V, togglefloating, bind = $mainMod, V, togglefloating,
@ -214,20 +230,31 @@ bind = $mainMod, 9, workspace, 9
bind = $mainMod, 0, workspace, 10 bind = $mainMod, 0, workspace, 10
# Move active window to a workspace with mainMod + SHIFT + [0-9] # Move active window to a workspace with mainMod + SHIFT + [0-9]
bind = $mainMod SHIFT, 1, movetoworkspace, 1 bind = $mainMod SHIFT, 1, movetoworkspacesilent, 1
bind = $mainMod SHIFT, 2, movetoworkspace, 2 bind = $mainMod SHIFT, 2, movetoworkspacesilent, 2
bind = $mainMod SHIFT, 3, movetoworkspace, 3 bind = $mainMod SHIFT, 3, movetoworkspacesilent, 3
bind = $mainMod SHIFT, 4, movetoworkspace, 4 bind = $mainMod SHIFT, 4, movetoworkspacesilent, 4
bind = $mainMod SHIFT, 5, movetoworkspace, 5 bind = $mainMod SHIFT, 5, movetoworkspacesilent, 5
bind = $mainMod SHIFT, 6, movetoworkspace, 6 bind = $mainMod SHIFT, 6, movetoworkspacesilent, 6
bind = $mainMod SHIFT, 7, movetoworkspace, 7 bind = $mainMod SHIFT, 7, movetoworkspacesilent, 7
bind = $mainMod SHIFT, 8, movetoworkspace, 8 bind = $mainMod SHIFT, 8, movetoworkspacesilent, 8
bind = $mainMod SHIFT, 9, movetoworkspace, 9 bind = $mainMod SHIFT, 9, movetoworkspacesilent, 9
bind = $mainMod SHIFT, 0, movetoworkspace, 10 bind = $mainMod SHIFT, 0, movetoworkspacesilent, 10
# Example special workspace (scratchpad) # Browser Workspace
bind = $mainMod, S, togglespecialworkspace, magic workspace = special:browser, on-created-empty:firefox
bind = $mainMod SHIFT, S, movetoworkspace, special:magic bind = $mainMod, A, togglespecialworkspace, browser
bind = $mainMod SHIFT, A, movetoworkspacesilent, special:broswer
# Music Workspace
workspace = special:music, on-created-empty:tidal-hifi & kitty
bind = $mainMod, S, togglespecialworkspace, music
bind = $mainMod SHIFT, S, movetoworkspacesilent, special:music
# Music Workspace
workspace = special:games, on-created-empty:steam & prismlauncher
bind = $mainMod, D, togglespecialworkspace, games
bind = $mainMod SHIFT, D, movetoworkspacesilent, special:games
# Scroll through existing workspaces with mainMod + scroll # Scroll through existing workspaces with mainMod + scroll
bind = $mainMod, mouse_down, workspace, e+1 bind = $mainMod, mouse_down, workspace, e+1
@ -245,11 +272,11 @@ bindm = $mainMod, mouse:273, resizewindow
# See https://wiki.hyprland.org/Configuring/Window-Rules/ for more # See https://wiki.hyprland.org/Configuring/Window-Rules/ for more
# See https://wiki.hyprland.org/Configuring/Workspace-Rules/ for workspace rules # See https://wiki.hyprland.org/Configuring/Workspace-Rules/ for workspace rules
# Example windowrule v1 # Special Workspaces
# windowrule = float, ^(kitty)$ windowrulev2 = workspace special:browser silent, class:^(firefox)$,title:^(firefox)$
windowrulev2 = workspace special:music silent, class:^(tidal-hifi)$,title:^(tidal-hifi)$
# Example windowrule v2 windowrulev2 = workspace special:games silent, class:^(steam)$,title:^(steam)$
# windowrulev2 = float,class:^(kitty)$,title:^(kitty)$ windowrulev2 = workspace special:games silent, class:^(prismlauncher)$,title:^(prismlauncher)$
windowrulev2 = suppressevent maximize, class:.* # You'll probably like this. windowrulev2 = suppressevent maximize, class:.* # You'll probably like this.