From 97e4275dc42453c44dda2e33f4e7300fd0948bae Mon Sep 17 00:00:00 2001 From: Bas Grolleman Date: Thu, 4 Dec 2025 20:30:39 +0100 Subject: [PATCH] Update i3 --- i3/config | 58 +++++++++++++++------------------------- i3/workspace-1.json | 65 +++++++++++++++++++++++---------------------- 2 files changed, 54 insertions(+), 69 deletions(-) diff --git a/i3/config b/i3/config index 0201765..bc1ab56 100644 --- a/i3/config +++ b/i3/config @@ -1,13 +1,6 @@ -# This file has been auto-generated by i3-config-wizard(1). -# It will not be overwritten, so edit it as you like. -# -# Should you change your keyboard layout some time, delete -# this file and re-run i3-config-wizard(1). -# +# Personal i3 Configuration +# Bas Grolleman -# i3 config file (v4) -# -# Please see https://i3wm.org/docs/userguide.html for a complete reference! # Some reason system boots wrong resolution exec --no-startup-id ~/bin/set_display_ultrawide @@ -18,11 +11,11 @@ set $win Mod4 # Font for window titles. Will also be used by the bar unless a different font # is used in the bar {} block below. -font pango:monospace 8 +#font pango:monospace 8 # This font is widely installed, provides lots of unicode glyphs, right-to-left # text rendering and scalability on retina/hidpi displays (thanks to pango). -#font pango:DejaVu Sans Mono 8 +font pango:DejaVu Sans Mono 8 # Start XDG autostart .desktop files using dex. See also # https://wiki.archlinux.org/index.php/XDG_Autostart @@ -33,7 +26,7 @@ exec --no-startup-id dex --autostart --environment i3 # xss-lock grabs a logind suspend inhibit lock and will use i3lock to lock the # screen before suspend. Use loginctl lock-session to lock your screen. -exec --no-startup-id xss-lock --transfer-sleep-lock -- i3lock --nofork -i ~/Documents/Resources/Backgrounds/51202139522_fbf4788f42_o.png +#exec --no-startup-id xss-lock --transfer-sleep-lock -- i3lock --nofork -i ~/Documents/Resources/Backgrounds/51202139522_fbf4788f42_o.png # NetworkManager is the most popular way to manage wireless networks on Linux, # and nm-applet is a desktop environment-independent system tray GUI for it. @@ -56,6 +49,8 @@ floating_modifier $mod # start a terminal bindsym $mod+Return exec kitty +bindsym $win+e exec /usr/bin/nautilus /home/bgrolleman +bindsym $win+b exec /opt/helium/helium # kill focused window bindsym $mod+Shift+q kill @@ -69,7 +64,9 @@ bindcode Mod4+v exec 'rofi -modi "clipboard:greenclip print" -show clipboard -r # There also is i3-dmenu-desktop which only displays applications shipping a # .desktop file. It is a wrapper around dmenu, so you need that installed. # bindcode $mod+40 exec --no-startup-id i3-dmenu-desktop -bindsym $win+l exec "i3lock -i ~/Documents/Resources/Backgrounds/51202139522_fbf4788f42_o.png" +#bindsym $win+l exec "i3lock -i ~/Documents/Resources/Backgrounds/51202139522_fbf4788f42_o.png" +#bindsym $win+l exec "/usr/bin/gdmflexiserver" +bindsym $win+$alt+q exec "/usr/bin/gdmflexiserver" # change focus bindsym $mod+h focus left @@ -77,24 +74,12 @@ bindsym $mod+j focus down bindsym $mod+k focus up bindsym $mod+l focus right -# alternatively, you can use the cursor keys: -bindsym $mod+Left focus left -bindsym $mod+Down focus down -bindsym $mod+Up focus up -bindsym $mod+Right focus right - # move focused window bindsym $mod+Shift+h move left bindsym $mod+Shift+j move down bindsym $mod+Shift+k move up bindsym $mod+Shift+l move right -# alternatively, you can use the cursor keys: -bindsym $mod+Shift+Left move left -bindsym $mod+Shift+Down move down -bindsym $mod+Shift+Up move up -bindsym $mod+Shift+Right move right - # split in horizontal orientation bindsym $mod+semicolon split h @@ -106,22 +91,16 @@ bindsym $mod+f fullscreen toggle bindsym $mod+y floating enable; resize set 55ppt 95ppt; move position center # change container layout (stacked, tabbed, toggle split) -bindsym $mod+s layout stacking -bindsym $mod+w layout tabbed -bindsym $mod+e layout toggle split +#bindsym $mod+s layout stacking +#bindsym $mod+w layout tabbed +#bindsym $mod+e layout toggle split # toggle tiling / floating -bindsym $mod+Shift+space floating toggle +bindsym $mod+space floating toggle # change focus between tiling / floating windows #bindsym $mod+space focus mode_toggle -# focus the parent container -bindsym $mod+a focus parent - -# focus the child container -#bindsym $mod+d focus child - # Define names for default workspaces for which we configure key bindings later on. # We use variables to avoid repeating the names in multiple places. set $ws1 "1" @@ -192,10 +171,13 @@ mode "resize" { } bindsym $mod+r mode "resize" +bindsym $mod+Right resize grow width 30px +bindsym $mod+Left resize shrink width 30px + exec_always --no-startup-id $HOME/.config/polybar/launch.sh -default_border pixel 1px +default_border pixel 3px smart_borders on # This needs a newer verison of i3 then I have on my desktop right now gaps inner 5px @@ -211,5 +193,7 @@ exec --no-startup-id ~/bin/stack-v5.3.1-20240731-x86_64.AppImage bindsym $win+period exec flatpak run it.mijorus.smile -exec --no-startup-id i3-msg "workspace 6; append_layout ~/.config/i3/workspace-6.json" +#exec --no-startup-id i3-msg "workspace 6; append_layout ~/.config/i3/workspace-6.json" + +client.focused #ffff00 #ffff00 #000000 #ffff00 #ffff00 diff --git a/i3/workspace-1.json b/i3/workspace-1.json index 7f72952..1077cda 100644 --- a/i3/workspace-1.json +++ b/i3/workspace-1.json @@ -1,48 +1,49 @@ // vim:ts=4:sw=4:et { - // splith split container with 3 children - "border": "normal", + "name": "Todoist", + "percent": 0.15, + "swallows": [ + { + "instance": "^crx_knaiokfnmjjldlfhlioejgcompgenfhb$" + } + ], + "type": "con" +} + +{ + "name": "Brave", + "percent": 0.60, + "swallows": [ + { + "class": "^Brave\\-browser$", + "instance": "^brave\\-browser$", + "window_role": "^browser$" + } + ], + "type": "con" +} + +{ + // splitv split container with 2 children + "border": "pixel", "floating": "auto_off", - "layout": "splith", - "marks": [], - "percent": 1, + "layout": "splitv", + "percent": 0.35, "type": "con", "nodes": [ { - "border": "none", - "current_border_width": 5, - "floating": "user_off", - "marks": [], - "name": "Todoist - Today – Todoist", - "percent": 0.20, + "name": "Logseq", + "percent": 0.5, "swallows": [ { - "instance": "^crx_knaiokfnmjjldlfhlioejgcompgenfhb$" + "class": "^Logseq$" } ], "type": "con" }, { - "border": "normal", - "current_border_width": 2, - "floating": "user_off", - "marks": [], - "name": "i3: Layout saving in i3 - Brave", - "percent": 0.60, - "swallows": [ - { - "instance": "^brave\\-browser$" - } - ], - "type": "con" - }, - { - "border": "normal", - "current_border_width": 5, - "floating": "auto_off", - "marks": [], - "name": "bgrolleman@laura: ~", - "percent": 0.20, + "name": "Terminal", + "percent": 0.5, "swallows": [ { "class": "^kitty$"