hypr: review config

* update some keys
* fix windowrule that i broke like eternity ago
This commit is contained in:
Oleksandr Smirnov 2025-04-01 01:21:17 +03:00
parent c41d196c5e
commit 1445142419
No known key found for this signature in database
4 changed files with 33 additions and 36 deletions

View file

@ -11,7 +11,6 @@ $mod = SUPER
$browser = brave $browser = brave
$terminal = kitty $terminal = kitty
$notaker = obsidian $notaker = obsidian
$filemanager = pcmanfm
# }}} # }}}
# auto start {{{ # auto start {{{
exec-once = waybar exec-once = waybar
@ -116,7 +115,7 @@ gestures {
windowrulev2 = workspace 1, class:(Logseq|obsidian) windowrulev2 = workspace 1, class:(Logseq|obsidian)
windowrulev2 = workspace 2, class:(firefox|Google-chrome|Brave-browser) windowrulev2 = workspace 2, class:(firefox|Google-chrome|Brave-browser)
windowrulev2 = workspace 3, class:(jetbrains-rider|org.octave.Octave) windowrulev2 = workspace 3, class:(jetbrains-rider|org.octave.Octave)
windowrulev2 = workspace 4, class:(Postman,Insomnium,HTTPie,org.keepassxc.KeePassXC) windowrulev2 = workspace 4, class:(KeePassXC|Insomnium)
windowrulev2 = workspace 5, class:(discord|org.telegram.desktop|fractal|thunderbird) windowrulev2 = workspace 5, class:(discord|org.telegram.desktop|fractal|thunderbird)
windowrulev2 = workspace 7, class:(Spotify) windowrulev2 = workspace 7, class:(Spotify)
windowrulev2 = workspace 9, class:(zoom) windowrulev2 = workspace 9, class:(zoom)
@ -124,7 +123,7 @@ windowrulev2 = workspace 9, class:(zoom)
windowrulev2 = float, class:(pavucontrol|blueman-manager) windowrulev2 = float, class:(pavucontrol|blueman-manager)
# just fixes some annoyance # just fixes some annoyance
windowrule = size 900 500, title:(Open File)(.*)$ windowrule = size 700 400, title:(Open File)(.*)$
windowrule = float, title:(Open File)(.*)$ windowrule = float, title:(Open File)(.*)$
windowrule = move center, title:(Open File)(.*)$ windowrule = move center, title:(Open File)(.*)$
@ -156,23 +155,24 @@ windowrulev2 = rounding 0, floating:0, onworkspace:f[1]
bind = , SHIFT Print, exec, hyprshot -m output bind = , SHIFT Print, exec, hyprshot -m output
# programs {{{ # programs {{{
bind = $mod, comma, exec, wofi-emoji
bind = $mod SHIFT, a, exec, anki bind = $mod SHIFT, a, exec, anki
bind = $mod SHIFT, d, exec, $notaker bind = $mod SHIFT, d, exec, $notaker
bind = $mod SHIFT, e, exec, wofi-emoji bind = $mod SHIFT, f, exec, newsflash
bind = $mod SHIFT, f, exec, $filemanager
bind = $mod SHIFT, s, exec, spotify bind = $mod SHIFT, s, exec, spotify
bind = $mod SHIFT, t, exec, telegram-desktop bind = $mod SHIFT, t, exec, telegram-desktop
bind = $mod SHIFT, w, exec, $browser bind = $mod SHIFT, w, exec, $browser
# }}} # }}}
# sound {{{ # function keys {{{
bindl = , XF86AudioRaiseVolume, exec, wpctl set-volume -l 1.4 @DEFAULT_AUDIO_SINK@ 5%+ bindl = , XF86AudioRaiseVolume, exec, wpctl set-volume -l 1.4 @DEFAULT_AUDIO_SINK@ 5%+
bindl = , XF86AudioLowerVolume, exec, wpctl set-volume -l 1.4 @DEFAULT_AUDIO_SINK@ 5%- bindl = , XF86AudioLowerVolume, exec, wpctl set-volume -l 1.4 @DEFAULT_AUDIO_SINK@ 5%-
bindl = , XF86AudioMute, exec, wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle bindl = , XF86AudioMute, exec, wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle
bindl = , XF86AudioPlay, exec, playerctl play-pause bindl = , XF86AudioPlay, exec, playerctl play-pause
bindl = , XF86AudioNext, exec, playerctl next bindl = , XF86AudioNext, exec, playerctl next
bindl = , XF86AudioPrev, exec, playerctl previous bindl = , XF86AudioPrev, exec, playerctl previous
# }}}
# brightness {{{ # brightness
bindl = , XF86MonBrightnessUp, exec, brightnessctl set +5% bindl = , XF86MonBrightnessUp, exec, brightnessctl set +5%
bindl = , XF86MonBrightnessDown, exec, brightnessctl set 5%- bindl = , XF86MonBrightnessDown, exec, brightnessctl set 5%-
# }}} # }}}
@ -186,11 +186,11 @@ windowrulev2 = rounding 0, floating:0, onworkspace:f[1]
bind = $mod, k, movefocus, u bind = $mod, k, movefocus, u
bind = $mod, l, movefocus, r bind = $mod, l, movefocus, r
# Scroll through existing workspaces with mainMod + scroll # Scroll through existing workspaces with $mod + scroll
bind = $mod, mouse_down, workspace, e-1 bind = $mod, mouse_down, workspace, e-1
bind = $mod, mouse_up, workspace, e+1 bind = $mod, mouse_up, workspace, e+1
# Move/resize windows with mainMod + LMB/RMB and dragging # Move/resize windows with $mod + LMB/RMB and dragging
bindm = $mod, mouse:272, movewindow bindm = $mod, mouse:272, movewindow
bindm = $mod, mouse:273, resizewindow bindm = $mod, mouse:273, resizewindow
@ -204,26 +204,25 @@ windowrulev2 = rounding 0, floating:0, onworkspace:f[1]
bind = $mod SHIFT, k, movewindow, u bind = $mod SHIFT, k, movewindow, u
bind = $mod SHIFT, j, movewindow, d bind = $mod SHIFT, j, movewindow, d
# workspaces {{{ # workspaces
bind = $mod, 1, workspace, 1 bind = $mod, 1, workspace, 1
bind = $mod, 2, workspace, 2 bind = $mod, 2, workspace, 2
bind = $mod, 3, workspace, 3 bind = $mod, 3, workspace, 3
bind = $mod, 4, workspace, 4 bind = $mod, 4, workspace, 4
bind = $mod, 5, workspace, 5 bind = $mod, 5, workspace, 5
bind = $mod, 6, workspace, 6 bind = $mod, 6, workspace, 6
bind = $mod, 7, workspace, 7 bind = $mod, 7, workspace, 7
bind = $mod, 8, workspace, 8 bind = $mod, 8, workspace, 8
bind = $mod, 9, workspace, 9 bind = $mod, 9, workspace, 9
bind = $mod SHIFT, 1, movetoworkspacesilent, 1 bind = $mod SHIFT, 1, movetoworkspacesilent, 1
bind = $mod SHIFT, 2, movetoworkspacesilent, 2 bind = $mod SHIFT, 2, movetoworkspacesilent, 2
bind = $mod SHIFT, 3, movetoworkspacesilent, 3 bind = $mod SHIFT, 3, movetoworkspacesilent, 3
bind = $mod SHIFT, 4, movetoworkspacesilent, 4 bind = $mod SHIFT, 4, movetoworkspacesilent, 4
bind = $mod SHIFT, 5, movetoworkspacesilent, 5 bind = $mod SHIFT, 5, movetoworkspacesilent, 5
bind = $mod SHIFT, 6, movetoworkspacesilent, 6 bind = $mod SHIFT, 6, movetoworkspacesilent, 6
bind = $mod SHIFT, 7, movetoworkspacesilent, 7 bind = $mod SHIFT, 7, movetoworkspacesilent, 7
bind = $mod SHIFT, 8, movetoworkspacesilent, 8 bind = $mod SHIFT, 8, movetoworkspacesilent, 8
bind = $mod SHIFT, 9, movetoworkspacesilent, 9 bind = $mod SHIFT, 9, movetoworkspacesilent, 9
# }}}
# }}} # }}}
# }}} # }}}

View file

@ -18,7 +18,7 @@
quotePath = false quotePath = false
[init] [init]
defaultBranch = "main" defaultBranch = main
[alias] [alias]
push-force = push --force-with-lease push-force = push --force-with-lease

View file

@ -1,4 +1,4 @@
# vim: foldmethod=marker ts=2 sw=2 # vim: foldmethod=marker ts=2 sw=2 ft=tmux
# general {{{ # general {{{
# i need my cute colors # i need my cute colors
set -g default-terminal "screen-256color" set -g default-terminal "screen-256color"
@ -31,7 +31,7 @@ unbind C-b
set -g prefix C-a set -g prefix C-a
bind-key C-a send-prefix bind-key C-a send-prefix
# some life-improvments # some life improvements
bind r source-file ~/.tmux.conf \; display 'Reloaded tmux config' bind r source-file ~/.tmux.conf \; display 'Reloaded tmux config'
bind Tab last-window bind Tab last-window

4
zshrc
View file

@ -23,9 +23,7 @@ bindkey -M vicmd "k" down-line-or-beginning-search
alias cls="clear" cp="cp -r" mkdir="mkdir -p" alias cls="clear" cp="cp -r" mkdir="mkdir -p"
alias gor="go run" gob="go build" gog="go get" alias gor="go run" gob="go build" gog="go get"
alias ...="cd ../.." .3="cd ../../.." alias ...="cd ../.." .3="cd ../../.."
alias v="nvim" vim="v" vi="vim" alias vim="nvim" vi="vim" e="vim"
alias sdki=". $HOME/.sdkman/bin/sdkman-init.sh"
alias asdfi=". $HOME/.asdf/asdf.sh"
if [[ -f "/bin/exa" ]]; then if [[ -f "/bin/exa" ]]; then
alias ls="exa -l" ll="ls" la="ls -a" alias ls="exa -l" ll="ls" la="ls -a"