diff options
author | Blaster4385 <[email protected]> | 2025-07-03 13:16:46 +0530 |
---|---|---|
committer | Blaster4385 <[email protected]> | 2025-07-03 13:16:46 +0530 |
commit | 6f06eabb2300790247dd055223cbe9bb9354a305 (patch) | |
tree | ff5d41d2d0d757ff234f1c82a0cd16295af11c15 | |
parent | 61a4571c81acd012dba37a5b19247f799663bb79 (diff) |
feat: added hyprland config
-rw-r--r-- | .dotter/global.toml | 3 | ||||
-rw-r--r-- | .dotter/local.toml | 1 | ||||
-rw-r--r-- | .dotter/pre_deploy.sh | 2 | ||||
-rw-r--r-- | hypr/animations.conf | 10 | ||||
-rw-r--r-- | hypr/autostart.conf | 7 | ||||
-rw-r--r-- | hypr/debug.conf | 3 | ||||
-rw-r--r-- | hypr/decorations.conf | 21 | ||||
-rw-r--r-- | hypr/env.conf | 12 | ||||
-rwxr-xr-x | hypr/gamemode.sh | 14 | ||||
-rw-r--r-- | hypr/hypridle.conf | 16 | ||||
-rw-r--r-- | hypr/hyprland.conf | 44 | ||||
-rw-r--r-- | hypr/input.conf | 12 | ||||
-rw-r--r-- | hypr/keybinds.conf | 65 | ||||
-rw-r--r-- | hypr/misc.conf | 6 | ||||
-rw-r--r-- | hypr/monitors.conf | 5 | ||||
-rw-r--r-- | hypr/plugins.conf | 40 | ||||
-rw-r--r-- | hypr/windows.conf | 22 | ||||
-rw-r--r-- | hypr/workspaces.conf | 10 |
18 files changed, 292 insertions, 1 deletions
diff --git a/.dotter/global.toml b/.dotter/global.toml index 24ae7c1..0b47b62 100644 --- a/.dotter/global.toml +++ b/.dotter/global.toml @@ -16,6 +16,9 @@ depends = [] "gtk-3.0" = "~/.config/gtk-3.0" "themes" = "~/.themes" +[hyprland.files] +"hypr" = "~/.config/hypr" + [i3.files] "i3" = "~/.config/i3" diff --git a/.dotter/local.toml b/.dotter/local.toml index 1c71c39..0bcd0dc 100644 --- a/.dotter/local.toml +++ b/.dotter/local.toml @@ -5,6 +5,7 @@ packages = [ "conky", "dunst", "gtk", + "hyprland" "i3", "mpd", "neomutt", diff --git a/.dotter/pre_deploy.sh b/.dotter/pre_deploy.sh index 5309618..5588020 100644 --- a/.dotter/pre_deploy.sh +++ b/.dotter/pre_deploy.sh @@ -1,3 +1,3 @@ #!/bin/sh -yay -S alacritty conky dunst i3-wm i3lock mpd neomutt polybar rofi gtk-engine-murrine ttf-jetbrains-mono ttf-jetbrains-mono-nerd noto-fonts ttf-font-awesome neovim +yay -S alacritty conky dunst i3-wm i3lock hyprland hypridle hyprlock wpaperd mpd neomutt polybar rofi gtk-engine-murrine ttf-jetbrains-mono ttf-jetbrains-mono-nerd noto-fonts ttf-font-awesome neovim diff --git a/hypr/animations.conf b/hypr/animations.conf new file mode 100644 index 0000000..02d0f87 --- /dev/null +++ b/hypr/animations.conf @@ -0,0 +1,10 @@ +animations { + enabled = true + bezier = myBezier, 0.05, 0.9, 0.1, 1.05 + animation = windows, 1, 7, myBezier + animation = windowsOut, 1, 7, default, popin 80% + animation = border, 0, 0, default + animation = borderangle, 0, 0, default + animation = fade, 0, 4, default + animation = workspaces, 1, 6, default +} diff --git a/hypr/autostart.conf b/hypr/autostart.conf new file mode 100644 index 0000000..4551a32 --- /dev/null +++ b/hypr/autostart.conf @@ -0,0 +1,7 @@ +exec-once = nm-applet & +# exec-once = dunst & +exec-once= wpaperd -d +# exec-once = waybar & hyprpaper & firefox +exec = ~/.config/waybar/launch.sh +exec-once = hypridle +exec-once = hyprpm reload -n diff --git a/hypr/debug.conf b/hypr/debug.conf new file mode 100644 index 0000000..d54213f --- /dev/null +++ b/hypr/debug.conf @@ -0,0 +1,3 @@ +debug { + full_cm_proto = true +} diff --git a/hypr/decorations.conf b/hypr/decorations.conf new file mode 100644 index 0000000..c5d2727 --- /dev/null +++ b/hypr/decorations.conf @@ -0,0 +1,21 @@ +decoration { + rounding = 16 + active_opacity = 0.85 + inactive_opacity = 0.84 + + shadow { + enabled = false + range = 4 + render_power = 3 + color = rgba(1a1a1aee) + } + + blur { + enabled = true + popups = true + size = 10 + passes = 2 + brightness = 1.5 + vibrancy = 0.1696 + } +} diff --git a/hypr/env.conf b/hypr/env.conf new file mode 100644 index 0000000..551c88d --- /dev/null +++ b/hypr/env.conf @@ -0,0 +1,12 @@ +env = XCURSOR_SIZE,24 +env = HYPRCURSOR_SIZE,24 +env = GDK_SCALE,1.25 +env = GDK_BACKEND,wayland,x11,* +env = QT_QPA_PLATFORM,wayland;xcb +env = NVD_BACKEND,direct +env = LIBVA_DRIVER_NAME,nvidia +env = __GLX_VENDOR_LIBRARY_NAME,nvidia +env = GBM_BACKEND,nvidia-drm +env = __GL_GSYNC_ALLOWED,1 +env = ELECTRON_OZONE_PLATFORM_HINT,auto +env = QT_AUTO_SCREEN_SCALE_FACTOR,1 diff --git a/hypr/gamemode.sh b/hypr/gamemode.sh new file mode 100755 index 0000000..9bf4ebc --- /dev/null +++ b/hypr/gamemode.sh @@ -0,0 +1,14 @@ +#!/usr/bin/env sh +HYPRGAMEMODE=$(hyprctl getoption animations:enabled | awk 'NR==1{print $2}') +if [ "$HYPRGAMEMODE" = 1 ] ; then + hyprctl --batch "\ + keyword animations:enabled 0;\ + keyword decoration:shadow:enabled 0;\ + keyword decoration:blur:enabled 0;\ + keyword general:gaps_in 0;\ + keyword general:gaps_out 0;\ + keyword general:border_size 1;\ + keyword decoration:rounding 0" + exit +fi +hyprctl reload diff --git a/hypr/hypridle.conf b/hypr/hypridle.conf new file mode 100644 index 0000000..a1a6e97 --- /dev/null +++ b/hypr/hypridle.conf @@ -0,0 +1,16 @@ +general { + lock_cmd = pidof hyprlock || hyprlock +} + +# Turn off screen +listener { + timeout = 300 + on-timeout = hyprctl dispatch dpms off + on-resume = hyprctl dispatch dpms on +} + +# Suspend the system +# listener { +# timeout = 600 +# on-timeout = systemctl suspend +# } diff --git a/hypr/hyprland.conf b/hypr/hyprland.conf new file mode 100644 index 0000000..c1134aa --- /dev/null +++ b/hypr/hyprland.conf @@ -0,0 +1,44 @@ +source = ~/.config/hypr/animations.conf +source = ~/.config/hypr/autostart.conf +source = ~/.config/hypr/debug.conf +source = ~/.config/hypr/decorations.conf +source = ~/.config/hypr/env.conf +source = ~/.config/hypr/input.conf +source = ~/.config/hypr/keybinds.conf +source = ~/.config/hypr/misc.conf +source = ~/.config/hypr/monitors.conf +source = ~/.config/hypr/plugins.conf +source = ~/.config/hypr/windows.conf +source = ~/.config/hypr/workspaces.conf + +$bg = rgb(282828) +$fg = rgb(ebdbb2) +$fg1 = rgb(a89984) + +general { + gaps_in = 15 + gaps_out = 30 + border_size = 2 + col.active_border=$fg + col.inactive_border=$fg1 + resize_on_border = false + allow_tearing = false + layout = hy3 +} + +render { + explicit_sync = 1 +} + +master { + new_status = slave + orientation = center +} + +xwayland { + force_zero_scaling = true +} + + experimental { + xx_color_management_v4 = true + } diff --git a/hypr/input.conf b/hypr/input.conf new file mode 100644 index 0000000..634ce14 --- /dev/null +++ b/hypr/input.conf @@ -0,0 +1,12 @@ +input { + kb_layout = us + follow_mouse = 1 + + touchpad { + natural_scroll = false + } +} + +gestures { + workspace_swipe = false +} diff --git a/hypr/keybinds.conf b/hypr/keybinds.conf new file mode 100644 index 0000000..ec62deb --- /dev/null +++ b/hypr/keybinds.conf @@ -0,0 +1,65 @@ +$mainMod = SUPER +$terminal = kitty +$fileManager = thunar +$menu = rofi -font "JetBrainsMono Nerd Font 10" -show drun + +bind = $mainMod, Return, exec, $terminal +bind = $mainMod, Q, hy3:killactive, +bind = $mainMod, M, exit, +bind = $mainMod, V, togglefloating, +bind = $mainMod, D, exec, $menu +bind = $mainMod, F, fullscreen +bind = $mainMod SHIFT, R, exec, hyprctl reload + +bind = $mainMod, W, hy3:changegroup, toggletab + +bind = $mainMod, left, hy3:movefocus, l +bind = $mainMod, right, hy3:movefocus, r +bind = $mainMod, up, hy3:movefocus, u +bind = $mainMod, down, hy3:movefocus, d + +bind = $mainMod SHIFT, left, hy3:movefocus, l, visible +bind = $mainMod SHIFT, right, hy3:movefocus, r, visible +bind = $mainMod SHIFT, up, hy3:movefocus, u, visible +bind = $mainMod SHIFT, down, hy3:movefocus, d, visible + +bind = $mainMod, 1, workspace, 1 +bind = $mainMod, 2, workspace, 2 +bind = $mainMod, 3, workspace, 3 +bind = $mainMod, 4, workspace, 4 +bind = $mainMod, 5, workspace, 5 +bind = $mainMod, 6, workspace, 6 +bind = $mainMod, 7, workspace, 7 +bind = $mainMod, 8, workspace, 8 +bind = $mainMod, 9, workspace, 9 +bind = $mainMod, 0, workspace, 10 + +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, S, togglespecialworkspace, magic +bind = $mainMod SHIFT, S, movetoworkspace, special:magic + +bind = $mainMod, mouse_down, workspace, e+1 +bind = $mainMod, mouse_up, workspace, e-1 + +bind = , Print, exec, grim -g "$(slurp -d)" - | wl-copy + +bind = ,XF86AudioRaiseVolume, exec, pactl set-sink-volume @DEFAULT_SINK@ +1% +bind = ,XF86AudioLowerVolume, exec, pactl set-sink-volume @DEFAULT_SINK@ -1% +bind = ,XF86AudioMute, exec, pactl set-sink-mute @DEFAULT_SINK@ toggle +bind = ,XF86AudioMicMute, exec, pactl set-source-mute @DEFAULT_SOURCE@ + +bindit = $mainMod, SUPER_L, exec, pkill -SIGUSR1 waybar +bindirt = $mainMod, SUPER_L, exec, pkill -SIGUSR1 waybar +bind = $mainMod, B, exec, pkill -SIGUSR1 waybar + +bind = $mainMod, F1, exec, ~/.config/hypr/gamemode.sh diff --git a/hypr/misc.conf b/hypr/misc.conf new file mode 100644 index 0000000..0dd8fec --- /dev/null +++ b/hypr/misc.conf @@ -0,0 +1,6 @@ +misc { + force_default_wallpaper = 0 + disable_hyprland_logo = true + vrr = 2 + middle_click_paste = false +} diff --git a/hypr/monitors.conf b/hypr/monitors.conf new file mode 100644 index 0000000..8adcd1d --- /dev/null +++ b/hypr/monitors.conf @@ -0,0 +1,5 @@ +# Generated by nwg-displays on 2025-06-07 at 12:04:51. Do not edit manually. + +monitor=HDMI-A-1,[email protected],0x1296,1.25,bitdepth,10 +monitor=DP-1,[email protected],2752x1296,1.25 +monitor=DP-2,[email protected],327x144,1.25 diff --git a/hypr/plugins.conf b/hypr/plugins.conf new file mode 100644 index 0000000..4309471 --- /dev/null +++ b/hypr/plugins.conf @@ -0,0 +1,40 @@ +plugin { + hy3 { + $bg = rgba(282828d9) + $fg = rgb(ebdbb2) + $fg1 = rgb(a89984) + + node_collapse_policy = 0 + tab_first_window = false + group_inset = 5 + + tabs { + from_top = false + height = 25 + radius = 10 + + text_font = JetBrainsMono Nerd Font + text_height = 12 + + col.active.border = $fg + col.active.text = $fg + col.active = $bg + + col.focused.border = $fg + col.focused.text = $fg + col.focused = $bg + + col.urgent.border = $fg + col.urgent.text = $fg + col.urgent = $bg + + col.inactive.border = $fg1 + col.inactive.text = $fg + col.inactive = $bg + } + + autotile { + enable = true + } + } + } diff --git a/hypr/windows.conf b/hypr/windows.conf new file mode 100644 index 0000000..e19e5eb --- /dev/null +++ b/hypr/windows.conf @@ -0,0 +1,22 @@ +windowrule = suppressevent maximize, class:^class:.* +windowrule = idleinhibit fullscreen, class:.* +windowrule = noanim, class:^(gamescope)$ +windowrule = noblur, class:^(gamescope)$ +windowrule = noborder, class:^(gamescope)$ +windowrule = nodim, class:^(gamescope)$ +windowrule = noshadow, class:^(gamescope)$ +windowrule = norounding, class:^(gamescope)$ +windowrule = opaque, class:^(steam_app_default)$ +windowrule = noanim, class:^(steam_app_default)$ +windowrule = noblur, class:^(steam_app_default)$ +windowrule = noborder, class:^(steam_app_default)$ +windowrule = nodim, class:^(steam_app_default)$ +windowrule = noshadow, class:^(gamescope)$ +windowrule = norounding, class:^(gamescope)$ +windowrule = opaque, class:^(gamescope)$ +layerrule = blur, notifications +layerrule = ignorezero, notifications +layerrule = blur, rofi +layerrule = ignorezero, rofi +windowrulev2 = plugin:chromakey,fullscreen:0 +chromakey_background = 40,40,40 diff --git a/hypr/workspaces.conf b/hypr/workspaces.conf new file mode 100644 index 0000000..dd2f7e6 --- /dev/null +++ b/hypr/workspaces.conf @@ -0,0 +1,10 @@ +workspace=1,monitor:HDMI-A-1,default:true +workspace=2,monitor:HDMI-A-1 +workspace=3,monitor:HDMI-A-1 +workspace=4,monitor:HDMI-A-1 +workspace=5,monitor:HDMI-A-1 +workspace=6,monitor:DP-2,default:true +workspace=7,monitor:DP-2 +workspace=8,monitor:DP-2 +workspace=9,monitor:DP-1,default:true +workspace=10,monitor:DP-1 |