407 lines
13 KiB
Text
407 lines
13 KiB
Text
# ┌───────────────────────────────────────────────────┐
|
|
# │ ██████╗ ███████╗████████╗███████╗██████╗ ███████╗ │
|
|
# │ ██╔══██╗██╔════╝╚══██╔══╝██╔════╝██╔══██╗██╔════╝ │
|
|
# │ ██████╔╝█████╗ ██║ █████╗ ██████╔╝███████╗ │
|
|
# │ ██╔═══╝ ██╔══╝ ██║ ██╔══╝ ██╔══██╗╚════██║ │
|
|
# │ ██║ ███████╗ ██║ ███████╗██║ ██║███████║ │
|
|
# │ ╚═╝ ╚══════╝ ╚═╝ ╚══════╝╚═╝ ╚═╝╚══════╝ │
|
|
# ├───────────────────────────────────────────────────┤
|
|
# │ depressing and totally messy hyprland config or │
|
|
# ├───────────────────────────────────────────────────┤
|
|
# │ How windows are the only well │
|
|
# │ managed aspect of my life. │
|
|
# │---------------------------------------------------│
|
|
# │ https://git.peterdominguez.art/peter/.dotfiles │
|
|
# └───────────────────────────────────────────────────┘
|
|
#
|
|
#
|
|
|
|
# Programs
|
|
|
|
$terminal = kitty
|
|
$menu = rofi -show drun
|
|
|
|
# Some default env vars
|
|
|
|
env = XCURSOR_SIZE,24
|
|
env = QT_QPA_PLATFORMTHEME,qt5ct # change to qt6ct if you have that
|
|
|
|
# Outputs
|
|
|
|
monitor=DP-1,1920x1080@239.760,0x0,1
|
|
monitor=DP-2,1920x1080@239.760,1920x0,1
|
|
|
|
# Input devices
|
|
|
|
input {
|
|
kb_layout = us(altgr-intl)
|
|
kb_variant = ,nodeadkeys
|
|
kb_options = caps:escape
|
|
|
|
follow_mouse = 1
|
|
|
|
sensitivity = 0 # -1.0 - 1.0, 0 means no modification.
|
|
}
|
|
|
|
device {
|
|
name = usb-hid-keyboard-mouse
|
|
sensitivity = -0.3 # -1.0 - 1.0, 0 means no modification.
|
|
}
|
|
|
|
# Executables
|
|
|
|
exec-once = dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP
|
|
exec-once = udiskie -t &
|
|
exec-once = /usr/lib/polkit-kde-authentication-agent-1
|
|
exec-once = sleep 1; blueman-applet
|
|
exec-once = hyprpaper
|
|
exec-once = swaync
|
|
exec-once = [workspace special:music silent] sleep 1; supersonic-desktop
|
|
exec-once = waybar
|
|
exec-once = hypridle
|
|
exec-once = hyprctl setcursor Dracula-cursors 24
|
|
exec-once = [workspace 1 silent] firefox
|
|
exec-once = libreoffice --writer --norestore
|
|
exec-once = gimp
|
|
exec-once = virt-manager
|
|
exec-once = [workspace 2 silent] kitty --session ~/.config/kitty/session --listen-on=unix:@mykitty
|
|
exec-once = [workspace 2 silent] sleep 1; kitty newsboat
|
|
exec-once = [workspace 6 silent] kitty btop
|
|
exec-once = [workspace 6 silent] sleep 1; kitty
|
|
exec-once = [workspace 6 silent] sleep 2;kitty zsh -c "source ~/.zshrc;nnn -deUxH"
|
|
exec-once = steam -silent
|
|
exec-once = sleep 1; heroic --ozone-platform=wayland
|
|
exec-once = [workspace special:password silent] keepassxc
|
|
exec-once = [workspace special:scratchpad silent] signal-desktop --ozone-platform-hint=auto --enable-features=UseOzonePlatform,WaylandWindowDecorations
|
|
exec-once = nextcloud
|
|
exec-once = killall nextcloud
|
|
exec-once = gammastep -m wayland -O 6500K -g 1.1.0
|
|
exec-once = [workspace special:email silent] sleep 1; tutanota-desktop --ozone-platform-hint=auto
|
|
exec-once = discord --enable-features=UseOzonePlatform --ozone-platform=wayland --start-minimized
|
|
exec-once = jellyfin-mpv-shim
|
|
|
|
# Variables
|
|
|
|
general {
|
|
gaps_in = 5
|
|
gaps_out = 10
|
|
border_size = 2
|
|
layout = master
|
|
allow_tearing = false
|
|
}
|
|
|
|
decoration {
|
|
|
|
rounding = 8
|
|
|
|
blur {
|
|
enabled = true
|
|
size = 3
|
|
passes = 1
|
|
new_optimizations = true
|
|
noise = 0.06
|
|
special = true
|
|
contrast = 0.8
|
|
popups = true
|
|
}
|
|
|
|
}
|
|
|
|
# Animations
|
|
|
|
animations {
|
|
enabled = yes
|
|
|
|
bezier = myBezier, 0, 0.55, 0.45, 1
|
|
|
|
animation = windows, 1, 4, myBezier
|
|
animation = windowsIn, 1, 7, default, popin 80%
|
|
animation = windowsOut, 1, 7, default, popin 80%
|
|
animation = border, 1, 20, default
|
|
animation = borderangle, 1, 20, default
|
|
animation = fade, 1, 7, default
|
|
animation = workspaces, 1, 6, default, slide
|
|
}
|
|
|
|
# Layout
|
|
|
|
master {
|
|
new_status = slave
|
|
}
|
|
|
|
# Cursor
|
|
|
|
cursor {
|
|
hide_on_key_press = true
|
|
}
|
|
|
|
# Miscellaneous
|
|
|
|
misc {
|
|
force_default_wallpaper = 0 # Set to 0 to disable the anime mascot wallpapers
|
|
vrr = 2
|
|
}
|
|
|
|
# Window rules
|
|
|
|
windowrule = workspace 3 silent,class:libreoffice-writer
|
|
windowrule = workspace 4 silent,class:gimp
|
|
windowrule = workspace 5 silent,class:virt-manager
|
|
windowrule = workspace special:email silent,class:tutanota-desktop
|
|
windowrule = workspace special:music silent,class:supersonic-desktop
|
|
windowrule = size 300 500,title:Friends List
|
|
windowrule = center,title:Steam
|
|
windowrule = float,class:steam
|
|
windowrule = size 1600 900, title:Steam
|
|
windowrule = center,class:heroic
|
|
windowrule = float,class:heroic
|
|
windowrule = size 1600 900, class:heroic
|
|
windowrule = center,class:discord
|
|
windowrule = float,class:discord
|
|
windowrule = size 1600 900, class:discord
|
|
windowrule = float,class:nmnet
|
|
windowrule = size 856 656, class:nmnet
|
|
windowrule = float,class:com.nextcloud.desktopclient.nextcloud
|
|
windowrule = move 1450 34,class:com.nextcloud.desktopclient.nextcloud
|
|
windowrule = float,class:openrgb
|
|
windowrule = size 1600 900,class:openrgb
|
|
windowrule = center,class:openrgb
|
|
windowrule = float,class:org.pulseaudio.pavucontrol
|
|
windowrule = move 1070 38,class:org.pulseaudio.pavucontrol
|
|
windowrule = float,title:Save File*
|
|
windowrule = size 1000 600,title:Save File*
|
|
windowrule = float,title:Open Files
|
|
windowrule = size 1000 600,title:Open Files
|
|
windowrule = float,title:Signal
|
|
windowrule = center,title:Signal
|
|
windowrule = size 1280 720,title:Signal
|
|
windowrule = float,class:org.keepassxc.KeePassXC
|
|
windowrule = size 800 600,class:org.keepassxc.KeePassXC
|
|
windowrule = center,class:org.keepassxc.KeePassXC
|
|
windowrule = float,class:mpv
|
|
windowrule = monitor DP-1,class:mpv
|
|
windowrule = size 600 400,class:mpv
|
|
windowrule = move 1310 670,class:mpv
|
|
windowrule = float,class:org.kde.polkit-kde-authentication-agent-1
|
|
windowrule = float,class:alacarte
|
|
windowrule = float,class:piper
|
|
windowrule = float,class:nwg-look
|
|
windowrule = float,class:zenity
|
|
windowrule = float,class:galculator
|
|
windowrule = move 1592 740,class:galculator
|
|
windowrule = float,class:org.rncbc.qsynth
|
|
windowrule = float,class:qt5ct
|
|
windowrule = float,class:kvantummanager
|
|
windowrule = float,class:nm-connection-editor
|
|
windowrule = float,class:udiskie
|
|
windowrule = float,class:gsimplecal
|
|
windowrule = move 834 43,class:gsimplecal
|
|
windowrule = float,class:imv
|
|
windowrule = center,class:imv
|
|
windowrule = float,class:org.pwmt.zathura
|
|
windowrule = center,class:org.pwmt.zathura
|
|
windowrule = idleinhibit fullscreen, fullscreen:1
|
|
windowrule = float,class:xdg-desktop-portal-gtk
|
|
windowrule = float,class:blueman-manager
|
|
windowrule = center,class:blueman-manager
|
|
windowrule = move 1310 40,class:blueman-manager
|
|
windowrule = size 600 900,class:blueman-manager
|
|
|
|
# Keywords
|
|
|
|
$mainMod = SUPER
|
|
|
|
# Bindings
|
|
|
|
bind = $mainMod, Return, exec, $terminal
|
|
bind = $mainMod, Q, killactive,
|
|
bind = $mainMod, E, exit,
|
|
bind = $mainMod, V, togglefloating,
|
|
bind = $mainMod, P, exec, $menu
|
|
bind = $mainMod, F, fullscreen
|
|
bind = $mainMod, C, exec, galculator
|
|
bind = $mainMod CTRL, T, exec, steam
|
|
bind = $mainMod CTRL, Y, exec, heroic
|
|
bind = $mainMod, N, exec, exec swaync-client -t -sw
|
|
bind = $mainMod CTRL, U, exec, [workspace special:scratchpad silent] signal-desktop --ozone-platform-hint=auto --enable-features=UseOzonePlatform,WaylandWindowDecorations
|
|
bind = $mainMod CTRL, P, exec, [workspace special:password silent] keepassxc
|
|
bind = $mainMod CTRL, M, exec, [workspace special:music silent] sleep 1; supersonic-desktop
|
|
|
|
# Resize windows main keybind
|
|
bind=ALT,R,submap,resize
|
|
|
|
# Start a submap resize
|
|
submap=resize
|
|
|
|
# Set repeatable binds for resizing the active window
|
|
binde=,right,resizeactive,10 0
|
|
binde=,left,resizeactive,-10 0
|
|
binde=,up,resizeactive,0 -10
|
|
binde=,down,resizeactive,0 10
|
|
binde=,l,resizeactive,10 0
|
|
binde=,h,resizeactive,-10 0
|
|
binde=,k,resizeactive,0 -10
|
|
binde=,j,resizeactive,0 10
|
|
|
|
# Use reset to go back to the global submap
|
|
bind=,escape,submap,reset
|
|
|
|
# Reset the submap
|
|
submap=reset
|
|
|
|
# Switch between floating and tiled windows
|
|
|
|
bind = ALT, TAB, cyclenext, floating
|
|
bind = ALT, SPACE, focuscurrentorlast
|
|
|
|
# Media keys
|
|
|
|
bind = ,XF86AudioPlay,exec,playerctl play-pause
|
|
bind = ,XF86AudioPause,exec,playerctl pause
|
|
bind = ,XF86AudioStop,exec,playerctl stop
|
|
bind = ,XF86AudioNext,exec,playerctl next
|
|
bind = ,XF86AudioPrev,exec,playerctl previous
|
|
bind = ,XF86AudioRaiseVolume,exec,wpctl set-volume @DEFAULT_AUDIO_SINK@ 1%+
|
|
bind = ,XF86AudioLowerVolume,exec,wpctl set-volume @DEFAULT_AUDIO_SINK@ 1%-
|
|
bind = ,XF86AudioMute,exec,pactl set-sink-mute @DEFAULT_SINK@ toggle
|
|
|
|
|
|
# Move focus with Mod + arrow keys
|
|
|
|
bind = $mainMod, left, movefocus, l
|
|
bind = $mainMod, right, movefocus, r
|
|
bind = $mainMod, up, movefocus, u
|
|
bind = $mainMod, down, movefocus, d
|
|
|
|
# Move windows with Mod + arrow keys
|
|
|
|
bind = $mainMod CTRL, left, movewindow, l
|
|
bind = $mainMod CTRL, right, movewindow, r
|
|
bind = $mainMod CTRL, up, movewindow, u
|
|
bind = $mainMod CTRL, down, movewindow, d
|
|
|
|
# VI keybindings like God intended
|
|
|
|
bind = $mainMod, h, movefocus, l
|
|
bind = $mainMod, l, movefocus, r
|
|
bind = $mainMod, k, movefocus, u
|
|
bind = $mainMod, j, movefocus, d
|
|
|
|
# Move windows with Mod + vi keys
|
|
|
|
bind = $mainMod CTRL, h, movewindow, l
|
|
bind = $mainMod CTRL, l, movewindow, r
|
|
bind = $mainMod CTRL, k, movewindow, u
|
|
bind = $mainMod CTRL, j, movewindow, d
|
|
|
|
# Switch workspaces with Mod + [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
|
|
bind = $mainMod, minus, workspace, 11
|
|
bind = $mainMod, equal, workspace, 12
|
|
|
|
# Move active window to a workspace with Mod + CTRL + [0-9,-,=]
|
|
|
|
bind = $mainMod CTRL, 1, movetoworkspace, 1
|
|
bind = $mainMod CTRL, 2, movetoworkspace, 2
|
|
bind = $mainMod CTRL, 3, movetoworkspace, 3
|
|
bind = $mainMod CTRL, 4, movetoworkspace, 4
|
|
bind = $mainMod CTRL, 5, movetoworkspace, 5
|
|
bind = $mainMod CTRL, 6, movetoworkspace, 6
|
|
bind = $mainMod CTRL, 7, movetoworkspace, 7
|
|
bind = $mainMod CTRL, 8, movetoworkspace, 8
|
|
bind = $mainMod CTRL, 9, movetoworkspace, 9
|
|
bind = $mainMod CTRL, 0, movetoworkspace, 10
|
|
bind = $mainMod CTRL, minus, movetoworkspace, 11
|
|
bind = $mainMod CTRL, equal, movetoworkspace, 12
|
|
|
|
# Workspace monitor assignment
|
|
|
|
workspace = 1, monitor:DP-1, default:true
|
|
workspace = 2, monitor:DP-1
|
|
workspace = 3, monitor:DP-1
|
|
workspace = 4, monitor:DP-1
|
|
workspace = 5, monitor:DP-1
|
|
workspace = 6, monitor:DP-2, default:true
|
|
workspace = 7, monitor:DP-2
|
|
workspace = 8, monitor:DP-2
|
|
workspace = 9, monitor:DP-2
|
|
workspace = 10, monitor:DP-2
|
|
workspace = 11, monitor:DP-2
|
|
workspace = 12, monitor:DP-2
|
|
|
|
# Special workspaces
|
|
|
|
bind = $mainMod, U, togglespecialworkspace, scratchpad
|
|
bind = $mainMod SHIFT, S, movetoworkspace, special:scratchpad
|
|
|
|
bind = $mainMod, M, togglespecialworkspace, music
|
|
bind = $mainMod, O, togglespecialworkspace, password
|
|
bind = $mainMod, I, togglespecialworkspace, email
|
|
|
|
# Scroll through existing workspaces with Mod + scroll
|
|
|
|
bind = $mainMod, mouse_down, workspace, e+1
|
|
bind = $mainMod, mouse_up, workspace, e-1
|
|
|
|
# Scroll through existing workspaces with Mod + vi keys
|
|
|
|
bind = $mainMod ALT, l, workspace, e+1
|
|
bind = $mainMod ALT, h, workspace, e-1
|
|
|
|
# Scroll through existing workspaces with Mod + arrow keys
|
|
|
|
bind = $mainMod ALT, right, workspace, e+1
|
|
bind = $mainMod ALT, left, workspace, e-1
|
|
|
|
# Move/resize windows with Mod + LMB/RMB and dragging
|
|
|
|
bindm = $mainMod, mouse:272, movewindow
|
|
bindm = $mainMod, mouse:273, resizewindow
|
|
|
|
# Screenshot
|
|
|
|
bind = ,Print,exec,grim -g "$(slurp)" - | swappy -f -
|
|
|
|
# Environment management
|
|
|
|
bind = $mainMod Shift, w, exec, killall waybar || exec waybar
|
|
bind = $mainMod Shift, h, exec, killall hypridle || exec hypridle
|
|
|
|
# Dracula theme
|
|
|
|
general {
|
|
col.active_border = rgb(6272A4) rgb(bd93f9) 90deg
|
|
col.inactive_border = rgba(44475aaa)
|
|
col.nogroup_border = rgba(282a36dd)
|
|
col.nogroup_border_active = rgb(bd93f9) rgb(44475a) 90deg
|
|
no_border_on_floating = false
|
|
border_size = 2
|
|
|
|
}
|
|
|
|
decoration:shadow {
|
|
color = rgba(1E202966)
|
|
enabled = true
|
|
range = 60
|
|
offset = 1 2
|
|
render_power = 3
|
|
scale = 0.97
|
|
}
|
|
|
|
group {
|
|
groupbar {
|
|
col.active = rgb(bd93f9) rgb(44475a) 90deg
|
|
col.inactive = rgba(282a36dd)
|
|
}
|
|
}
|
|
windowrule = bordercolor rgb(ff5555),xwayland:1 # check if window is xwayland
|