77a67f562ac5c7d4d32a246ca524b0f5795c8b79

Author
Pavle Portic <git@theedgeofrage.com>
Committer
Pavle Portic <git@theedgeofrage.com>
Date

Message

Use variables for custom i3 workspace names

Diff

 1diff --git a/dot_config/i3/config.tmpl b/dot_config/i3/config.tmpl
 2index a7e10697d1cea0c5be7a59802b432eef8e6e164a..b2813fc3f64b3fe4fa2bd75d14b96266de5bc60c 100644
 3--- a/dot_config/i3/config.tmpl
 4+++ b/dot_config/i3/config.tmpl
 5@@ -31,6 +31,10 @@ set $down n
 6 set $up e
 7 set $right i
 8 
 9+set $telegram " "
10+set $firefox " "
11+set $thunderbird " "
12+
13 # Font for window titles. Will also be used by the bar unless a different font
14 # is used in the bar {} block below.
15 font pango:MonoFont {{ .i3.font_size }}
16@@ -99,9 +103,9 @@ bindsym $mod+7 workspace number 7
17 bindsym $mod+8 workspace number 8
18 bindsym $mod+9 workspace number 9
19 bindsym $mod+0 workspace number 10
20-bindsym $mod+p workspace 
21-bindsym $mod+w workspace 
22-bindsym $mod+m workspace 
23+bindsym $mod+p workspace $telegram
24+bindsym $mod+w workspace $firefox
25+bindsym $mod+m workspace $thunderbird
26 
27 # move focused container to workspace
28 bindsym $mod+Shift+1 move container to workspace number 1
29@@ -114,9 +118,9 @@ bindsym $mod+Shift+7 move container to workspace number 7
30 bindsym $mod+Shift+8 move container to workspace number 8
31 bindsym $mod+Shift+9 move container to workspace number 9
32 bindsym $mod+Shift+0 move container to workspace number 10
33-bindsym $mod+Shift+p move container to workspace 
34-bindsym $mod+Shift+w move container to workspace 
35-bindsym $mod+Shift+m move container to workspace 
36+bindsym $mod+Shift+p move container to workspace $telegram
37+bindsym $mod+Shift+w move container to workspace $firefox
38+bindsym $mod+Shift+m move container to workspace $thunderbird
39 bindsym $mod+Shift+c reload
40 bindsym $mod+Shift+r restart
41 
42@@ -179,15 +183,13 @@ bindsym $mod+Print exec "pyazo -d"
43 workspace_layout tabbed
44 
45 # Auto-assign programs to certain workspaces
46-assign [class="(?i)firefox"] 
47-assign [class="(?i)chromium"] 
48-assign [class="Telegram"] 
49-assign [class="thunderbird"] 
50-assign [class="(?i)slack"] 
51+assign [class="(?i)firefox"] $firefox
52+assign [class="(?i)chromium"] $firefox
53+assign [class="Telegram"] $telegram
54+assign [class="thunderbird"] $thunderbird
55+assign [class="(?i)slack"] $telegram
56 for_window [class="Lxappearance"] floating enable
57-for_window [class="Spotify"] move to workspace 
58-for_window [class="tidal-hifi"] move to workspace 
59-for_window [class="deezer"] move to workspace 
60+for_window [class="tidal-hifi"] move to workspace $telegram
61 
62 new_window pixel 2
63 hide_edge_borders smart
64@@ -218,6 +220,7 @@ bindsym $mod+F12 mode "$mode_kb_select"
65 
66 bar {
67 	position top
68+	padding -2px 0 -1px
69 	tray_output none
70 	status_command ~/.local/share/bumblebee-status/bumblebee-status -c ~/.config/bumblebee-status/top.toml
71 	bindsym button4 nop
72@@ -233,6 +236,7 @@ bar {
73 
74 bar {
75 	position bottom
76+	padding -2px 0 -1px
77 	tray_output {{ .i3.tray_output }}
78 	status_command ~/.local/share/bumblebee-status/bumblebee-status -c ~/.config/bumblebee-status/bottom.toml
79 	bindsym button4 nop