]> git.friedersdorff.com Git - max/saltfiles.git/blobdiff - states/i3/files/config.jinja
Create dirs
[max/saltfiles.git] / states / i3 / files / config.jinja
index 0f4c9b2b0464adbac017195deb399ed24232f146..f64f3e600296b3bd2b1e010c1db997deee1f244b 100644 (file)
@@ -26,7 +26,7 @@ set $white #f5deb3
 set $white_super #ffffff
 
 client.focused $black $yellow_super $black $black $black
-client.focused_inactive $black $black_super $white $black $black 
+client.focused_inactive $black $black_super $white $black $black
 
 set $mod Mod4
 
@@ -41,6 +41,7 @@ font pango:monospace 10
 # The combination of xss-lock, nm-applet and pactl is a popular choice, so
 # they are included here as an example. Modify as you see fit.
 
+exec xset dpms 600 900 0
 # 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.
 exec --no-startup-id xss-lock --transfer-sleep-lock -- i3lock -i ~/Pictures/lockscreen_full_blurred_1.png --nofork
@@ -49,7 +50,7 @@ exec --no-startup-id xss-lock --transfer-sleep-lock -- i3lock -i ~/Pictures/lock
 # and nm-applet is a desktop environment-independent system tray GUI for it.
 exec --no-startup-id nm-applet
 
-bindsym $mod+l exec systemctl suspend
+bindsym $mod+Shift+l exec systemctl suspend
 
 # Use pactl to adjust volume in PulseAudio.
 set $refresh_i3status killall -SIGUSR1 i3status
@@ -62,7 +63,7 @@ bindsym XF86AudioMicMute exec --no-startup-id pactl set-source-mute @DEFAULT_SOU
 floating_modifier $mod
 
 # start a terminal
-bindsym $mod+Return exec termite
+bindsym $mod+Return exec foot
 
 # kill focused window
 bindsym $mod+Shift+q kill
@@ -137,7 +138,6 @@ set $ws8 "8"
 set $ws9 "9"
 set $ws10 "10"
 
-set $music "Music"
 set $chat "Chat"
 
 # switch to workspace
@@ -151,7 +151,6 @@ bindsym $mod+7 workspace number $ws7
 bindsym $mod+8 workspace number $ws8
 bindsym $mod+9 workspace number $ws9
 bindsym $mod+0 workspace number $ws10
-bindsym $mod+m workspace $music
 bindsym $mod+z workspace $chat
 
 # move focused container to workspace
@@ -165,7 +164,6 @@ bindsym $mod+Shift+7 move container to workspace number $ws7
 bindsym $mod+Shift+8 move container to workspace number $ws8
 bindsym $mod+Shift+9 move container to workspace number $ws9
 bindsym $mod+Shift+0 move container to workspace number $ws10
-bindsym $mod+Shift+m move container to workspace $music
 bindsym $mod+Shift+z move container to workspace $chat
 
 # reload the configuration file
