2023-04-08 06:21:25 -04:00
|
|
|
# Hyprland Config
|
2022-09-21 00:38:53 -04:00
|
|
|
|
2023-10-25 00:50:28 -04:00
|
|
|
source=~/.config/hypr/conf.d/vars.conf.example # Import examples file first so that the variables have default values
|
2023-04-08 05:59:29 -04:00
|
|
|
source=~/.config/hypr/conf.d/vars.conf
|
|
|
|
|
2022-09-21 00:38:53 -04:00
|
|
|
monitor=,preferred,auto,1
|
|
|
|
|
|
|
|
input {
|
|
|
|
kb_file=
|
2024-11-17 01:56:09 -05:00
|
|
|
kb_layout=us,us(3l)
|
2022-09-21 00:38:53 -04:00
|
|
|
kb_variant=
|
|
|
|
kb_model=
|
2024-11-17 01:56:09 -05:00
|
|
|
kb_options=grp:ralt_rshift_toggle
|
2022-09-21 00:38:53 -04:00
|
|
|
kb_rules=
|
|
|
|
|
|
|
|
follow_mouse=1
|
|
|
|
|
|
|
|
touchpad {
|
|
|
|
natural_scroll=no
|
|
|
|
}
|
|
|
|
|
|
|
|
sensitivity=0 # -1.0 - 1.0, 0 means no modification.
|
2023-04-08 04:50:47 -04:00
|
|
|
|
|
|
|
repeat_rate=50
|
2024-11-17 01:56:33 -05:00
|
|
|
repeat_delay=250
|
2022-09-21 00:38:53 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
general {
|
|
|
|
gaps_in=5
|
2023-04-08 04:50:47 -04:00
|
|
|
gaps_out=10
|
2022-09-21 00:38:53 -04:00
|
|
|
border_size=2
|
|
|
|
col.active_border=0x66ee1111
|
|
|
|
col.inactive_border=0x66333333
|
|
|
|
|
2023-04-08 04:50:47 -04:00
|
|
|
layout=dwindle
|
|
|
|
|
2024-11-17 01:56:53 -05:00
|
|
|
#apply_sens_to_raw=0 # whether to apply the sensitivity to raw input (e.g. used by games where you aim using your mouse)
|
2022-09-21 00:38:53 -04:00
|
|
|
|
2023-04-08 04:50:47 -04:00
|
|
|
#damage_tracking=full # leave it on full unless you hate your GPU and want to make it suffer
|
2022-09-21 00:38:53 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
decoration {
|
2023-04-08 04:50:47 -04:00
|
|
|
rounding=2
|
2023-09-21 04:16:23 -04:00
|
|
|
blur {
|
|
|
|
enabled=true
|
|
|
|
size=8
|
|
|
|
}
|
2022-09-21 00:38:53 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
animations {
|
|
|
|
enabled=1
|
2023-04-08 06:21:39 -04:00
|
|
|
animation=windows,1,0.5,default
|
|
|
|
animation=border,1,0.5,default
|
|
|
|
animation=fade,1,0.5,default
|
|
|
|
animation=workspaces,1,0.5,default
|
2024-11-17 01:57:10 -05:00
|
|
|
animation=layers,1,0.5,default
|
2022-09-21 00:38:53 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
dwindle {
|
|
|
|
pseudotile=0 # enable pseudotiling on dwindle
|
2023-04-08 04:50:47 -04:00
|
|
|
preserve_split=1
|
|
|
|
force_split=2
|
2022-09-21 00:38:53 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
gestures {
|
|
|
|
workspace_swipe=no
|
|
|
|
}
|
|
|
|
|
2023-04-08 04:50:47 -04:00
|
|
|
misc {
|
2023-09-21 04:16:53 -04:00
|
|
|
enable_swallow=true
|
|
|
|
swallow_regex=^(alacritty|kitty|footclient)$
|
|
|
|
disable_hyprland_logo=true
|
|
|
|
vrr=true
|
2023-10-05 01:40:37 -04:00
|
|
|
#mouse_move_enables_dpms=true
|
|
|
|
#key_press_enables_dpms=true
|
2023-04-08 04:50:47 -04:00
|
|
|
}
|
|
|
|
|
2022-09-21 00:38:53 -04:00
|
|
|
# example window rules
|
|
|
|
# for windows named/classed as abc and xyz
|
|
|
|
#windowrule=move 69 420,abc
|
|
|
|
#windowrule=size 420 69,abc
|
|
|
|
#windowrule=tile,xyz
|
|
|
|
#windowrule=float,abc
|
|
|
|
#windowrule=pseudo,abc
|
|
|
|
#windowrule=monitor 0,xyz
|
|
|
|
|
2023-09-24 04:33:59 -04:00
|
|
|
$lockCMD = swaylock -e -F -f -i $lockBG
|
2022-09-21 00:38:53 -04:00
|
|
|
|
|
|
|
# ------------------- BINDS ----------------------- #
|
|
|
|
# some nice mouse binds
|
|
|
|
bindm=SUPER,mouse:272,movewindow
|
|
|
|
bindm=SUPER,mouse:273,resizewindow
|
|
|
|
|
2023-04-11 04:47:13 -04:00
|
|
|
# Launch programs
|
2022-09-21 00:38:53 -04:00
|
|
|
bind=SUPER,Return,exec,footclient
|
2023-04-11 04:47:13 -04:00
|
|
|
bind=SUPERCTRL,Q,exec,hyprctl kill
|
2023-04-08 04:50:47 -04:00
|
|
|
bind=SUPERSHIFT,c,exec,pkill waybar && waybar -c ~/.config/waybar/hyprland
|
2023-04-11 04:47:13 -04:00
|
|
|
bind=SUPERSHIFT,r,exec,hyprctl reload
|
2023-09-24 04:33:59 -04:00
|
|
|
bind=CTRLALT,l,exec,$lockCMD
|
2022-09-21 00:38:53 -04:00
|
|
|
bind=SUPER,D,exec,wofi --show drun --allow-images -G -i --define=drun-print_command=true | sed -e 's/%[A-Za-z0-9]*/ /g' | xargs hyprctl dispatch exec
|
2023-04-08 04:50:47 -04:00
|
|
|
bind=,Print,exec,grim -g "$(slurp)" - | swappy -f -
|
2023-05-17 15:53:38 -04:00
|
|
|
bind=SUPERSHIFT,E,exec,zenity --question --text='Do you wish to exit Hyprland?' --default-cancel && hyprctl dispatch exit
|
2023-04-11 04:47:13 -04:00
|
|
|
|
|
|
|
# Window properties
|
|
|
|
bind=SUPERSHIFT,P,pseudo,
|
|
|
|
bind=SUPER,P,pin,
|
2023-04-08 04:50:47 -04:00
|
|
|
bind=SUPER,f,fullscreen,0
|
2023-04-11 04:47:13 -04:00
|
|
|
bind=SUPER,m,fullscreen,1
|
2023-09-21 04:18:11 -04:00
|
|
|
bind=SUPER,w,togglegroup
|
|
|
|
bind=SUPERCTRL,w,moveoutofgroup
|
2024-11-17 01:56:53 -05:00
|
|
|
#bind=SUPERALT,f,fakefullscreen,1
|
2023-04-11 04:47:13 -04:00
|
|
|
bind=SUPERSHIFT,Space,togglefloating,
|
|
|
|
bind=SUPERSHIFT,Q,killactive,
|
2023-04-08 04:50:47 -04:00
|
|
|
|
|
|
|
# Volume controls
|
|
|
|
bindle=,XF86AudioRaiseVolume, exec, wpctl set-volume -l 2.0 @DEFAULT_AUDIO_SINK@ 5%+
|
|
|
|
bindle=,XF86AudioLowerVolume, exec, wpctl set-volume -l 2.0 @DEFAULT_AUDIO_SINK@ 5%-
|
2023-09-21 04:18:21 -04:00
|
|
|
bindle=,XF86AudioMute, exec, wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle
|
2023-04-08 04:50:47 -04:00
|
|
|
|
|
|
|
# Brightness
|
2024-01-24 13:27:20 -05:00
|
|
|
bind=,XF86MonBrightnessUp,exec,brightnessctl s +5%
|
|
|
|
bind=,XF86MonBrightnessDown,exec,brightnessctl s 5%-
|
2023-04-08 04:50:47 -04:00
|
|
|
|
|
|
|
# Media controls
|
|
|
|
bindle=,XF86AudioPlay, exec, ~/.config/i3/toggleplay.sh
|
|
|
|
bindle=,XF86AudioNext, exec, playerctl next
|
|
|
|
bindle=,XF86AudioPrev, exec, playerctl previous
|
2022-09-21 00:38:53 -04:00
|
|
|
|
2023-09-24 04:36:24 -04:00
|
|
|
# Notification controls
|
|
|
|
bind=SUPERALT,Space,exec,makoctl dismiss
|
|
|
|
bind=SUPERALT,Shift,exec,makoctl dismiss -a
|
|
|
|
bind=SUPERALT,Tab,exec,makoctl restore
|
|
|
|
bind=SUPERALT,Period,exec,makoctl menu wofi -dmenu
|
|
|
|
|
2023-04-08 04:50:47 -04:00
|
|
|
# Focus
|
2022-09-21 00:38:53 -04:00
|
|
|
bind=SUPER,left,movefocus,l
|
|
|
|
bind=SUPER,right,movefocus,r
|
|
|
|
bind=SUPER,up,movefocus,u
|
|
|
|
bind=SUPER,down,movefocus,d
|
|
|
|
|
2023-04-08 04:50:47 -04:00
|
|
|
# Switch workspaces
|
2022-09-21 00:38:53 -04:00
|
|
|
bind=SUPER,1,workspace,1
|
|
|
|
bind=SUPER,2,workspace,2
|
|
|
|
bind=SUPER,3,workspace,3
|
|
|
|
bind=SUPER,4,workspace,4
|
|
|
|
bind=SUPER,5,workspace,5
|
|
|
|
bind=SUPER,6,workspace,6
|
|
|
|
bind=SUPER,7,workspace,7
|
|
|
|
bind=SUPER,8,workspace,8
|
|
|
|
bind=SUPER,9,workspace,9
|
|
|
|
bind=SUPER,0,workspace,10
|
|
|
|
|
2023-04-08 04:50:47 -04:00
|
|
|
bind=SUPER,mouse_down,workspace,e+1
|
|
|
|
bind=SUPER,mouse_up,workspace,e-1
|
|
|
|
|
|
|
|
# Move window to workspace
|
2022-09-21 00:38:53 -04:00
|
|
|
bind=SUPERSHIFT,1,movetoworkspace,1
|
|
|
|
bind=SUPERSHIFT,2,movetoworkspace,2
|
|
|
|
bind=SUPERSHIFT,3,movetoworkspace,3
|
|
|
|
bind=SUPERSHIFT,4,movetoworkspace,4
|
|
|
|
bind=SUPERSHIFT,5,movetoworkspace,5
|
|
|
|
bind=SUPERSHIFT,6,movetoworkspace,6
|
|
|
|
bind=SUPERSHIFT,7,movetoworkspace,7
|
|
|
|
bind=SUPERSHIFT,8,movetoworkspace,8
|
|
|
|
bind=SUPERSHIFT,9,movetoworkspace,9
|
2023-04-08 04:50:47 -04:00
|
|
|
bind=SUPERSHIFT,0,movetoworkspace,10
|
|
|
|
|
|
|
|
# Move window in workspace
|
|
|
|
bind=SUPERSHIFT,Left,movewindow,l
|
|
|
|
bind=SUPERSHIFT,Right,movewindow,r
|
|
|
|
bind=SUPERSHIFT,Up,movewindow,u
|
|
|
|
bind=SUPERSHIFT,Down,movewindow,d
|
2022-09-21 00:38:53 -04:00
|
|
|
|
2023-04-08 21:14:05 -04:00
|
|
|
# Move workspace to monitor
|
|
|
|
bind=SUPERCTRL,Left,movecurrentworkspacetomonitor,l
|
|
|
|
bind=SUPERCTRL,Right,movecurrentworkspacetomonitor,r
|
|
|
|
bind=SUPERCTRL,Up,movecurrentworkspacetomonitor,u
|
|
|
|
bind=SUPERCTRL,Down,movecurrentworkspacetomonitor,d
|
2022-09-21 00:38:53 -04:00
|
|
|
|
2023-09-21 04:18:11 -04:00
|
|
|
# Move window into group
|
|
|
|
bind=SUPERALT,Left,moveintogroup,l
|
|
|
|
bind=SUPERALT,Right,moveintogroup,r
|
|
|
|
bind=SUPERALT,Up,moveintogroup,u
|
|
|
|
bind=SUPERALT,Down,moveintogroup,d
|
|
|
|
|
2022-09-21 00:38:53 -04:00
|
|
|
# ----------------------- STARTUP -------------------- #
|
2023-04-08 05:59:29 -04:00
|
|
|
exec-once = dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP
|
|
|
|
exec-once = systemctl --user import-environment WAYLAND_DISPLAY XDG_CURRENT_DESKTOP
|
|
|
|
exec-once = foot -s
|
|
|
|
exec-once = mako
|
2023-04-21 23:31:23 -04:00
|
|
|
exec-once = kanshi
|
2023-04-08 05:59:29 -04:00
|
|
|
exec-once = waybar -c ~/.config/waybar/hyprland
|
2023-04-08 04:50:47 -04:00
|
|
|
exec-once = wl-paste --type text --watch cliphist store #Stores only text data
|
|
|
|
exec-once = wl-paste --type image --watch cliphist store #Stores only image data
|
2023-04-08 05:14:56 -04:00
|
|
|
exec-once = lxqt-policykit-agent
|
2023-04-08 05:41:12 -04:00
|
|
|
exec-once = hyprpaper
|
2023-10-05 01:52:27 -04:00
|
|
|
exec-once = swayidle -w timeout $idleLockTime '$lockCMD' timeout $idleScreenTime 'hyprctl dispatch dpms off' resume 'hyprctl dispatch dpms on' timeout $idleScreenTimeLocked "/bin/bash -c 'pgrep -x swaylock && hyprctl dispatch dpms off'" resume 'hyprctl dispatch dpms on' timeout $suspendTime '$suspendCMD' resume 'hyprctl dispatch dpms on' before-sleep "/bin/bash -c '$lockCMD && playerctl -a pause'"
|
2022-09-21 00:38:53 -04:00
|
|
|
|
2023-10-05 00:37:08 -04:00
|
|
|
exec = import-gsettings
|
|
|
|
|
2023-04-08 05:59:29 -04:00
|
|
|
source = ~/.config/hypr/conf.d/override.conf
|