refactor: waybar, hypr config

This commit is contained in:
2026-03-11 15:55:48 +03:00
parent c048717831
commit b54b5c823f
13 changed files with 128 additions and 97 deletions

View File

@@ -1,8 +1,5 @@
################
### MONITORS ###
################
source = ~/.config/hypr/monitors.conf
source = ~/.config/hypr/permissions.conf
###################
### MY PROGRAMS ###
@@ -45,6 +42,7 @@ exec-once = $startDelay && ~/.config/hypr/scripts/sounds.sh
exec-once = $startDelay && ~/.config/hypr/scripts/random_wallpaper.sh
exec-once = $startDelay && ~/.config/hypr/scripts/autofreezer.sh
exec-once = .cargo/bin/mpd-discord-rpc
exec-once = .venv312/bin/python3 .venv312/bin/jellyfin-rpc --ini-path $HOME/.config/jellyfin-rpc/jellyfin_rpc.ini
exec-shutdown = play -v 0.7 $HOME/Templates/Sounds/teleport.mp3
@@ -55,10 +53,6 @@ exec-shutdown = play -v 0.7 $HOME/Templates/Sounds/teleport.mp3
env = XCURSOR_SIZE,24
env = HYPRCURSOR_SIZE,24
###################
### PERMISSIONS ###
###################
#####################
### LOOK AND FEEL ###
#####################
@@ -169,6 +163,8 @@ workspace = 6, monitor:HDMI-A-1
workspace = 7, monitor:HDMI-A-1
workspace = 8, monitor:HDMI-A-1
workspace = 9, monitor:HDMI-A-1
workspace = special:magic
workspace = special:dungeon
dwindle {
pseudotile = true # Master switch for pseudotiling. Enabling is bound to mainMod + P in the keybinds section below
@@ -198,6 +194,7 @@ misc {
size_limits_tiled = true
on_focus_under_fullscreen = 0
exit_window_retains_fullscreen = false
close_special_on_empty = false
}
##############
@@ -215,8 +212,6 @@ cursor {
input {
kb_layout = us,ru
kb_options = grp:caps_toggle,grp_led:caps
repeat_rate = 25
repeat_delay = 200
follow_mouse = 2
float_switch_override_focus = 0
@@ -228,6 +223,8 @@ input {
disable_while_typing = true
middle_button_emulation = true
}
special_fallthrough = true
}
gestures {
@@ -259,13 +256,14 @@ $mainMod = SUPER
binds {
allow_workspace_cycles = true
hide_special_on_workspace_change = true
}
# Exit hyprland
bind = $mainMod ALT, Q, exit,
# Shutdown
bind = $mainMod SHIFT, delete, exec, shutdown now
bind = $mainMod SHIFT, delete, exec, sudo poweroff -f
# Menu dropdown
bind = $mainMod, P, sendshortcut, , Menu, activewindow
@@ -327,18 +325,32 @@ bind = $mainMod, k, movefocus, u
bind = $mainMod, j, movefocus, d
# Switch workspaces with mainMod + [0,1,2,3,4,5,6,7,8,9,0,-,=]
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
bindr = $mainMod, 1, workspace, 1
bindr = $mainMod, 2, workspace, 2
bindr = $mainMod, 3, workspace, 3
bindr = $mainMod, 4, workspace, 4
bindr = $mainMod, 5, workspace, 5
bindr = $mainMod, 6, workspace, 6
bindr = $mainMod, 7, workspace, 7
bindr = $mainMod, 8, workspace, 8
bindr = $mainMod, 9, workspace, 9
bindr = $mainMod, 0, workspace, 10
bindr = $mainMod, minus, workspace, 11
bindr = $mainMod, equal, workspace, 12
# Switch to workspace and send it to another monitor
bindo = $mainMod, 1, exec, hyprctl dispatch workspace 1 && hyprctl dispatch movecurrentworkspacetomonitor +1
bindo = $mainMod, 2, exec, hyprctl dispatch workspace 2 && hyprctl dispatch movecurrentworkspacetomonitor +1
bindo = $mainMod, 3, exec, hyprctl dispatch workspace 3 && hyprctl dispatch movecurrentworkspacetomonitor +1
bindo = $mainMod, 4, exec, hyprctl dispatch workspace 4 && hyprctl dispatch movecurrentworkspacetomonitor +1
bindo = $mainMod, 5, exec, hyprctl dispatch workspace 5 && hyprctl dispatch movecurrentworkspacetomonitor +1
bindo = $mainMod, 6, exec, hyprctl dispatch workspace 6 && hyprctl dispatch movecurrentworkspacetomonitor +1
bindo = $mainMod, 7, exec, hyprctl dispatch workspace 7 && hyprctl dispatch movecurrentworkspacetomonitor +1
bindo = $mainMod, 8, exec, hyprctl dispatch workspace 8 && hyprctl dispatch movecurrentworkspacetomonitor +1
bindo = $mainMod, 9, exec, hyprctl dispatch workspace 9 && hyprctl dispatch movecurrentworkspacetomonitor +1
bindo = $mainMod, 0, exec, hyprctl dispatch workspace 10 && hyprctl dispatch movecurrentworkspacetomonitor +1
bindo = $mainMod, minus, exec, hyprctl dispatch workspace 11 && hyprctl dispatch movecurrentworkspacetomonitor +1
bindo = $mainMod, equal, exec, hyprctl dispatch workspace 12 && hyprctl dispatch movecurrentworkspacetomonitor +1
# Move active window to a workspace with mainMod + SHIFT + [0-9]
bind = $mainMod SHIFT, 1, movetoworkspacesilent, 1
@@ -357,17 +369,13 @@ bind = $mainMod SHIFT, equal, movetoworkspacesilent, 12
# Cycle monitors
bind = $mainMod, O, focusmonitor, +1
# Move current workspace to another monitor
bind = $mainMod SHIFT, y, movecurrentworkspacetomonitor, +1
bind = $mainMod SHIFT, v, moveworkspacetomonitor, +0 +1
# Example special workspace (scratchpad)
bind = $mainMod, M, togglespecialworkspace, magic
bind = $mainMod SHIFT, M, movetoworkspace, special:magic
# Go to previous/next workspace
bind = $mainMod, bracketleft, workspace, -1
bind = $mainMod, bracketright, workspace, +1
bind = $mainMod, bracketleft, workspace, r-1
bind = $mainMod, bracketright, workspace, r+1
# Go to previous/next occupied workspace
bind = $mainMod SHIFT, bracketleft, workspace, m-1
@@ -560,33 +568,6 @@ bind = $mainMod, Tab, submap, reset
bind = $mainMod, Escape, submap, reset
submap = reset
# Activate MPD submap with $mainMod + U
bind = $mainMod, U, submap, mpd
# Define the MPD submap
submap = mpd
# MPD controls (actions that exit submap)
bind = , P, exec, mpc toggle
bind = SHIFT, H, exec, mpc prev
bind = SHIFT, L, exec, mpc next
# MPD Seek
binde = , H, exec, mpc seek "-00:00:5"
binde = , L, exec, mpc seek "+00:00:5"
# Volume controls (remain in submap for repeated adjustments)
bind = , J, exec, mpc volume -5
bind = , K, exec, mpc volume +5
# Alternative exit methods
bind = , escape, submap, reset
bind = , Return, submap, reset
bind = , Space, submap, reset
# End the submap definition
submap = reset
##############################
### WINDOWS AND WORKSPACES ###
##############################
@@ -881,7 +862,13 @@ plugin {
}
}
ecosystem {
no_donation_nag = true
}
debug {
disable_logs = false
overlay = false
error_position = 1
}