Compare commits

..

4 Commits

Author SHA1 Message Date
df6c213cfd Fix a few syntax errors 2025-12-04 20:35:20 +01:00
0f939f03a8 Commit old changes 2025-12-04 20:31:21 +01:00
3575d4c0c1 Add i3 workspace 2025-12-04 20:30:50 +01:00
97e4275dc4 Update i3 2025-12-04 20:30:39 +01:00
5 changed files with 70 additions and 75 deletions

View File

@@ -8,6 +8,7 @@
- git - git
- tmux - tmux
- kitty - kitty
- zoxide
- name: Install i3 packages - name: Install i3 packages
become: true become: true

View File

@@ -1,28 +1,21 @@
# This file has been auto-generated by i3-config-wizard(1). # Personal i3 Configuration
# It will not be overwritten, so edit it as you like. # Bas Grolleman
#
# Should you change your keyboard layout some time, delete
# this file and re-run i3-config-wizard(1).
#
# i3 config file (v4)
#
# Please see https://i3wm.org/docs/userguide.html for a complete reference!
# Some reason system boots wrong resolution # Some reason system boots wrong resolution
exec --no-startup-id ~/bin/set_display_ultrawide exec --no-startup-id ~/bin/set_display_ultrawide
# Alt # t
set $mod Mod1 set $mod Mod1
# Win # Win
set $win Mod4 set $win Mod4
# Font for window titles. Will also be used by the bar unless a different font # Font for window titles. Will also be used by the bar unless a different font
# is used in the bar {} block below. # 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 # This font is widely installed, provides lots of unicode glyphs, right-to-left
# text rendering and scalability on retina/hidpi displays (thanks to pango). # 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 # Start XDG autostart .desktop files using dex. See also
# https://wiki.archlinux.org/index.php/XDG_Autostart # 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 # 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. # 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, # 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. # and nm-applet is a desktop environment-independent system tray GUI for it.
@@ -56,6 +49,8 @@ floating_modifier $mod
# start a terminal # start a terminal
bindsym $mod+Return exec kitty bindsym $mod+Return exec kitty
bindsym $win+e exec /usr/bin/nautilus /home/bgrolleman
bindsym $win+b exec /opt/helium/helium
# kill focused window # kill focused window
bindsym $mod+Shift+q kill bindsym $mod+Shift+q kill
@@ -64,12 +59,14 @@ bindsym $mod+Shift+q kill
#bindsym $mod+d exec --no-startup-id dmenu_run #bindsym $mod+d exec --no-startup-id dmenu_run
# A more modern dmenu replacement is rofi: # A more modern dmenu replacement is rofi:
bindcode $win+65 exec "rofi -modi drun,run -show drun" bindcode $win+65 exec "rofi -modi drun,run -show drun"
bindcode $mod+65 exec "rofi -show window" #bindcode $mod+65 exec "rofi -show window"
bindcode Mod4+v exec 'rofi -modi "clipboard:greenclip print" -show clipboard -run-command "{cmd}"' #bindcode $win+v exec 'rofi -modi "clipboard:greenclip print" -show clipboard -run-command "{cmd}"'
# There also is i3-dmenu-desktop which only displays applications shipping a # 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. # .desktop file. It is a wrapper around dmenu, so you need that installed.
# bindcode $mod+40 exec --no-startup-id i3-dmenu-desktop # 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+$mod+q exec "/usr/bin/gdmflexiserver"
# change focus # change focus
bindsym $mod+h focus left bindsym $mod+h focus left
@@ -77,51 +74,30 @@ bindsym $mod+j focus down
bindsym $mod+k focus up bindsym $mod+k focus up
bindsym $mod+l focus right 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 # move focused window
bindsym $mod+Shift+h move left bindsym $mod+Shift+h move left
bindsym $mod+Shift+j move down bindsym $mod+Shift+j move down
bindsym $mod+Shift+k move up bindsym $mod+Shift+k move up
bindsym $mod+Shift+l move right 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 # split in horizontal orientation
bindsym $mod+semicolon split h bindsym $mod+semicolon split h
# split in vertical orientation
bindsym $mod+v split v
# enter fullscreen mode for the focused container # enter fullscreen mode for the focused container
bindsym $mod+f fullscreen toggle bindsym $mod+f fullscreen toggle
bindsym $mod+y floating enable; resize set 55ppt 95ppt; move position center bindsym $mod+y floating enable; resize set 55ppt 95ppt; move position center
# change container layout (stacked, tabbed, toggle split) # change container layout (stacked, tabbed, toggle split)
bindsym $mod+s layout stacking #bindsym $mod+s layout stacking
bindsym $mod+w layout tabbed #bindsym $mod+w layout tabbed
bindsym $mod+e layout toggle split #bindsym $mod+e layout toggle split
# toggle tiling / floating # toggle tiling / floating
bindsym $mod+Shift+space floating toggle bindsym $mod+space floating toggle
# change focus between tiling / floating windows # change focus between tiling / floating windows
#bindsym $mod+space focus mode_toggle #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. # Define names for default workspaces for which we configure key bindings later on.
# We use variables to avoid repeating the names in multiple places. # We use variables to avoid repeating the names in multiple places.
set $ws1 "1" set $ws1 "1"
@@ -192,10 +168,13 @@ mode "resize" {
} }
bindsym $mod+r 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 exec_always --no-startup-id $HOME/.config/polybar/launch.sh
default_border pixel 1px default_border pixel 3px
smart_borders on smart_borders on
# This needs a newer verison of i3 then I have on my desktop right now # This needs a newer verison of i3 then I have on my desktop right now
gaps inner 5px gaps inner 5px
@@ -211,5 +190,7 @@ exec --no-startup-id ~/bin/stack-v5.3.1-20240731-x86_64.AppImage
bindsym $win+period exec flatpak run it.mijorus.smile 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

