From ce48c717eb001ba30d8b784b201c5ad30862b497 Mon Sep 17 00:00:00 2001 From: 2Shirt <1923621+2Shirt@users.noreply.github.com> Date: Sun, 17 Dec 2017 16:53:00 -0700 Subject: [PATCH] Updated i3 setup * nox+i3 boot cmdline supported * Pretty sure this isn't going to be used * Set more windows to default to floating --- .../live/airootfs/etc/skel/.config/i3/config | 19 +++++++++++++------ .../include/live/airootfs/etc/skel/.zlogin | 8 ++++---- 2 files changed, 17 insertions(+), 10 deletions(-) diff --git a/.linux_items/include/live/airootfs/etc/skel/.config/i3/config b/.linux_items/include/live/airootfs/etc/skel/.config/i3/config index 6cb3baa0..016026d3 100644 --- a/.linux_items/include/live/airootfs/etc/skel/.config/i3/config +++ b/.linux_items/include/live/airootfs/etc/skel/.config/i3/config @@ -188,14 +188,21 @@ bindsym $mod+Shift+9 move container to workspace $ws9; workspace $ws9 bindsym $mod+Shift+0 move container to workspace $ws10; workspace $ws10 # Open specific applications in floating mode -for_window [title="Slack"] floating enable -for_window [title="Screen Layout Editor"] floating enable -for_window [class="Galculator"] floating enable border pixel 1 -for_window [class="Nitrogen"] floating enable sticky enable border normal +for_window [class="Galculator"] floating enable border normal 5 +for_window [class="Nitrogen"] floating enable sticky enable border normal 5 +for_window [class="Thunar"] floating enable border normal 5 +for_window [class="mpv"] floating enable border normal 5 +for_window [title="Event Tester"] floating enable border normal 5 +for_window [title="Firefox"] floating enable border normal 5 for_window [title="Hardware Diagnostics"] floating enable for_window [title="Hardware Sensors"] floating enable -for_window [title="Mount All Volumes"] floating enable -for_window [title="Firefox"] floating enable border normal +for_window [title="Mount All Volumes"] floating enable border normal 5 +for_window [title="Network Connections"] floating enable border normal 5 +for_window [title="Screen Layout Editor"] floating enable border normal 5 +for_window [title="Slack"] floating enable border normal 5 +for_window [title="System Information"] floating enable border normal 5 +for_window [title="Volume Control"] floating enable border normal 5 +for_window [title="Zenmap"] floating enable border normal 5 # switch to workspace with urgent window automatically for_window [urgent=latest] focus diff --git a/.linux_items/include/live/airootfs/etc/skel/.zlogin b/.linux_items/include/live/airootfs/etc/skel/.zlogin index 5e685b31..1cf02237 100644 --- a/.linux_items/include/live/airootfs/etc/skel/.zlogin +++ b/.linux_items/include/live/airootfs/etc/skel/.zlogin @@ -1,10 +1,10 @@ setterm -blank 0 -powerdown 0 if [ "$(fgconsole 2>/dev/null)" -eq "1" ]; then + if fgrep -q "i3" /proc/cmdline; then + sed -i -r 's/#(own_window_type override)/\1/' ~/.conkyrc + sed -i -r 's/openbox-session/i3/' ~/.xinitrc + fi if ! fgrep -q "nox" /proc/cmdline; then - if fgrep -q "i3" /proc/cmdline; then - sed -i -r 's/#(own_window_type override)/\1/' ~/.conkyrc - sed -i -r 's/openbox-session/i3/' ~/.xinitrc - fi startx else hw-diags cli