@@ -202,11 +200,18 @@ mode "resize" {
 
 bindsym $mod+p mode "resize"
 
+{% if host != 'baryte' %}
+# Slight gaps around windows
+gaps inner 6
+{% endif %}
+
+{% if host == 'barium' %}
 bar {
   id bar_left
+  status_command ~/.local/bin/conky-i3bar
   position top
-  output "HDMI-1"
-  font pango:Liberation Mono 12
+  output "DP-1"
+  font pango:Liberation Mono 11
   colors {
     background $black_super
     focused_background $black
@@ -239,8 +244,8 @@ bar {
   id bar_right
   status_command ~/.local/bin/conky-i3bar
   position top
-  output "DP-1"
-  font pango:Liberation Mono 12
+  output "DP-2"
+  font pango:Liberation Mono 13
   colors {
     background $black_super
     focused_background $black
@@ -252,26 +257,148 @@ bar {
   }
 }
 
-# Slight gaps around windows
-gaps inner 6
+focus_on_window_activation urgent
+no_focus [class="(!?.*pinentry.*)"]
 
 workspace 2 output HDMI-A-1
 workspace 4 output HDMI-A-1
 workspace 1 output DP-1
 workspace 3 output DP-1
 
-workspace $music output DP-1
-workspace $chat output DP-1 
+workspace $chat output DP-1
 
-assign [class="music"] workspace $music
-for_window [class="music"] move workspace number $music
 assign [class="qutebrowser"] workspace number $ws1
 for_window [class="qutebrowser"] move workspace number $ws1
 assign [class="zoom"] workspace $chat
 for_window [class="zoom"] move workspace $chat
 
-exec "termite --name 'music' -e 'tmux'"
 exec "zoom"
 
-exec mako
+{% elif host == 'baryte' %}
+bar {
+  id bar_left
+  status_command ~/.local/bin/conky-i3bar
+  position top
+  output "DP-3"
+  font pango:Liberation Mono 11
+  colors {
+    background $black_super
+    focused_background $black
+    focused_workspace $black_super $yellow_super $black
+    active_workspace $black_super $blue_super $black
+    inactive_workspace $black_super $black_super $white_super
+    urgent_workspace $black $red_super $white
+    separator $white
+  }
+}
+
+bar {
+  id bar_internal
+  status_command ~/.local/bin/conky-i3bar
+  position top
+  output "eDP-1"
+  font pango:Liberation Mono 12
+  colors {
+    background $black_super
+    focused_background $black
+    focused_workspace $black_super $yellow_super $black
+    active_workspace $black_super $blue_super $black
+    inactive_workspace $black_super $black_super $white_super
+    urgent_workspace $black $red_super $white
+    separator $white
+  }
+}
+
+bar {
+  id bar_right
+  status_command ~/.local/bin/conky-i3bar
+  position top
+  output "HDMI-1"
+  font pango:Liberation Mono 13
+  colors {
+    background $black_super
+    focused_background $black
+    focused_workspace $black_super $yellow_super $black
+    active_workspace $black_super $blue_super $black
+    inactive_workspace $black_super $black_super $white_super
+    urgent_workspace $black $red_super $white
+    separator $white
+  }
+}
+
+focus_on_window_activation urgent
+no_focus [class="(!?.*pinentry.*)"]
+
+workspace 2 output HDMI-1
+workspace 4 output HDMI-1
+workspace 1 output DP-3
+workspace 3 output DP-3
+
+workspace $chat output DP-3
+
+assign [class="qutebrowser"] workspace number $ws1
+for_window [class="qutebrowser"] move workspace number $ws1
+assign [class="zoom"] workspace $chat
+for_window [class="zoom"] move workspace $chat
+
+exec "zoom"
+
+
+{% elif host == 'dubnium' %}
+bar {
+  id bar_left
+  position top
+  output "DP-2"
+  font pango:Liberation Mono 12
+  colors {
+    background $black_super
+    focused_background $black
+    focused_workspace $black_super $yellow_super $black
+    active_workspace $black_super $blue_super $black
+    inactive_workspace $black_super $black_super $white_super
+    urgent_workspace $black $red_super $white
+    separator $white
+  }
+}
+
+bar {
+  id bar_right
+  status_command ~/.local/bin/conky-i3bar
+  position top
+  output "DP-0"
+  font pango:Liberation Mono 12
+  colors {
+    background $black_super
+    focused_background $black
+    focused_workspace $black_super $yellow_super $black
+    active_workspace $black_super $blue_super $black
+    inactive_workspace $black_super $black_super $white_super
+    urgent_workspace $black $red_super $white
+    separator $white
+  }
+}
+
+workspace 1 output DP-2
+workspace 2 output DP-0
+
+{% elif host == 'rhenium' %}
+bar {
+  id bar_right
+  status_command ~/.local/bin/conky-i3bar
+  position top
+  output "eDP-1"
+  font pango:Liberation Mono 12
+  colors {
+    background $black_super
+    focused_background $black
+    focused_workspace $black_super $yellow_super $black
+    active_workspace $black_super $blue_super $black
+    inactive_workspace $black_super $black_super $white_super
+    urgent_workspace $black $red_super $white
+    separator $white
+  }
+}
+{% endif %}
+
+exec dunst
 exec picom -i 0.95 -D 4