From a02a8c7788d8ffbcc54dfac5061d9c3965b7c222 Mon Sep 17 00:00:00 2001 From: Shadow Cat Date: Fri, 5 Jun 2026 21:37:48 -0400 Subject: [PATCH] stuff --- .luarc.json | 7 +++ hyprland.conf | 163 -------------------------------------------------- hyprland.lua | 19 +++--- 3 files changed, 14 insertions(+), 175 deletions(-) create mode 100644 .luarc.json delete mode 100644 hyprland.conf diff --git a/.luarc.json b/.luarc.json new file mode 100644 index 0000000..b4ecec0 --- /dev/null +++ b/.luarc.json @@ -0,0 +1,7 @@ +{ + "workspace": { + "library": [ + "/usr/share/hypr/stubs" + ] + } +} diff --git a/hyprland.conf b/hyprland.conf deleted file mode 100644 index e00613b..0000000 --- a/hyprland.conf +++ /dev/null @@ -1,163 +0,0 @@ -monitor=,preferred,auto,1 -workspace=DP-1,1 - -$mod = SUPER - -input { - kb_layout = us - kb_variant = colemak_dh - kb_options = caps:escape - - repeat_rate = 50 - repeat_delay = 300 - - follow_mouse=1 - float_switch_override_focus = true - - sensitivity=0.5 # -1.0 - 1.0, 0 means no modification. - accel_profile=flat - - touchpad { - disable_while_typing = false - } -} - -general { - gaps_in=9 - gaps_out=15 - border_size=2 - col.active_border=0xffaaaaee 0xffeeaaee 45deg - col.inactive_border=0xff333333 -} - -group { - col.border_active=0xffaaaaee 0xffeeaaee 45deg - col.border_inactive=0xff333333 - groupbar { - enabled=false - } -} - -decoration { - rounding = 10 - blur { - enabled = true - size = 3 - new_optimizations = on - } -} - -dwindle { - force_split = 2 -} - -animations { - enabled = true - - bezier = decel, 0.05, 0.1, 0.1, 1 - - animation = windows, 1, 2, decel, popin 80% - animation = windowsOut, 1, 2, decel, popin 80% - animation = border, 1, 2, decel - animation = borderangle, 1, 2, decel - animation = fade, 1, 2, decel - animation = workspaces, 1, 2, decel, slidefade 5% -} - -ecosystem:no_update_news = true - -exec-once = wayland-init -exec-once = wallpaper -exec-once = eww open bar-eDP -exec-once = [workspace keepass silent] keepassxc - -# windowrule=float,title:Firefox — Sharing Indicator -# windowrule=move 1850 40,title:Firefox — Sharing Indicator -windowrule = match:class term-popup, float true - - - -$term = ghostty -bind=$mod,return,exec,$term -bind=$mod,backslash,exec,alacritty -bind=$mod,v,killactive, -bind=$mod,0,exit, -bind=$mod,d,exec,wofi --show drun -IG -bind=,PRINT,exec,screenshot -bind=SHIFT,PRINT,exec,grim - | swappy -f - -bind=$mod,l,exec,popup pulsemixer -bind=$mod,u,exec,popup qalc -bind=$mod,k,exec,popup note -bind=$mod,j,exec,ocr - -bind=$mod,N,movefocus,l -bind=$mod,E,movefocus,d -bind=$mod,I,movefocus,u -bind=$mod,O,movefocus,r - -bind=$mod SHIFT,N,movewindow,l -bind=$mod SHIFT,E,movewindow,d -bind=$mod SHIFT,I,movewindow,u -bind=$mod SHIFT,O,movewindow,r - -bind=,page_up,exec, -bind=,page_down,exec, - -bind=$mod SHIFT,space,togglefloating, -bind=$mod,space,exec,togglefloatfocus - -bind=$mod,a,workspace,1 -bind=$mod,r,workspace,2 -bind=$mod,s,workspace,3 -bind=$mod,t,workspace,4 -bind=$mod,q,workspace,5 -bind=$mod,w,workspace,6 -bind=$mod,f,workspace,7 -bind=$mod,p,workspace,8 -bind=$mod,z,workspace,9 -bind=$mod,x,workspace,10 -bind=$mod,c,workspace,11 - -bind=$mod SHIFT,a,movetoworkspacesilent,1 -bind=$mod SHIFT,r,movetoworkspacesilent,2 -bind=$mod SHIFT,s,movetoworkspacesilent,3 -bind=$mod SHIFT,t,movetoworkspacesilent,4 -bind=$mod SHIFT,q,movetoworkspacesilent,5 -bind=$mod SHIFT,w,movetoworkspacesilent,6 -bind=$mod SHIFT,f,movetoworkspacesilent,7 -bind=$mod SHIFT,p,movetoworkspacesilent,8 -bind=$mod SHIFT,z,movetoworkspacesilent,9 -bind=$mod SHIFT,x,movetoworkspacesilent,10 -bind=$mod SHIFT,c,movetoworkspacesilent,11 - -bind=$mod SHIFT,l,togglespecialworkspace,keepass -windowrule { - name = keepass main - match:initial_title = .* \[Locked\] - KeePassXC - # match:class = org.keepassxc.KeePassXC - # match:title = negative:KeePassXC - .* Access Request|Unlock Database - KeePassXC - workspace = special:keepass -} -windowrule { - name = keepass other - match:class = org.keepassxc.KeePassXC - match:initial_title = negative:.* \[Locked\] - KeePassXC - float = true -} - -bind=$mod,semicolon,fullscreen, - -bind=$mod,mouse_down,workspace,e+1 -bind=$mod,mouse_up,workspace,e-1 - -bindm=$mod,mouse:272,movewindow -bindm=$mod,mouse:273,resizewindow - -bind=$mod,g,togglegroup -bind=$mod,h,changegroupactive - -bind = $mod SHIFT,backspace,submap,clean -submap = clean - -bind = $mod SHIFT,backspace,submap,reset -submap = reset diff --git a/hyprland.lua b/hyprland.lua index 0908cb6..0d7b73c 100644 --- a/hyprland.lua +++ b/hyprland.lua @@ -3,12 +3,12 @@ local mod = "SUPER" -- keybinds local commands = { - { "return", "ghostty" }, - { "d", "wofi --show drun -IG" }, - { "l", "popup pulsemixer" }, - { "u", "popup qalc" }, - { "k", "popup note" }, - { "j", "ocr" }, + { "return", "ghostty" }, + { "d", "wofi --show drun -iIG" }, + { "l", "popup pulsemixer" }, + { "u", "popup qalc" }, + { "k", "popup note" }, + { "j", "ocr" }, } hl.bind(mod .. " + v", hl.dsp.window.close()) @@ -19,6 +19,7 @@ hl.bind(mod .. " + semicolon", hl.dsp.window.fullscreen()) hl.bind(mod .. " + SHIFT + l", hl.dsp.workspace.toggle_special("keepass")) hl.bind("print", hl.dsp.exec_cmd("screenshot")) hl.bind("SHIFT + print", hl.dsp.exec_cmd("grim - | swappy -f -")) +hl.bind(mod .. " + space", hl.dsp.window.float()) local mov_keys = { { "n", "left" }, @@ -167,9 +168,3 @@ hl.on("hyprland.start", function() hl.exec_cmd("eww open bar-eDP") hl.exec_cmd("keepassxc") end) - --- get lua ls to stop complaining -function _() - ---@diagnostic disable-next-line: lowercase-global - hl = {} -end