1
0
Files
dotfiles/.config/hypr/hyprland.conf
T

193 lines
5.8 KiB
Plaintext

$scr_left=DP-2
$scr_right=DP-3
$Mod = SUPER
$launcher = rofi -show drun
$record = wf-recorder -g "$(slurp)" -f ~/screenshots/mov-$(date +"%Y-%m-%d--%H-%M-%S.mp4")
$bar = waybar -c ~/.config/waybar/hypr-config
$wallpaper = swaybg -m fill -i ~/.cache/wallpaper.jpeg
$term = kitty
exec-once = $bar
exec-once = $wallpaper
exec-once = dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP
exec-once = udiskie
exec-once = /usr/lib/kdeconnectd
exec-once = ~/.config/mako/launch.sh
exec-once = swayidle -w timeout 300 'hyprctl dispatch dpms off' resume 'hyprctl dispatch dpms on'
monitor=$scr_left,3840x2160,0x0,1.5
monitor=$scr_right,1920x1080@144,2560x0,1
monitor=,preferred,auto,1
workspace=$scr_left,2
workspace=$scr_right,3
source = ~/.cache/wal/hypr-colors.conf
# https://wiki.hyprland.org/Configuring/Variables/#input
input {
kb_layout = us
kb_variant = intl
numlock_by_default = true
follow_mouse = 1
repeat_delay = 300
repeat_rate = 30
}
# https://wiki.hyprland.org/Configuring/Variables/#general
general {
gaps_in = 10
gaps_out = 20
border_size = 2
col.active_border = $color4 $color0 $color4 45deg
col.inactive_border = $color0
no_border_on_floating = true
no_cursor_warps = false
layout = dwindle
}
# https://wiki.hyprland.org/Configuring/Variables/#decoration
decoration {
rounding = 10
blur = yes
blur_size = 3
blur_passes = 4
blur_new_optimizations = true
drop_shadow = false
}
# https://wiki.hyprland.org/Configuring/Animations/
animations {
enabled = yes
bezier = myBezier, 0.05, 0.9, 0.1, 1.05
bezier = Boing, 0.68, -0.6, 0.32, 1.6
bezier = OutEase, 0.16, 1, 0.3, 1
bezier = FadeCurve, 0, 1, 0, 1
animation = global, 1, 7, default
animation = windows, 1, 3, FadeCurve, slide
animation = border, 0, 1, default
animation = workspaces, 1, 15, FadeCurve, fade
}
https://wiki.hyprland.org/Configuring/Dwindle-Layout/
dwindle {
pseudotile = yes
preserve_split = yes
force_split = 2
}
misc {
focus_on_activate = true
disable_hyprland_logo = true
disable_splash_rendering = true
}
# Window rules and bindings
windowrule = idleinhibit focus, mpv
windowrule = idleinhibit fullscreen, firefox
windowrule = float, imv
windowrule = workspace 3 silent, discord
windowrule = opacity 0.9 0.9, discord
windowrule = workspace 4 silent, Steam
windowrule = float, Rofi
windowrule = center, Rofi
windowrule = nomaxsize, winecfg.exe
wsbind=1,$scr_left
wsbind=2,$scr_left
wsbind=3,$scr_right
wsbind=4,$scr_left
wsbind=7,$scr_right
wsbind=9,$scr_left
wsbind=10,$scr_right
# Application Bindings
bind = $Mod, Return, exec, $term
bind = $Mod, A, exec, $term -e cava
bind = $Mod SHIFT, A, exec, $term -e pulsemixer
bind = $Mod, D, exec, $launcher
bind = $Mod SHIFT, D, exec, discord --enable-gpu-rasterization --ozone-platform-hint=auto
bind = $Mod CTRL, D, exec, dolphin
bind = $Mod SHIFT, E, exec, steam
bind = $Mod, E, exec, $term -e ranger
bind = $Mod, I, exec, $term -e btop
bind = $Mod, M, exec, pgrep spotifyd || spotifyd
bind = $Mod, M, exec, $term -e spt
bind = $Mod, P, exec, pass clip -r
bind = $Mod SHIFT, T, exec, teams
bind = $Mod SHIFT, W, exec, firefox
# Spotify control
bind = $Mod ALT, L, exec, ~/.scripts/mpris.sh next
bind = $Mod ALT, H, exec, ~/.scripts/mpris.sh previous
bind = $Mod ALT, Space, exec, ~/.scripts/mpris.sh play-pause
# Control bindings
bind = $Mod, V, togglesplit,
bind = $Mod SHIFT, V, togglegroup,
bind = $Mod, F, fullscreen,
bind = $Mod SHIFT, F, fullscreen, 1
bind = $Mod, Space, togglefloating,
bind = $Mod, Q, killactive,
bind = $Mod SHIFT, Backspace, exec, swaylock -f -C ~/.cache/wal/swaylock
bind = $Mod SHIFT CTRL, Backspace, exit
bind = $Mod, O, exec, ~/.scripts/wallpaper; $bar
bind = $Mod SHIFT, O, exec, ~/.scripts/wallpaper-upload
bind = $Mod, B, exec, killall -9 waybar; $bar
bind = $Mod SHIFT, X, exec, sleep 1 && hyprctl dispatch dpms off && sleep 1 && hyprctl dispatch dpms on
bind = , Print, exec, grim -g "$(slurp)" - | wl-copy
bind = CTRL, Print, exec, grim -g "$(slurp)" ~/screenshot.png && notify-send -i ~/screenshot.png "Screenshot saved"
bindr = CTRL SHIFT, Print, exec, killall -s SIGINT wf-recorder || $record
bind = SHIFT, Print, exec, grim -g "$(slurp)" - | swappy -f -
bind = $Mod, h, movefocus, l
bind = $Mod, l, movefocus, r
bind = $Mod, k, movefocus, u
bind = $Mod, j, movefocus, d
bind = $Mod SHIFT, h, movewindow, l
bind = $Mod SHIFT, l, movewindow, r
bind = $Mod SHIFT, k, movewindow, u
bind = $Mod SHIFT, j, movewindow, d
binde = $Mod CTRL, h, resizeactive, -20 0
binde = $Mod CTRL, l, resizeactive, 20 0
binde = $Mod CTRL, k, resizeactive, 0 -20
binde = $Mod CTRL, j, resizeactive, 0 20
bind = $Mod CTRL SHIFT, h, movecurrentworkspacetomonitor, $scr_left
bind = $Mod CTRL SHIFT, l, movecurrentworkspacetomonitor, $scr_right
bind = $Mod, 1, workspace, 1
bind = $Mod, 2, workspace, 2
bind = $Mod, 3, workspace, 3
bind = $Mod, 4, workspace, 4
bind = $Mod, 5, workspace, 5
bind = $Mod, 6, workspace, 6
bind = $Mod, 7, workspace, 7
bind = $Mod, 8, workspace, 8
bind = $Mod, 9, workspace, 9
bind = $Mod, 0, workspace, 10
bind = $Mod SHIFT, 1, movetoworkspacesilent, 1
bind = $Mod SHIFT, 2, movetoworkspacesilent, 2
bind = $Mod SHIFT, 3, movetoworkspacesilent, 3
bind = $Mod SHIFT, 4, movetoworkspacesilent, 4
bind = $Mod SHIFT, 5, movetoworkspacesilent, 5
bind = $Mod SHIFT, 6, movetoworkspacesilent, 6
bind = $Mod SHIFT, 7, movetoworkspacesilent, 7
bind = $Mod SHIFT, 8, movetoworkspacesilent, 8
bind = $Mod SHIFT, 9, movetoworkspacesilent, 9
bind = $Mod SHIFT, 0, movetoworkspacesilent, 10
bind = $Mod, minus, togglespecialworkspace
bind = $Mod SHIFT, minus, movetoworkspace, special
bindm = $Mod, mouse:272, movewindow #LMB
bindm = $Mod, mouse:273, resizewindow #RMB