From 18ed1ad83e828b8dc8508a2662b6569f0fda0592 Mon Sep 17 00:00:00 2001 From: Joachim Nielandt Date: Thu, 28 Oct 2021 16:47:22 +0200 Subject: [PATCH] Added default workspace positioning. --- dot_dotfiles/i3/config | 8 +++ dot_dotfiles/i3/workspace-9.json | 118 +++++++++++++++++++++++++++++++ dot_dotfiles/polybar/config.tmpl | 5 +- 3 files changed, 129 insertions(+), 2 deletions(-) create mode 100644 dot_dotfiles/i3/workspace-9.json diff --git a/dot_dotfiles/i3/config b/dot_dotfiles/i3/config index 389dc8a..7c5fd52 100644 --- a/dot_dotfiles/i3/config +++ b/dot_dotfiles/i3/config @@ -37,14 +37,22 @@ set $wsright "12:" # using workspace names here, otherwise doesn't work as expected # assign [class="Chromium"] $ws1 assign [class="Thunderbird"] $ws2 + +# workspace 9: chat assign [class="Slack"] $ws9 assign [class="Mattermost"] $ws9 assign [class="Hamsket"] $ws9 +assign [class="discord"] $ws9 +assign [class="signal"] $ws9 +assign [class="microsoft teams - preview"] $ws9 + assign [class="Wfica_Seamless"] $ws10 #assign [class="jetbrains-idea"] 7 #assign [class="jetbrains-webstorm"] 8 #assign [class="jetbrains-datagrip"] 9 +exec --no-startup-id "i3-msg 'workspace 9:9; append_layout /home/joachim/.config/i3/workspace-9.json'" + # i3-gaps gaps inner 10 gaps outer 5 diff --git a/dot_dotfiles/i3/workspace-9.json b/dot_dotfiles/i3/workspace-9.json new file mode 100644 index 0000000..860bc60 --- /dev/null +++ b/dot_dotfiles/i3/workspace-9.json @@ -0,0 +1,118 @@ +{ + "border": "normal", + "floating": "auto_off", + "layout": "splitv", + "marks": [], + "percent": 0.4, + "type": "con", + "nodes": [ + { + "border": "pixel", + "current_border_width": 2, + "floating": "auto_off", + "geometry": { + "height": 982, + "width": 1886, + "x": 1937, + "y": 713 + }, + "marks": [], + "name": "Tron intorduction | Microsoft Teams", + "percent": 0.7, + "swallows": [ + { + "class": "^Microsoft\\ Teams\\ \\-\\ Preview$", + "instance": "^microsoft\\ teams\\ \\-\\ preview$", + "machine": "^jnielandt$", + "title": "^Tron\\ intorduction\\ \\|\\ Microsoft\\ Teams$", + "window_role": "^browser\\-window$" + } + ], + "type": "con" + }, + { + "border": "pixel", + "current_border_width": 2, + "floating": "auto_off", + "geometry": { + "height": 500, + "width": 1000, + "x": 1937, + "y": 732 + }, + "marks": [], + "name": "Discord", + "percent": 0.3, + "swallows": [ + { + "class": "^discord$", + "instance": "^discord$", + "machine": "^jnielandt$", + "title": "^Discord$", + "window_role": "^browser\\-window$" + } + ], + "type": "con" + } + ] +} + +{ + "border": "normal", + "floating": "auto_off", + "layout": "splitv", + "marks": [], + "percent": 0.6, + "type": "con", + "nodes": [ + { + "border": "pixel", + "current_border_width": 2, + "floating": "auto_off", + "geometry": { + "height": 687, + "width": 936, + "x": 967, + "y": 376 + }, + "marks": [], + "name": "Slack | dn_dutch | DN", + "percent": 0.7, + "swallows": [ + { + "class": "^Slack$", + "instance": "^slack$", + "machine": "^jnielandt$", + "title": "^Slack\\ \\|\\ dn_dutch\\ \\|\\ DN$", + "window_role": "^browser\\-window$" + } + ], + "type": "con" + }, + { + "border": "pixel", + "current_border_width": 2, + "floating": "auto_off", + "geometry": { + "height": 610, + "width": 2526, + "x": 1937, + "y": 415 + }, + "marks": [], + "name": "Signal", + "percent": 0.3, + "swallows": [ + { + "class": "^Signal$", + "instance": "^signal$", + "machine": "^jnielandt$", + "title": "^Signal$", + "window_role": "^browser\\-window$" + } + ], + "type": "con" + } + ] +} + diff --git a/dot_dotfiles/polybar/config.tmpl b/dot_dotfiles/polybar/config.tmpl index 2d9b5f6..c18974e 100644 --- a/dot_dotfiles/polybar/config.tmpl +++ b/dot_dotfiles/polybar/config.tmpl @@ -280,6 +280,7 @@ strip-wsnumbers = true ws-icon-default = ﱤ ; mode menu styling +label-mode = %mode% label-mode-padding = 1 label-mode-foreground = ${colors.light0_hard} label-mode-background = ${colors.dark2} @@ -291,9 +292,9 @@ label-unfocused = ·%name% label-visible = ·%name% label-urgent = ·%name% -label-focused-foreground = ${colors.light0_hard} +label-focused-foreground = ${colors.bright_green} label-unfocused-foreground = ${colors.light0_hard} -label-visible-foreground = ${colors.light0_hard} +label-visible-foreground = ${colors.neutral_green} label-urgent-foreground = ${colors.bright_orange} label-focused-padding = 1