fix nvim config

This commit is contained in:
Johannes Knopp
2026-02-22 17:06:22 +01:00
parent 4093701fca
commit 545f8ab328
10 changed files with 95 additions and 120 deletions

View File

@ -15,7 +15,7 @@ source = ./workspaces.conf
$terminal = ghostty
$fileManager = thunar
$menu = wofi --show drun
$menu = env XDG_CURRENT_DESKTOP=Hyprland wofi --show drun
#################
### AUTOSTART ###
@ -24,12 +24,13 @@ $menu = wofi --show drun
# Autostart necessary processes (like notifications daemons, status bars, etc.)
# Or execute your favorite apps at launch like this:
# exec-once = waybar
exec-once = /usr/lib//hhyprpolkitagent/hyprpolkitagent
exec-once = /usr/lib/hyprpolkitagent/hyprpolkitagent
exec-once = hyprpanel
exec-once = dunst
exec-once = firefox
exec-once = hyprpaper
exec-once = [workspace 9 silent] deezer-desktop
exec-once = scripts/close-monokai-popup.sh
# gnome keyring secret service
exec-once = dbus-update-activation-environment --systemd DISPLAY WAYLAND_DISPLAY XDG_CURRENT_DESKTOP HYPRLAND_INSTANCE_SIGNATURE
@ -262,6 +263,12 @@ bind = $mainMod SHIFT, right, movewindow, r
bind = $mainMod SHIFT, up, movewindow, u
bind = $mainMod SHIFT, down, movewindow, d
# Resize
binde = $mainMod ALT, left, resizeactive, -20 0
binde = $mainMod ALT, right, resizeactive, 20 0
binde = $mainMod ALT, up, resizeactive, 0 -20
binde = $mainMod ALT, down, resizeactive, 0 20
# Example special workspace (scratchpad)
bind = $mainMod, S, togglespecialworkspace, magic
bind = $mainMod SHIFT, S, movetoworkspace, special:magic
@ -342,11 +349,10 @@ windowrule {
windowrule {
name = jetbrains-tab-drag
match:class = ^(jetbrains-.*|android-studio)$
match:title = ^(\s*)$
match:title = ^(\s*|Delete|Replace All)$
no_initial_focus = 1
stay_focused = 1
float = 1
center = 1
}

View File

@ -1,8 +1,7 @@
# Generated by nwg-displays on 2025-12-26 at 06:40:37. Do not edit manually.
# Generated by nwg-displays on 2026-02-09 at 00:39:06. Do not edit manually.
monitor=DP-1,2560x1440@165.0,6626x876,1.0
monitor=DP-2,2560x1440@165.0,4066x876,1.0
monitor=HDMI-A-1,disable
monitor=HDMI-A-2,1920x1080@60.0,9186x396,1.0
monitor=HDMI-A-2,transform,3
monitor=HDMI-A-1,3840x2160@60.0,226x156,1.0
monitor=HDMI-A-1,disable

View File

@ -0,0 +1,30 @@
#!/usr/bin/env bash
SOCKET="/tmp/hypr/$HYPRLAND_INSTANCE_SIGNATURE/.socket2.sock"
handle_line() {
local line="$1"
# Split into EVENT and DATA (EVENT>>DATA)
local event="${line%%>>*}"
local data="${line#*>>}"
case "$event" in
openwindow)
# Data format:
# WINDOWADDRESS,WORKSPACENAME,WINDOWCLASS,WINDOWTITLE
local addr ws class title
IFS=, read -r addr ws class title <<< "$data"
if [[ "$class" == "jetbrains-webstorm" && "$title" == "Monokai Pro Trial" ]]; then
# closewindow expects address with 0x prefix
hyprctl dispatch closewindow "address:0x$addr"
fi
;;
esac
}
socat -U - "UNIX-CONNECT:$SOCKET" | while read -r line; do
handle_line "$line"
done