]> git.friedersdorff.com Git - max/dotfiles.git/commitdiff
Fix missing conkyrc, conky-i3bar and others for sway
authorMaximilian Friedersdorff <max@friedersdorff.com>
Mon, 25 Feb 2019 19:01:16 +0000 (19:01 +0000)
committerMaximilian Friedersdorff <max@friedersdorff.com>
Mon, 25 Feb 2019 19:01:16 +0000 (19:01 +0000)
sway/.config/sway/config.plutonium
sway/.conkyrc [new file with mode: 0644]
sway/.local/bin/conky-i3bar [new file with mode: 0755]

index 91dd7713ca18a736d1feddf21ab579cb274f3f67..0c7a4b33b33057e4e2e81287403216e8315ac98d 100644 (file)
@@ -18,3 +18,6 @@ bar {
 font pango:Liberation Mono 8
 
 set $mod Mod1
+
+output DP-1 background ~/Pictures/background.png center
+output DP-1 scale 2
diff --git a/sway/.conkyrc b/sway/.conkyrc
new file mode 100644 (file)
index 0000000..cc7d85e
--- /dev/null
@@ -0,0 +1,52 @@
+-- vim: ts=4 sw=4 noet ai cindent syntax=lua
+
+conky.config = {
+       out_to_x = false,
+       own_window = false,
+       out_to_console = true,
+       short_units = true,
+       update_interval = 0.5,
+       background = false,
+       max_text_width = 0,
+       total_run_times = 0,
+       short_units = true,
+       if_up_strictness = 'address',
+       use_spacer = 'left',
+
+       cpu_avg_samples = 2,
+};
+
+conky.text = [[
+[
+  ${if_running mutt} 
+    {"full_text": "${new_mails mail_aber/Inbox} new mails", "color": "\#ffa500"},
+  ${endif}
+  {"full_text": "Home ${fs_free /home} Free", "color": "\#ffffff"},
+  {"full_text": "Root ${fs_free /root} Free", "color": "\#ffffff"},
+  {"full_text": "Disk r:${diskio_read} w:${diskio_write}", "color": "\#ffffff"},
+  {"full_text": "CPU ${cpu cpu0}%", "color": "\#ffffff"},
+  {
+    "full_text": "d:${downspeed eno1} u:${upspeed eno1} ${addr eno1}", 
+       "color":
+         ${if_match "${addr eno1}"=="No Address"}
+           "\#ff0000"
+         ${else}
+               "\#00ff00"
+         ${endif}
+  },
+  ${if_match "${addr tun0}"!="No Address"}
+       {"full_text": "VPN", "color": "\#00ff00"},
+  ${endif}
+  {
+       "full_text": "RAM ${memperc}%", 
+       "color": 
+         ${if_match ${memperc}<90}
+           "\#ffffff"
+         ${else}
+               "\#ff0000"
+         ${endif} 
+  },
+  {"full_text": "${time}", "color": "\#ffffff"}
+],
+]];
+
diff --git a/sway/.local/bin/conky-i3bar b/sway/.local/bin/conky-i3bar
new file mode 100755 (executable)
index 0000000..ad8d8fd
--- /dev/null
@@ -0,0 +1,9 @@
+#!/bin/sh
+
+echo '{"version":1}'
+
+echo '['
+
+echo '[],'
+
+exec conky -c ~/.conkyrc