From d53cc48c9b0ab486e8fb40035df10d8985f66531 Mon Sep 17 00:00:00 2001 From: Leon Wilzer Date: Sat, 22 Jun 2024 01:48:38 +0200 Subject: [PATCH] v1 --- hyprland.conf | 75 ++++++++++++++++++++++++++++++++++----------------- 1 file changed, 51 insertions(+), 24 deletions(-) diff --git a/hyprland.conf b/hyprland.conf index b255e36..e505374 100644 --- a/hyprland.conf +++ b/hyprland.conf @@ -5,8 +5,6 @@ # 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. # Refer to the wiki for more information. # 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 +################### +### 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 ### ################ @@ -46,9 +60,9 @@ $menu = wofi --show drun # Autostart necessary processes (like notifications daemons, status bars, etc.) # Or execute your favorite apps at launch like this: -# exec-once = $terminal # 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/ $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 -bind = $mainMod, Q, exec, $terminal -bind = $mainMod, C, killactive, +bind = $mainMod, Return, exec, $terminal +bind = $mainMod $subMod, Q, killactive, bind = $mainMod, M, exit, bind = $mainMod, E, exec, $fileManager bind = $mainMod, V, togglefloating, @@ -214,20 +230,31 @@ bind = $mainMod, 9, workspace, 9 bind = $mainMod, 0, workspace, 10 # Move active window to a workspace with mainMod + SHIFT + [0-9] -bind = $mainMod SHIFT, 1, movetoworkspace, 1 -bind = $mainMod SHIFT, 2, movetoworkspace, 2 -bind = $mainMod SHIFT, 3, movetoworkspace, 3 -bind = $mainMod SHIFT, 4, movetoworkspace, 4 -bind = $mainMod SHIFT, 5, movetoworkspace, 5 -bind = $mainMod SHIFT, 6, movetoworkspace, 6 -bind = $mainMod SHIFT, 7, movetoworkspace, 7 -bind = $mainMod SHIFT, 8, movetoworkspace, 8 -bind = $mainMod SHIFT, 9, movetoworkspace, 9 -bind = $mainMod SHIFT, 0, movetoworkspace, 10 +bind = $mainMod SHIFT, 1, movetoworkspacesilent, 1 +bind = $mainMod SHIFT, 2, movetoworkspacesilent, 2 +bind = $mainMod SHIFT, 3, movetoworkspacesilent, 3 +bind = $mainMod SHIFT, 4, movetoworkspacesilent, 4 +bind = $mainMod SHIFT, 5, movetoworkspacesilent, 5 +bind = $mainMod SHIFT, 6, movetoworkspacesilent, 6 +bind = $mainMod SHIFT, 7, movetoworkspacesilent, 7 +bind = $mainMod SHIFT, 8, movetoworkspacesilent, 8 +bind = $mainMod SHIFT, 9, movetoworkspacesilent, 9 +bind = $mainMod SHIFT, 0, movetoworkspacesilent, 10 -# Example special workspace (scratchpad) -bind = $mainMod, S, togglespecialworkspace, magic -bind = $mainMod SHIFT, S, movetoworkspace, special:magic +# Browser Workspace +workspace = special:browser, on-created-empty:firefox +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 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/Workspace-Rules/ for workspace rules -# Example windowrule v1 -# windowrule = float, ^(kitty)$ - -# Example windowrule v2 -# windowrulev2 = float,class:^(kitty)$,title:^(kitty)$ +# Special Workspaces +windowrulev2 = workspace special:browser silent, class:^(firefox)$,title:^(firefox)$ +windowrulev2 = workspace special:music silent, class:^(tidal-hifi)$,title:^(tidal-hifi)$ +windowrulev2 = workspace special:games silent, class:^(steam)$,title:^(steam)$ +windowrulev2 = workspace special:games silent, class:^(prismlauncher)$,title:^(prismlauncher)$ windowrulev2 = suppressevent maximize, class:.* # You'll probably like this.