From 1e9018bdce92cbbf78a4cbfeadb051c4f832d784 Mon Sep 17 00:00:00 2001 From: finga Date: Tue, 12 Jan 2016 11:37:40 +0100 Subject: [PATCH 01/13] adopted i3 config for work --- .i3/config | 6 +++--- .i3/i3status | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.i3/config b/.i3/config index e60c079..c78bab7 100644 --- a/.i3/config +++ b/.i3/config @@ -9,7 +9,7 @@ # # Please see http://i3wm.org/docs/userguide.html for a complete reference! -set $mod Mod1 +set $mod Mod4 # font for window titles. ISO 10646 = Unicode font -misc-fixed-medium-r-normal--13-120-75-75-C-70-iso10646-1 @@ -171,7 +171,7 @@ bar { position top tray_output primary workspace_buttons yes - mode hide + mode dock modifier $mod colors { @@ -182,4 +182,4 @@ bar { } } -exec i3-msg split vertical +exec ssh-agent \ No newline at end of file diff --git a/.i3/i3status b/.i3/i3status index 569f7cb..64f61ab 100644 --- a/.i3/i3status +++ b/.i3/i3status @@ -6,10 +6,10 @@ general { order += "ipv6" order += "ethernet eth0" order += "wireless wlan1" -order += "battery 0" +#order += "battery 0" order += "cpu_usage" order += "load" -order += "cpu_temperature 0" +#order += "cpu_temperature 0" order += "volume master" order += "time" From ce087c014bbdd59412602604bc2d7207bfd224fb Mon Sep 17 00:00:00 2001 From: finga Date: Thu, 21 Jan 2016 16:14:31 +0100 Subject: [PATCH 02/13] dual screen setup, clean up --- .i3/config | 35 +++++++++++++++++------------------ 1 file changed, 17 insertions(+), 18 deletions(-) diff --git a/.i3/config b/.i3/config index c78bab7..7cf3ed0 100644 --- a/.i3/config +++ b/.i3/config @@ -48,30 +48,16 @@ bindsym $mod+d exec dmenu_run bindsym $mod+Escape exec i3lock -c 000000 # change focus -bindsym $mod+j focus left -bindsym $mod+k focus down -bindsym $mod+l focus up -bindsym $mod+semicolon 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+J move left -bindsym $mod+Shift+K move down -bindsym $mod+Shift+L move up -bindsym $mod+Shift+colon 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 - -#client.orientation #ff0000 +bindsym $mod+Shift+Left move left 25 px +bindsym $mod+Shift+Down move down 25 px +bindsym $mod+Shift+Up move up 25 px +bindsym $mod+Shift+Right move right 25 px # split in horizontal orientation bindsym $mod+h split h @@ -160,6 +146,18 @@ mode "resize" { bindsym $mod+r mode "resize" +# dedicated workspaces +workspace "1" output VGA-0 +workspace "2" output VGA-0 +workspace "3" output VGA-0 +workspace "4" output VGA-0 +workspace "5" output VGA-0 +workspace "6" output VGA-1 +workspace "7" output VGA-1 +workspace "8" output VGA-1 +workspace "9" output VGA-1 +workspace "0" output VGA-1 + # colours client.focused #000000 #009900 #ffffff #ff0000 client.unfocused #000000 #005500 #000000 #ff0000 @@ -179,6 +177,7 @@ bar { focused_workspace #00cc00 #00ff00 #000000 inactive_workspace #00cc00 #008b00 #cccccc + #client.orientation #ff0000 } } From 8f966b04ec77f602a64e9aa980f4422af27269f4 Mon Sep 17 00:00:00 2001 From: finga Date: Mon, 25 Jan 2016 17:58:53 +0100 Subject: [PATCH 03/13] changed default workspace multiscreen orientation --- .i3/config | 21 +++++++++------------ 1 file changed, 9 insertions(+), 12 deletions(-) diff --git a/.i3/config b/.i3/config index 7cf3ed0..54be79b 100644 --- a/.i3/config +++ b/.i3/config @@ -115,8 +115,10 @@ bindsym $mod+Shift+parenright move container to workspace 10 # reload the configuration file bindsym $mod+Shift+C reload + # restart i3 inplace (preserves your layout/session, can be used to upgrade i3) bindsym $mod+Shift+R restart + # exit i3 (logs you out of your X session) bindsym $mod+Shift+E exit @@ -128,12 +130,6 @@ mode "resize" { # Pressing right will grow the window’s width. # Pressing up will shrink the window’s height. # Pressing down will grow the window’s height. - bindsym j resize shrink width 10 px or 10 ppt - bindsym k resize grow height 10 px or 10 ppt - bindsym l resize shrink height 10 px or 10 ppt - bindsym semicolon resize grow width 10 px or 10 ppt - - # same bindings, but for the arrow keys bindsym Right resize shrink width 10 px or 10 ppt bindsym Down resize grow height 10 px or 10 ppt bindsym Up resize shrink height 10 px or 10 ppt @@ -143,24 +139,25 @@ mode "resize" { bindsym Return mode "default" bindsym Escape mode "default" } - bindsym $mod+r mode "resize" # dedicated workspaces workspace "1" output VGA-0 -workspace "2" output VGA-0 +workspace "2" output VGA-1 workspace "3" output VGA-0 -workspace "4" output VGA-0 +workspace "4" output VGA-1 workspace "5" output VGA-0 workspace "6" output VGA-1 -workspace "7" output VGA-1 +workspace "7" output VGA-0 workspace "8" output VGA-1 -workspace "9" output VGA-1 +workspace "9" output VGA-0 workspace "0" output VGA-1 -# colours +# colors client.focused #000000 #009900 #ffffff #ff0000 +#client.focused_inactive client.unfocused #000000 #005500 #000000 #ff0000 +#client.urgent # Start i3bar to display a workspace bar (plus the system information i3status # finds out, if available) From 0594fb9214eb31e652b068c2dbd4caa36d3178d7 Mon Sep 17 00:00:00 2001 From: finga Date: Thu, 4 Feb 2016 08:57:20 +0100 Subject: [PATCH 04/13] remove comments --- .i3/config | 4 ---- 1 file changed, 4 deletions(-) diff --git a/.i3/config b/.i3/config index 54be79b..b2bbad2 100644 --- a/.i3/config +++ b/.i3/config @@ -126,10 +126,6 @@ bindsym $mod+Shift+E exit mode "resize" { # These bindings trigger as soon as you enter the resize mode - # Pressing left will shrink the window’s width. - # Pressing right will grow the window’s width. - # Pressing up will shrink the window’s height. - # Pressing down will grow the window’s height. bindsym Right resize shrink width 10 px or 10 ppt bindsym Down resize grow height 10 px or 10 ppt bindsym Up resize shrink height 10 px or 10 ppt From ed00746ccff059acd7656fa3a52a84c2bb7d645d Mon Sep 17 00:00:00 2001 From: finga Date: Mon, 20 Jun 2016 14:05:53 +0200 Subject: [PATCH 05/13] autoscreen --- .i3/config | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.i3/config b/.i3/config index b2bbad2..aa5ba81 100644 --- a/.i3/config +++ b/.i3/config @@ -174,4 +174,5 @@ bar { } } -exec ssh-agent \ No newline at end of file +exec ssh-agent +exec xrandr --output VGA-1 --auto --right-of VGA-0 From b947a6c49f8ebc10c172236a5feefbfa68ce850c Mon Sep 17 00:00:00 2001 From: finga Date: Wed, 13 Jul 2016 15:54:26 +0200 Subject: [PATCH 06/13] remove i3lock --- .i3/config | 3 --- 1 file changed, 3 deletions(-) diff --git a/.i3/config b/.i3/config index aa5ba81..be92189 100644 --- a/.i3/config +++ b/.i3/config @@ -44,9 +44,6 @@ bindsym $mod+Shift+Q kill # start dmenu (a program launcher) bindsym $mod+d exec dmenu_run -# lock screen (i3lock) -bindsym $mod+Escape exec i3lock -c 000000 - # change focus bindsym $mod+Left focus left bindsym $mod+Down focus down From 61e058c035c4b119974d1ea679b6ff9b6062a219 Mon Sep 17 00:00:00 2001 From: finga Date: Wed, 13 Jul 2016 15:54:40 +0200 Subject: [PATCH 07/13] remove wlan --- .i3/i3status | 5 ----- 1 file changed, 5 deletions(-) diff --git a/.i3/i3status b/.i3/i3status index 64f61ab..cb82d56 100644 --- a/.i3/i3status +++ b/.i3/i3status @@ -18,11 +18,6 @@ ethernet eth0 { format_down = "E: down" } -wireless wlan1 { - format_up = "W: %quality@%ip" - format_down = "W: down" -} - battery 0 { last_full_capacity = true format = "%status %percentage %remaining %consumption" ## %emptytime" From 9ae049896047a7b5c7d5026a62256d885c094097 Mon Sep 17 00:00:00 2001 From: finga Date: Tue, 16 Aug 2016 10:22:39 +0200 Subject: [PATCH 08/13] add background --- .i3/config | 1 + 1 file changed, 1 insertion(+) diff --git a/.i3/config b/.i3/config index be92189..06d902a 100644 --- a/.i3/config +++ b/.i3/config @@ -173,3 +173,4 @@ bar { exec ssh-agent exec xrandr --output VGA-1 --auto --right-of VGA-0 +exec feh --bg-scale ~/bg.jpg From ab39654aeacd659b6e6694f577ab0f182f6d3758 Mon Sep 17 00:00:00 2001 From: finga Date: Mon, 7 Nov 2016 14:30:28 +0100 Subject: [PATCH 09/13] add utc to statusbar --- .i3/i3status | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/.i3/i3status b/.i3/i3status index cb82d56..e2d653a 100644 --- a/.i3/i3status +++ b/.i3/i3status @@ -11,7 +11,8 @@ order += "cpu_usage" order += "load" #order += "cpu_temperature 0" order += "volume master" -order += "time" +order += "tztime home" +order += "tztime utc" ethernet eth0 { format_up = "E: %ip (%speed)" @@ -25,8 +26,14 @@ battery 0 { low_threshold = 20 } -time { - format = "%Y-%m-%d %H:%M:%S" +tztime home { + format = "%Y-%m-%d (%Z) %H:%M:%S" + timezone = "Europe/Vienna" +} + +tztime utc { + format = "(%Z) %H:%M:%S" + timezone = "Etc/UTC" } cpu_temperature 0 { From 1668e031bf9001a1b9c80afcaab34ea55647e734 Mon Sep 17 00:00:00 2001 From: finga Date: Tue, 25 Jul 2017 08:15:44 +0200 Subject: [PATCH 10/13] fit to new vm --- .i3/config | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/.i3/config b/.i3/config index 06d902a..f3faa6f 100644 --- a/.i3/config +++ b/.i3/config @@ -135,16 +135,16 @@ mode "resize" { bindsym $mod+r mode "resize" # dedicated workspaces -workspace "1" output VGA-0 -workspace "2" output VGA-1 -workspace "3" output VGA-0 -workspace "4" output VGA-1 -workspace "5" output VGA-0 -workspace "6" output VGA-1 -workspace "7" output VGA-0 -workspace "8" output VGA-1 -workspace "9" output VGA-0 -workspace "0" output VGA-1 +workspace "1" output VGA-1 +workspace "2" output VGA-2 +workspace "3" output VGA-1 +workspace "4" output VGA-2 +workspace "5" output VGA-1 +workspace "6" output VGA-2 +workspace "7" output VGA-1 +workspace "8" output VGA-2 +workspace "9" output VGA-1 +workspace "0" output VGA-2 # colors client.focused #000000 #009900 #ffffff #ff0000 @@ -172,5 +172,5 @@ bar { } exec ssh-agent -exec xrandr --output VGA-1 --auto --right-of VGA-0 +exec xrandr --output VGA-2 --auto --right-of VGA-1 exec feh --bg-scale ~/bg.jpg From 7de13f4ccce2e39abc33ea52a7ed2fe9c81a66b5 Mon Sep 17 00:00:00 2001 From: finga Date: Tue, 8 May 2018 14:59:54 +0200 Subject: [PATCH 11/13] update --- {.i3 => .config/i3}/config | 22 ++++++--------- .i3/i3status => .config/i3status/config | 37 ++++++++++++------------- .gitignore.d/i3 | 8 ++++++ 3 files changed, 35 insertions(+), 32 deletions(-) rename {.i3 => .config/i3}/config (93%) rename .i3/i3status => .config/i3status/config (81%) create mode 100644 .gitignore.d/i3 diff --git a/.i3/config b/.config/i3/config similarity index 93% rename from .i3/config rename to .config/i3/config index f3faa6f..3294176 100644 --- a/.i3/config +++ b/.config/i3/config @@ -11,8 +11,8 @@ set $mod Mod4 -# font for window titles. ISO 10646 = Unicode -font -misc-fixed-medium-r-normal--13-120-75-75-C-70-iso10646-1 +# font for window titles +font pango:monospace 8 # poweroff stuff set $mode_system System: (l) lock, (e) logout, (s) suspend, (h) hibernate, (r) reboot, (Shift+s) shutdown @@ -148,29 +148,25 @@ workspace "0" output VGA-2 # colors client.focused #000000 #009900 #ffffff #ff0000 -#client.focused_inactive client.unfocused #000000 #005500 #000000 #ff0000 -#client.urgent # Start i3bar to display a workspace bar (plus the system information i3status # finds out, if available) bar { - status_command i3status --config ~/.i3/i3status - position top - tray_output primary - workspace_buttons yes - mode dock - modifier $mod + status_command i3status --config ~/.config/i3status/config + position top + tray_output primary + workspace_buttons yes + mode dock + modifier $mod colors { statusline #00ff00 - focused_workspace #00cc00 #00ff00 #000000 inactive_workspace #00cc00 #008b00 #cccccc - #client.orientation #ff0000 } } exec ssh-agent exec xrandr --output VGA-2 --auto --right-of VGA-1 -exec feh --bg-scale ~/bg.jpg +# exec feh --bg-scale ~/bg.jpg diff --git a/.i3/i3status b/.config/i3status/config similarity index 81% rename from .i3/i3status rename to .config/i3status/config index e2d653a..14486d1 100644 --- a/.i3/i3status +++ b/.config/i3status/config @@ -3,13 +3,12 @@ general { interval = 1 } -order += "ipv6" +# order += "ipv6" order += "ethernet eth0" -order += "wireless wlan1" -#order += "battery 0" +order += "wireless wlan0" +order += "battery 0" order += "cpu_usage" order += "load" -#order += "cpu_temperature 0" order += "volume master" order += "tztime home" order += "tztime utc" @@ -19,6 +18,11 @@ ethernet eth0 { format_down = "E: down" } +wireless wlan0 { + format_up = "W: %quality@%ip" + format_down = "W: down" +} + battery 0 { last_full_capacity = true format = "%status %percentage %remaining %consumption" ## %emptytime" @@ -26,21 +30,6 @@ battery 0 { low_threshold = 20 } -tztime home { - format = "%Y-%m-%d (%Z) %H:%M:%S" - timezone = "Europe/Vienna" -} - -tztime utc { - format = "(%Z) %H:%M:%S" - timezone = "Etc/UTC" -} - -cpu_temperature 0 { - format = "%degrees °C" - path = "/sys/class/thermal/thermal_zone0/temp" -} - cpu_usage { format = "C: %usage" } @@ -55,3 +44,13 @@ volume master { mixer = "Master" mixer_idx = 0 } + +tztime home { + format = "%Y-%m-%d (%Z) %H:%M:%S" + timezone = "Europe/Vienna" +} + +tztime utc { + format = "(%Z) %H:%M:%S" + timezone = "Etc/UTC" +} diff --git a/.gitignore.d/i3 b/.gitignore.d/i3 new file mode 100644 index 0000000..8f02c8d --- /dev/null +++ b/.gitignore.d/i3 @@ -0,0 +1,8 @@ +* +!/.config +!/.config/i3 +!/.config/i3/config +!/.config/i3status +!/.config/i3status/config +!/.gitignore.d +!/.gitignore.d/i3 From 62ee035bd36b26811f4cfcda048e46152d32047b Mon Sep 17 00:00:00 2001 From: finga Date: Tue, 15 May 2018 11:26:38 +0200 Subject: [PATCH 12/13] remove hardcoded workspaces on displays --- .config/i3/config | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/.config/i3/config b/.config/i3/config index 3294176..97c4522 100644 --- a/.config/i3/config +++ b/.config/i3/config @@ -134,18 +134,6 @@ mode "resize" { } bindsym $mod+r mode "resize" -# dedicated workspaces -workspace "1" output VGA-1 -workspace "2" output VGA-2 -workspace "3" output VGA-1 -workspace "4" output VGA-2 -workspace "5" output VGA-1 -workspace "6" output VGA-2 -workspace "7" output VGA-1 -workspace "8" output VGA-2 -workspace "9" output VGA-1 -workspace "0" output VGA-2 - # colors client.focused #000000 #009900 #ffffff #ff0000 client.unfocused #000000 #005500 #000000 #ff0000 From 042fc630a9d71eb0e0bedb809558b9ee5e530377 Mon Sep 17 00:00:00 2001 From: finga Date: Tue, 22 May 2018 16:39:46 +0200 Subject: [PATCH 13/13] use em instead of i3-sensible-editor --- .config/i3/config | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.config/i3/config b/.config/i3/config index 97c4522..8d6be96 100644 --- a/.config/i3/config +++ b/.config/i3/config @@ -36,7 +36,7 @@ floating_modifier $mod bindsym $mod+Return exec i3-sensible-terminal # start emacs -bindsym $mod+Shift+Return exec i3-sensible-editor +bindsym $mod+Shift+Return exec em # kill focused window bindsym $mod+Shift+Q kill