View File

@@ -1,48 +1,49 @@
// vim:ts=4:sw=4:et // vim:ts=4:sw=4:et
{ {
// splith split container with 3 children "name": "Todoist",
"border": "normal", "percent": 0.15,
"floating": "auto_off",
"layout": "splith",
"marks": [],
"percent": 1,
"type": "con",
"nodes": [
{
"border": "none",
"current_border_width": 5,
"floating": "user_off",
"marks": [],
"name": "Todoist - Today Todoist",
"percent": 0.20,
"swallows": [ "swallows": [
{ {
"instance": "^crx_knaiokfnmjjldlfhlioejgcompgenfhb$" "instance": "^crx_knaiokfnmjjldlfhlioejgcompgenfhb$"
} }
], ],
"type": "con" "type": "con"
}, }
{ {
"border": "normal", "name": "Brave",
"current_border_width": 2,
"floating": "user_off",
"marks": [],
"name": "i3: Layout saving in i3 - Brave",
"percent": 0.60, "percent": 0.60,
"swallows": [ "swallows": [
{ {
"instance": "^brave\\-browser$" "class": "^Brave\\-browser$",
"instance": "^brave\\-browser$",
"window_role": "^browser$"
}
],
"type": "con"
}
{
// splitv split container with 2 children
"border": "pixel",
"floating": "auto_off",
"layout": "splitv",
"percent": 0.35,
"type": "con",
"nodes": [
{
"name": "Logseq",
"percent": 0.5,
"swallows": [
{
"class": "^Logseq$"
} }
], ],
"type": "con" "type": "con"
}, },
{ {
"border": "normal", "name": "Terminal",
"current_border_width": 5, "percent": 0.5,
"floating": "auto_off",
"marks": [],
"name": "bgrolleman@laura: ~",
"percent": 0.20,
"swallows": [ "swallows": [
{ {
"class": "^kitty$" "class": "^kitty$"

10
i3/workspace1.sh Executable file
View File

@@ -0,0 +1,10 @@
#!/bin/sh
i3-msg "workspace 1; append_layout ~/.config/i3/workspace-1.json"
sleep 0.5
/usr/bin/brave-browser &
sleep 0.5
/usr/bin/kitty &
sleep 0.5
flatpak run com.logseq.Logseq &
sleep 0.5
gtk-launch "brave-knaiokfnmjjldlfhlioejgcompgenfhb-Default.desktop" &

View File

@@ -241,6 +241,8 @@ label-connected = WIFI %essid% %local_ip%
label-disconnected = WIFI DISCONNECTED label-disconnected = WIFI DISCONNECTED
label-disconnected-foreground = #66 label-disconnected-foreground = #66
click-left = nm-connection-editor
[module/wired-network] [module/wired-network]
type = internal/network type = internal/network
interface = eno2 interface = eno2