From d0291d25e02e4e10028f6b1d734c2b074877f7a0 Mon Sep 17 00:00:00 2001 From: bigDnrg <152830388+bigDnrg@users.noreply.github.com> Date: Fri, 15 Dec 2023 16:15:31 -0700 Subject: [PATCH] My Config --- config/hypr/configs/ENVariables.conf | 18 +++++++------- config/hypr/configs/Execs.conf | 6 ++--- config/hypr/configs/Keybinds.conf | 36 +++++++++++++++++----------- config/hypr/configs/Monitors.conf | 2 ++ config/hypr/configs/Settings.conf | 2 +- config/hypr/configs/WindowRules.conf | 18 ++++++++++---- config/hypr/hyprland.conf | 10 ++------ config/hypr/scripts/KeyHints.sh | 14 +++++------ 8 files changed, 59 insertions(+), 47 deletions(-) diff --git a/config/hypr/configs/ENVariables.conf b/config/hypr/configs/ENVariables.conf index 4437c64..f25b042 100644 --- a/config/hypr/configs/ENVariables.conf +++ b/config/hypr/configs/ENVariables.conf @@ -20,15 +20,15 @@ env = MOZ_ENABLE_WAYLAND,1 # NVIDIA # This is from Hyprland Wiki. As a start, WLR_NO_HARDWARE_CURSORS 1 will be activated if nvidia gpu detected -#env = WLR_NO_HARDWARE_CURSORS,1 -#env = LIBVA_DRIVER_NAME,nvidia -#env = __GLX_VENDOR_LIBRARY_NAME,nvidia -#env = GBM_BACKEND,nvidia-drm +env = WLR_NO_HARDWARE_CURSORS,1 +env = LIBVA_DRIVER_NAME,nvidia +env = __GLX_VENDOR_LIBRARY_NAME,nvidia +env = GBM_BACKEND,nvidia-drm -#env = __NV_PRIME_RENDER_OFFLOAD,1 -#env = __VK_LAYER_NV_optimus,NVIDIA_only -#env = WLR_DRM_NO_ATOMIC,1 -#env = NVD_BACKEND,direct +env = __NV_PRIME_RENDER_OFFLOAD,1 +env = __VK_LAYER_NV_optimus,NVIDIA_only +env = WLR_DRM_NO_ATOMIC,1 +env = NVD_BACKEND,direct # FOR VM and POSSIBLY NVIDIA #env = WLR_RENDERER_ALLOW_SOFTWARE,1 @@ -37,4 +37,4 @@ env = MOZ_ENABLE_WAYLAND,1 # check this post https://github.com/elFarto/nvidia-vaapi-driver#configuration #env = MOZ_DISABLE_RDD_SANDBOX,1 #env = NVD_BACKEND,direct -#env = EGL_PLATFORM,wayland \ No newline at end of file +env = EGL_PLATFORM,wayland \ No newline at end of file diff --git a/config/hypr/configs/Execs.conf b/config/hypr/configs/Execs.conf index afcc5a1..acaac43 100644 --- a/config/hypr/configs/Execs.conf +++ b/config/hypr/configs/Execs.conf @@ -33,7 +33,7 @@ exec-once = dunst & #exec-once = blueman-applet & exec-once = nm-applet --indicator & #exec-once = rog-control-center & - +#exec-once = dropbox & #clipboard manager exec-once = wl-paste --type text --watch cliphist store exec-once = wl-paste --type image --watch cliphist store @@ -48,8 +48,8 @@ exec-once = $scriptsDir/RainbowBorders.sh # exec-once = $scriptsDir/AppAutoClose.sh # sway-idle with lock only -exec-once = swayidle -w timeout 900 '$lock' +# exec-once = swayidle -w timeout 900 '$lock' # sway-idle with lock and sleep -#exec-once = swayidle -w timeout 900 '$lock' timeout 1200 'hyprctl dispatch dpms off' resume 'hyprctl dispatch dpms on' before-sleep '$lock' +exec-once = swayidle -w timeout 900 '$lock' timeout 1200 'hyprctl dispatch dpms off' resume 'hyprctl dispatch dpms on' before-sleep '$lock' # sway idle without lock #exec-once = swayidle -w timeout 900 'hyprctl dispatch dpms off' resume 'hyprctl dispatch dpms on' diff --git a/config/hypr/configs/Keybinds.conf b/config/hypr/configs/Keybinds.conf index 39068ee..df7224f 100644 --- a/config/hypr/configs/Keybinds.conf +++ b/config/hypr/configs/Keybinds.conf @@ -18,32 +18,36 @@ $volume = $scriptsDir/Volume.sh # see https://wiki.hyprland.org/Configuring/Binds/ for more # rofi launcher -bindr = $mainMod, $mainMod_L, exec, pkill rofi || rofi -show drun -modi drun,filebrowser,run -bind = $mainMod, D, exec, pkill rofi || rofi -show drun -modi drun,filebrowser,run +#bindr = $mainMod, $mainMod_L, exec, pkill rofi || rofi -show drun -modi drun,filebrowser,run +#bind = $mainMod, D, exec, pkill rofi || rofi -show drun -modi drun,filebrowser,run +bind = $mainMod CTRL, Space, exec, pkill rofi || rofi -show drun -modi drun,filebrowser,run +#bind = CTRL ALT, L, exec, $scriptsDir/LockScreen.sh +#bind = CTRL ALT, P, exec, $scriptsDir/Wlogout.sh bind = CTRL ALT, Delete, exec, hyprctl dispatch exit 0 + bind = $mainMod SHIFT, R, exec, hyprctl reload bind = $mainMod SHIFT, Q, killactive, -bind = $mainMod SHIFT, F, togglefloating, -bind = $mainMod ALT, F, exec, hyprctl dispatch workspaceopt allfloat -bind = $mainMod, F, fullscreen bind = $mainMod, Q, killactive, + bind = $mainMod, Return, exec, $term bind = $mainMod, T, exec, $files -bind = CTRL ALT, L, exec, $scriptsDir/LockScreen.sh -bind = CTRL ALT, P, exec, $scriptsDir/Wlogout.sh + bind = $mainMod CTRL, S, exec, $scriptsDir/RofiBeats.sh bind = $mainMod ALT, E, exec, $scriptsDir/RofiEmoji.sh + bind = $mainMod, H, exec, $scriptsDir/KeyHints.sh bind = $mainMod, E, exec, $scriptsDir/QuickEdit.sh bind = $mainMod, B, exec, killall -SIGUSR1 waybar # Toggle hide/show waybar bind = $mainMod SHIFT, G, exec, $scriptsDir/GameMode.sh -bind = CTRL SHIFT, W, exec, $scriptsDir/Refresh.sh -bind = CTRL ALT, W, exec, $scriptsDir/Wallpaper.sh -bind = CTRL, W, exec, $scriptsDir/WaybarStyles.sh -bind = $mainMod, W, exec, $scriptsDir/WallpaperSelect.sh -bind = ALT, W, exec, $scriptsDir/WaybarLayout.sh -bind = ALT, K, exec, $scriptsDir/SwitchKeyboardLayout.sh + +bind = $mainMod CTRL SHIFT, W, exec, $scriptsDir/Refresh.sh +bind = $mainMod CTRL ALT, W, exec, $scriptsDir/WaybarLayout.sh +bind = $mainMod CTRL, W, exec, $scriptsDir/WaybarStyles.sh +bind = $mainMod ALT, W, exec, $scriptsDir/WallpaperSelect.sh +bind = $mainMod, W, exec, $scriptsDir/Wallpaper.sh + +#bind = ALT, K, exec, $scriptsDir/SwitchKeyboardLayout.sh bind = $mainMod CTRL, D, layoutmsg, removemaster bind = $mainMod, Escape, exec, hyprctl kill @@ -53,7 +57,11 @@ bind = $mainMod, K, layoutmsg, cycleprev bind = $mainMod, M, exec, hyprctl dispatch splitratio 0.3 bind = $mainMod, P, pseudo, # dwindle bind = $mainMod CTRL, Return, layoutmsg, swapwithmaster -bind = $mainMod, Space, exec, $scriptsDir/ChangeLayout.sh +bind = $mainMod CTRL, Space, exec, $scriptsDir/ChangeLayout.sh +bind = $mainMod SHIFT, F, togglefloating, +bind = $mainMod ALT, F, exec, hyprctl dispatch workspaceopt allfloat +bind = $mainMod, F, fullscreen + bind = $mainMod ALT, V, exec, $scriptsDir/ClipManager.sh bind = $mainMod SHIFT, M, exec, hyprctl dispatch splitratio -0.3 diff --git a/config/hypr/configs/Monitors.conf b/config/hypr/configs/Monitors.conf index ac87862..a11decb 100644 --- a/config/hypr/configs/Monitors.conf +++ b/config/hypr/configs/Monitors.conf @@ -12,6 +12,8 @@ xwayland { # Monitors monitor=,preferred,auto,1 +monitor=HDMI-A-1, 2560x1440@59.951, auto, 2 +monitor=DP-1,preferred,auto,2 # NOTE: for laptop, kindly check notes in Laptops.conf regarding display # Created this inorder for the monitor display to not wake up if not intended. diff --git a/config/hypr/configs/Settings.conf b/config/hypr/configs/Settings.conf index f2705d9..ff64335 100644 --- a/config/hypr/configs/Settings.conf +++ b/config/hypr/configs/Settings.conf @@ -100,7 +100,7 @@ input { repeat_delay=300 numlock_by_default=1 left_handed=0 - follow_mouse=1 + follow_mouse=2 float_switch_override_focus=0 touchpad { diff --git a/config/hypr/configs/WindowRules.conf b/config/hypr/configs/WindowRules.conf index f92f0ce..586b5b8 100644 --- a/config/hypr/configs/WindowRules.conf +++ b/config/hypr/configs/WindowRules.conf @@ -24,21 +24,29 @@ windowrule = center,^(pavucontrol) # Make sure to delete this line if uncommen t # windowrule v2 windowrulev2 = workspace 1, class:^(thunderbird)$ +windowrulev2 = workspace 1, class:^([Tt]hunar)$ + windowrulev2 = workspace 2, class:^(firefox)$ -windowrulev2 = workspace 2, class:^(Firefox-esr)$ -windowrulev2 = workspace 2, class:^(Microsoft-edge-beta)$ -windowrulev2 = workspace 3, class:^([Tt]hunar)$ -windowrulev2 = workspace 4, class:^(com.obsproject.Studio)$ + windowrulev2 = workspace 5 silent, class:^([Ss]team)$,title:^([Ss]team)$ windowrulev2 = workspace 5 silent, class:^(lutris)$ + windowrulev2 = workspace 6, class:^(virt-manager)$ + windowrulev2 = workspace 7 silent, class:^(discord)$ windowrulev2 = workspace 7 silent, class:^(WebCord)$ windowrulev2 = workspace 9 silent, class:^(audacious)$ +#windowrulev2 = workspace 2, class:^(Firefox-esr)$ +#windowrulev2 = workspace 2, class:^(Microsoft-edge-beta)$ +#windowrulev2 = workspace 4, class:^(com.obsproject.Studio)$ + + + + #opacity (transparent) #enable as desired windowrulev2 = opacity 0.9 0.6, class:^([Rr]ofi)$ -windowrulev2 = opacity 0.9 0.7, class:^(firefox)$ +#windowrulev2 = opacity 0.9 0.7, class:^(firefox)$ windowrulev2 = opacity 0.9 0.7, class:^([Tt]hunar)$ windowrulev2 = opacity 0.8 0.6, class:^(pcmanfm-qt)$ windowrulev2 = opacity 0.9 0.7, class:^(gedit)$ diff --git a/config/hypr/hyprland.conf b/config/hypr/hyprland.conf index c09e6f7..c09e14a 100644 --- a/config/hypr/hyprland.conf +++ b/config/hypr/hyprland.conf @@ -4,14 +4,8 @@ $configs = $HOME/.config/hypr/configs source=$configs/ENVariables.conf source=$configs/Execs.conf source=$configs/Keybinds.conf -source=$configs/Laptops.conf -source=$configs/LaptopDisplay.conf +#source=$configs/Laptops.conf +#source=$configs/LaptopDisplay.conf source=$configs/Monitors.conf source=$configs/WindowRules.conf source=$configs/Settings.conf - - - - - - diff --git a/config/hypr/scripts/KeyHints.sh b/config/hypr/scripts/KeyHints.sh index 6017140..6d3c0ff 100755 --- a/config/hypr/scripts/KeyHints.sh +++ b/config/hypr/scripts/KeyHints.sh @@ -38,15 +38,15 @@ yad --width=$dynamic_width --height=$dynamic_height \ --timeout-indicator=bottom \ "ESC" "close this app" "" "=" "SUPER KEY" "(SUPER KEY)" \ " enter" "Terminal" "(kitty)" \ -" or  D" "App Launcher" "(rofi)" \ +" SPACE" "App Launcher" "(rofi)" \ " T" "Open File Manager" "(Thunar)" \ " Q or  Shift Q " "close focused app" "(kill)" \ " Alt V" "Clipboard Manager" "(cliphist)" \ -" W" "Choose wallpaper" "(swww)" \ -"CTRL ALT W" "Random wallpaper" "(swww)" \ -"CTRL W" "Choose waybar styles" "(waybar styles)" \ -"ALT W" "Choose waybar layout" "(waybar layout)" \ -"CTRL SHIFT W" "Reload Waybar and Dunst" "" \ +" ALT W" "Choose wallpaper" "(swww)" \ +" W" "Random wallpaper" "(swww)" \ +" CTRL W" "Choose waybar styles" "(waybar styles)" \ +" CTRL ALT W" "Choose waybar layout" "(waybar layout)" \ +" CTRL SHIFT W" "Reload Waybar and Dunst" "" \ " Print" "screenshot" "(grim)" \ " Shift Print" "screenshot region" "(grim + slurp)" \ " Shift S" "screenshot region" "(swappy)" \ @@ -54,7 +54,7 @@ yad --width=$dynamic_width --height=$dynamic_height \ "CTRL ALT L" "screen lock" "(swaylock)" \ "CTRL ALT Del" "Hyprland Exit" "(SAVE YOUR WORK!!!)" \ " F" "Fullscreen" "Toggles to full screen" \ -" Spacebar" "Toggle Dwindle | Master Layout" "Hyprland Layout" \ +" CTRL Spacebar" "Toggle Dwindle | Master Layout" "Hyprland Layout" \ " Shift F" "Toggle float" "single window" \ " ALT F" "Toggle all windows to float" "all windows" \ " SHIFT G" "Gamemode! All animations off" "" \