Dotfiles/wayland/.config/hypr/hyprland.conf

239 lines
6.5 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

################################
# Modifier
################################
$mod = SUPER
################################
# Core behavior
################################
general {
layout = master
gaps_in = 0
gaps_out = 0
border_size = 0
no_border_on_floating = true
col.inactive_border = rgb(444444)
col.active_border = rgb(005577)
}
master {
new_status = master
mfact = 0.55
orientation = left
slave_count_for_center_master = 0
inherit_fullscreen = true
}
# name, resolution, position, scale
monitor = DP-4, highrr, 0x0, 1
monitor = HDMI-A-5, preferred, auto-right, 1
monitor = DP-3, highres, auto-left, 1
monitor = , preferred, auto, 1
# Force all non-floating windows to spawn 'maximized' (Monocle mode)
# 'fullscreenstate 1' maximizes the window (keeping the bar visible)
# 'fullscreenstate 0' for the client keeps it behaving normally internally
windowrulev2 = fullscreenstate 1 0, class:^.*$, floating:0
################################
# Input
################################
input {
kb_layout = us,ru,us
kb_variant = colemak,,
follow_mouse = 1
accel_profile = flat
}
################################
# Visuals completely disabled
################################
animations {
enabled = false
}
decoration {
rounding = 0
}
misc {
disable_hyprland_logo = true
disable_splash_rendering = true
force_default_wallpaper = 0
focus_on_activate = true
new_window_takes_over_fullscreen = 2
}
################################
# Workspaces
# This is extremely stupid
################################
workspace = 1, default:true, monitor:DP4
workspace = 2, monitor:DP4
workspace = 3, monitor:DP4
workspace = 4, monitor:DP4
workspace = 5, monitor:DP4
workspace = 6, monitor:DP4
workspace = 7, monitor:DP4
workspace = 8, monitor:DP4
workspace = 9, monitor:DP4
workspace = 11, monitor:DP3
workspace = 12, monitor:DP3
workspace = 13, monitor:DP3
workspace = 14, monitor:DP3
workspace = 15, monitor:DP3
workspace = 16, monitor:DP3
workspace = 17, monitor:DP3
workspace = 18, monitor:DP3
workspace = 19, monitor:DP3
workspace = 21, monitor:HDMI-A-5
workspace = 22, monitor:HDMI-A-5
workspace = 23, monitor:HDMI-A-5
workspace = 24, monitor:HDMI-A-5
workspace = 25, monitor:HDMI-A-5
workspace = 26, monitor:HDMI-A-5
workspace = 27, monitor:HDMI-A-5
workspace = 28, monitor:HDMI-A-5
workspace = 29, monitor:HDMI-A-5
################################
# Environment (fonts & menu colors)
################################
env = XCURSOR_THEME,Chicago95_Emerald
env = XCURSOR_SIZE,22
exec-once = hyprctl setcursor Chicago95_Emerald 22
env = QT_QPA_PLATFORMTHEME,qt5ct
env = QT_QPA_PLATFORM,wayland
################################
# Keybindings core
################################
bind = $mod SHIFT, RETURN, exec, foot
bind = $mod, P, exec, ~/.local/bin/bemenu
bind = $mod SHIFT, C, killactive
bind = $mod, F, fullscreen
bind = $mod, T, togglefloating
bind = $mod SHIFT, Q, exit
################################
# Focus movement
################################
# Toggle Monocle (Maximize) for the active window
bind = $mod, M, fullscreen, 1
# Cycle focus (dwm style)
# cycling automatically brings the focused window to the top of the "monocle" stack
bind = $mod, J, layoutmsg, cyclenext
bind = $mod, K, layoutmsg, cycleprev
bind = $mod, Return, layoutmsg, swapwithmaster
binde = $mod, H, splitratio, -0.05
binde = $mod, L, splitratio, +0.05
bindm = $mod, mouse:272, movewindow
bindm = $mod, mouse:273, resizewindow
bind = $mod, B, exec, pkill waybar || waybar
################################
# Window movement
################################
bind = $mod SHIFT, H, movewindow, l
bind = $mod SHIFT, L, movewindow, r
bind = $mod SHIFT, J, movewindow, d
bind = $mod SHIFT, K, movewindow, u
################################
# Workspaces
################################
bind = $mod, 1, exec, ~/.local/bin/hypr-ws workspace 1
bind = $mod, 2, exec, ~/.local/bin/hypr-ws workspace 2
bind = $mod, 3, exec, ~/.local/bin/hypr-ws workspace 3
bind = $mod, 4, exec, ~/.local/bin/hypr-ws workspace 4
bind = $mod, 5, exec, ~/.local/bin/hypr-ws workspace 5
bind = $mod, 6, exec, ~/.local/bin/hypr-ws workspace 6
bind = $mod, 7, exec, ~/.local/bin/hypr-ws workspace 7
bind = $mod, 8, exec, ~/.local/bin/hypr-ws workspace 8
bind = $mod, 9, exec, ~/.local/bin/hypr-ws workspace 9
bind = $mod SHIFT, 1, exec, ~/.local/bin/hypr-ws movetoworkspacesilent 1
bind = $mod SHIFT, 2, exec, ~/.local/bin/hypr-ws movetoworkspacesilent 2
bind = $mod SHIFT, 3, exec, ~/.local/bin/hypr-ws movetoworkspacesilent 3
bind = $mod SHIFT, 4, exec, ~/.local/bin/hypr-ws movetoworkspacesilent 4
bind = $mod SHIFT, 5, exec, ~/.local/bin/hypr-ws movetoworkspacesilent 5
bind = $mod SHIFT, 6, exec, ~/.local/bin/hypr-ws movetoworkspacesilent 6
bind = $mod SHIFT, 7, exec, ~/.local/bin/hypr-ws movetoworkspacesilent 7
bind = $mod SHIFT, 8, exec, ~/.local/bin/hypr-ws movetoworkspacesilent 8
bind = $mod SHIFT, 9, exec, ~/.local/bin/hypr-ws movetoworkspacesilent 9
# Mod + Shift + Comma (Throw to Left Monitor, Stay Here)
bind = $mod SHIFT, comma, movewindow, mon:l
bind = $mod SHIFT, comma, focusmonitor, +0
# Mod + Shift + Period (Throw to Right Monitor, Stay Here)
bind = $mod SHIFT, period, movewindow, mon:r
bind = $mod SHIFT, period, focusmonitor, +0
################################
# Media / brightness / power
################################
bind = , XF86AudioRaiseVolume, exec, dunstMixer -i 5
bind = , XF86AudioLowerVolume, exec, dunstMixer -d 5
bind = , XF86AudioMute, exec, dunstMixer -t
bind = , XF86MonBrightnessUp, exec, dunstBright set 5%+
bind = , XF86MonBrightnessDown, exec, dunstBright set 5%-
bind = , XF86Sleep, exec, systemctl suspend
################################
# Keyboard layout switching
################################
bind = CTRL, 1, exec, hyprctl switchxkblayout all 0
bind = CTRL, 2, exec, hyprctl switchxkblayout all 1
bind = CTRL, 3, exec, hyprctl switchxkblayout all 2
################################
# Screenshots
################################
bind = , Print, exec, grim ~/Pictures/shot-$(date +%F-%T).png
bind = SHIFT, Print, exec, grim -g "$(slurp)" ~/Pictures/shot-$(date +%F-%T).png
################################
# Autostart
################################
exec-once = ~/.local/bin/hypr-version.sh
#exec-once = ~/.local/bin/wallpaper-tile.sh
exec-once = swaybg --color 3f5469
exec-once = ~/.local/bin/import-gsettings
# Notifications
exec-once = mako
# Status bar
exec-once = waybar
# Night light
exec-once = gammastep -t 6500:3200 -l 42.2407:-83.6133
# Brightness baseline
exec-once = brightnessctl set 75%