]> gitweb.ps.run Git - flake_thinkpad/blobdiff - home.nix
add kde plasma
[flake_thinkpad] / home.nix
index e3394c633fc99de324294302c48815662d464ed1..3f34dd3b5a876d905438d523aabf1a4ff0b69410 100644 (file)
--- a/home.nix
+++ b/home.nix
@@ -219,22 +219,24 @@ in
             "${mod}+y" = "exec --no-startup-id mirror-phone";
             "${mod}+n" = "exec ${pkgs.kitty}/bin/kitty -d ~/sync/txt $EDITOR .";
             "${mod}+m" = "exec --no-startup-id i3-msg $(${i3-max})";
+            "${mod}+b" = "split toggle; layout tabbed";
             "${mod}+Shift+m" = "exec --no-startup-id i3-msg $(${i3-move-max})";
             "${mod}+Shift+p" = "exec --no-startup-id ${pkgs.autorandr}/bin/autorandr --match-edid -c -f";
           };
     };
     extraConfig = ''
-      exec ${pkgs.xfce.xfce4-panel}/bin/xfce4-panel
+      exec ${pkgs.xfce.xfce4-panel}/bin/xfce4-panel
       for_window [window_role="pop-up"] floating enable
       for_window [window_role="task_dialog"] floating enable
       # for_window [workspace="0"] floating enable
 
       for_window [class="kitty-popup"] floating enable
       for_window [class="Xfce4-appfinder"] floating enable
-      for_window [class=".blueman-manager-wrapped"] floating enable
       for_window [class="yakuake"] floating enable
       for_window [class="systemsettings"] floating enable
       for_window [title="win7"] floating enable; border none
+      for_window [title="Desktop — Plasma"] kill, floating enable, border none
+      for_window [title="Arbeitsfläche — Plasma"] kill, floating enable, border none
 
       # class                 border  backgr. text    indicator child_border
       client.focused          #000000bf #000000bf #e6ebef #000000bf   #000000bf
@@ -400,11 +402,16 @@ in
       noremap <leader><S-y> "+<S-y><CR>
       noremap <leader><S-p> "+<S-p><CR>
 
+      " Format on save
       " augroup FormatAutogroup
       "   autocmd!
       "   autocmd BufWritePost * FormatWrite
       " augroup END
 
+      " enter insert mode when opening terminal
+      autocmd TermOpen * startinsert
+
+      "
       autocmd BufReadPost *
       \ if line("'\"") > 1 && line("'\"") <= line("$") && &ft !~# 'commit'
       \ |   exe "normal! g`\""