mine-hyprdots/hypr/hyprland.conf

280 lines
7.2 KiB
Text
Raw Normal View History

2024-09-18 01:54:11 +05:30
2025-02-23 00:38:43 +05:30
monitor=DP-1,1920x1080@144,auto,auto
exec-once = hyprctl setcursor "Banana" 40
exec = gsettings set org.gnome.desktop.interface cursor-theme "Banana"
exec = gsettings set org.gnome.desktop.interface cursor-size 40
2024-09-18 01:54:11 +05:30
exec-once = wl-paste --type text --watch cliphist store
exec-once = wl-paste --type image --watch cliphist store
exec-once = hyprpaper & waybar
exec-once = hypridle
2025-03-15 23:33:21 +05:30
#windowrulev2 = suppressevent maximize, class:.*
2024-09-18 01:54:11 +05:30
2025-03-15 23:33:21 +05:30
#windowrule = float, kitty
#windowrule = size 1000 500, kitty
# windowrulev2 = workspace 2, class:kitty
windowrulev2 = workspace 1, class:zen-alpha
windowrulev2 = workspace 3, class:Code
windowrulev2 = workspace 1, class:obsidian
windowrulev2 = workspace 9, class:Docker Desktop
2024-09-18 01:54:11 +05:30
2025-02-23 00:38:43 +05:30
exec-once = [workspace 1] zen-browser
exec-once = [workspace 2] kitty
2024-09-18 01:54:11 +05:30
# Set programs that I use
$terminal = kitty
$fileManager = yazi
$menu = rofi -show run
2025-02-23 00:38:43 +05:30
$browser = zen-browser
2024-09-18 01:54:11 +05:30
$taskManager = btop
$colorpicker = hyprpicker
2025-02-23 00:38:43 +05:30
env = XCURSOR_SIZE,8
env = HYPRCURSOR_SIZE,8
2024-09-18 01:54:11 +05:30
general {
2025-02-23 00:38:43 +05:30
gaps_in = 3
gaps_out = 6
2024-09-18 01:54:11 +05:30
2025-02-23 00:38:43 +05:30
border_size = 0
2024-09-18 01:54:11 +05:30
2025-02-23 00:38:43 +05:30
col.active_border = rgb(8839ef) rgb(179299) 45deg
col.inactive_border = rgb(1e66f5) rgb(8839ef) 90deg
2024-09-18 01:54:11 +05:30
resize_on_border = true
extend_border_grab_area = 30
hover_icon_on_border = true
resize_corner = 5
allow_tearing = false
2024-10-02 09:22:53 +05:30
2025-02-23 00:38:43 +05:30
layout = dwindle
2024-09-18 01:54:11 +05:30
}
decoration {
2025-02-23 00:38:43 +05:30
dim_special = 0.2
2025-03-15 23:33:21 +05:30
rounding = 6
2024-09-18 01:54:11 +05:30
2025-02-23 00:38:43 +05:30
active_opacity = 1
2025-03-15 23:33:21 +05:30
inactive_opacity = 0.75
2024-09-18 01:54:11 +05:30
2025-02-23 00:38:43 +05:30
shadow {
# enabled = false
# range = 4
# render_power = 3
}
2024-09-18 01:54:11 +05:30
2025-02-23 00:38:43 +05:30
blur {
enabled = true
size = 3
passes = 1
special = true
vibrancy = 0.1696
}
2024-09-18 01:54:11 +05:30
}
2025-03-18 17:01:57 +05:30
# animations {
# enabled = true
# bezier = myBezier, 0.05, 0.9, 0.1, 1.05
# animation = windows, 1, 4, default, slide top
# animation = windowsOut, 1, 2, default, slide bottom
# animation = border, 1, 10, default
# animation = borderangle, 1, 8, default
# animation = fade, 1, 7, default
# animation = workspaces, 1, 3, default
2025-03-18 17:37:46 +05:30
# animation = layers, 1, 3, smoothOut, slide
2025-03-18 17:01:57 +05:30
# }
2024-09-18 01:54:11 +05:30
animations {
enabled = true
2025-03-18 17:01:57 +05:30
bezier = overshot, 0.05, 0.9, 0.1, 1.1
bezier = smoothOut, 0.36, 0, 0.66, -0.56
bezier = smoothIn, 0.25, 1, 0.5, 1
animation = windows, 1, 5, overshot, slide
animation = windowsOut, 1, 4, smoothOut, slide
animation = windowsMove, 1, 5, smoothIn, slide
2024-09-18 01:54:11 +05:30
animation = border, 1, 10, default
animation = borderangle, 1, 8, default
2025-03-18 17:01:57 +05:30
2024-09-18 01:54:11 +05:30
animation = fade, 1, 7, default
2025-03-18 17:01:57 +05:30
animation = workspaces, 1, 4, overshot, slidefade 15%
animation = specialWorkspace, 1, 4, smoothIn, slidefade 15%
2025-03-18 17:37:46 +05:30
# animation = layers, 1, 5, overshot, slidefade 40%
2024-09-18 01:54:11 +05:30
}
dwindle {
pseudotile = true
preserve_split = true
}
master {
new_status = inherit
new_on_top = true
new_on_active = true
smart_resizing = true
}
input {
kb_layout = us
kb_variant =
kb_model =
2025-02-23 00:38:43 +05:30
kb_options =
2024-09-18 01:54:11 +05:30
kb_rules =
follow_mouse = 1
2025-02-23 00:38:43 +05:30
sensitivity = -0.1
2024-09-18 01:54:11 +05:30
touchpad {
disable_while_typing = true
natural_scroll = true
}
force_no_accel = 0
}
gestures {
workspace_swipe = true
}
device {
name = epic-mouse-v1
sensitivity = -0.5
}
binds {
workspace_back_and_forth = true
allow_workspace_cycles = true
}
xwayland {
force_zero_scaling = true
}
misc {
force_default_wallpaper = -1 # Set to 0 or 1 to disable the anime mascot wallpapers
disable_hyprland_logo = true # If true disables the random hyprland logo / anime girl background. :(
}
$mainMod = SUPER
bind = $mainMod, T, exec, $terminal
bind = $mainMod ,B, exec, $browser
bind = $mainMod, W, killactive
bind = $mainMod, V, togglefloating
bind = $mainMod, F, fullscreen, 1
2025-02-23 00:38:43 +05:30
bind = $mainMod, G, fullscreen, 0
bind = $mainMod, O, exec, obsidian
bind = $mainMod_Shift, T, exec, [float; size 1000 500] $terminal
$key = tab
$mod = super
2024-09-18 01:54:11 +05:30
#Yazi File Manager
bind = $mainMod, E, exec, $terminal $fileManager
#Rofi Powermenu
2024-10-08 10:04:45 +05:30
bind = $mainMod, P, exec, ~/.config/rofi/powermenu/powermenu.sh
2024-09-18 01:54:11 +05:30
#Rofi Launcher
2024-10-08 10:04:45 +05:30
bind = $mainMod, Space, exec, ~/.config/rofi/launcher/launcher.sh
2024-09-18 01:54:11 +05:30
2025-02-23 00:38:43 +05:30
2024-09-20 15:37:08 +05:30
#Grim & Slurp for Screenshot
bind = $mainMod_Shift, S, exec, slurp | grim -g - /tmp/photo && wl-copy < /tmp/photo && notify-send 'Screenshot Copied to Clipboard'
bind = Alt+Shift, S, exec, grim -g "$(slurp)" $HOME/Downloads/Screenshot/$(date +'%Y%m%d%H%M%S').png && notify-send 'Screenshot Saved'
2025-02-23 00:38:43 +05:30
bind = Alt+Shift, W, exec, pkill -9 waybar || waybar &
2024-10-21 10:28:08 +05:30
2024-09-18 01:54:11 +05:30
#Task Manager
bind = Ctrl_Shift, Tab, exec, $terminal $taskManager
#ColorPicker
bind = $mainMod, C, exec, $colorpicker -a
#Clipboard for Copy / Paste
2025-02-23 00:38:43 +05:30
bind = $mainMod, M, exec, ~/.config/rofi/clipboard/launcher.sh
2024-09-18 01:54:11 +05:30
#Audio Control
2024-10-08 10:04:45 +05:30
#binde = , XF86AudioRaiseVolume, exec, wpctl set-volume -l 1.5 @DEFAULT_AUDIO_SINK@ 2%+
#bindl = , XF86AudioLowerVolume, exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 2%-
2024-09-18 01:54:11 +05:30
#Volume Control
binde = , XF86AudioRaiseVolume, exec, ~/.local/bin/volume.sh up
binde = , XF86AudioLowerVolume, exec, ~/.local/bin/volume.sh down
binde = , XF86AudioMute, exec, ~/.local/bin/volume.sh mute
#Player Control
bindl = , XF86AudioPlay, exec, playerctl play-pause
bindl = , XF86AudioPrev, exec, playerctl previous
bindl = , XF86AudioNext, exec, playerctl next
#Brightness Control
2025-03-17 18:27:46 +05:30
binde = , XF86MonBrightnessDown, exec, ~/.local/bin/backlight.sh down
binde = , XF86MonBrightnessUp, exec, ~/.local/bin/backlight.sh up
# binde = , XF86MonBrightnessDown, exec, brightnessctl set 2%-
# binde = , XF86MonBrightnessUp, exec, brightnessctl set +2%
2024-09-18 01:54:11 +05:30
2025-03-18 15:05:35 +05:30
bind = $mainMod_Shift, l, exec, hyprlock
2024-09-18 01:54:11 +05:30
bind = Alt, Tab , cyclenext
bind = $mainMod, Tab, bringactivetotop,
bind = Alt Shift, Tab, cyclenext, prev
2025-02-23 00:38:43 +05:30
# bind = $mainMod, Tab, workspace, e-2
2024-10-08 10:04:45 +05:30
bind = $mainMod, A, exec,bash ~/.config/rofi/wifi/wifi.sh
2025-02-23 00:38:43 +05:30
bind = $mainMod, S, exec,bash ~/.config/rofi/search/search.sh
2024-09-18 01:54:11 +05:30
# Move focus with mainMod + arrow keys
2025-03-18 15:05:35 +05:30
bind = $mainMod, h, movefocus, l
bind = $mainMod, l, movefocus, r
bind = $mainMod, k, movefocus, u
bind = $mainMod, j, movefocus, d
2024-09-18 01:54:11 +05:30
# Switch workspaces with mainMod + [0-9]
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
# 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
#bindl = , CapsLock, exec, ~/.local/bin/lockctl/key.sh
# Example special workspace (scratchpad)
#bind = $mainMod, S, togglespecialworkspace, magic
#bind = $mainMod SHIFT, S, movetoworkspace, special:magic
# Scroll through existing workspaces with mainMod + scroll
bind = $mainMod, mouse_down, workspace, e+1
bind = $mainMod, mouse_up, workspace, e-1
# Move/resize windows with mainMod + LMB/RMB and dragging
bindm = $mainMod, mouse:272, movewindow
bindm = $mainMod, mouse:273, resizewindow