summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJonathan Bauer2021-05-19 10:28:34 +0200
committerJonathan Bauer2021-05-19 10:28:34 +0200
commitb71358ca55b8fc802396e33a57676c93ff58f542 (patch)
tree275e1149c39a43ca1de27d487d1307657b7254cd
parent[desktop-common] common desktop related files for DEs (diff)
downloadansible-bwlp-b71358ca55b8fc802396e33a57676c93ff58f542.tar.gz
ansible-bwlp-b71358ca55b8fc802396e33a57676c93ff58f542.tar.xz
ansible-bwlp-b71358ca55b8fc802396e33a57676c93ff58f542.zip
[desktop-i3] i3 installation
-rw-r--r--desktop-i3/files/etc/i3status.conf74
-rw-r--r--desktop-i3/tasks/main.yml17
2 files changed, 91 insertions, 0 deletions
diff --git a/desktop-i3/files/etc/i3status.conf b/desktop-i3/files/etc/i3status.conf
new file mode 100644
index 0000000..a490f88
--- /dev/null
+++ b/desktop-i3/files/etc/i3status.conf
@@ -0,0 +1,74 @@
+# i3status configuration file.
+# see "man i3status" for documentation.
+
+# It is important that this file is edited as UTF-8.
+# The following line should contain a sharp s:
+# ß
+# If the above line is not correctly displayed, fix your editor first!
+
+general {
+ colors = true
+ interval = 5
+}
+
+order += "read_file hostname"
+order += "ipv6"
+order += "wireless _first_"
+order += "ethernet br0"
+order += "read_file dnbd3"
+order += "battery all"
+order += "disk /"
+order += "load"
+order += "memory"
+order += "tztime local"
+
+ipv6 {
+ format_down = ""
+}
+
+wireless _first_ {
+ format_up = "W: (%quality at %essid, %bitrate) %ip"
+ format_down = ""
+}
+
+ethernet br0 {
+ format_up = "br0: %ip (%speed)"
+ format_down = "Network down"
+}
+
+read_file hostname {
+ color_good = "#ffffff"
+ path = "/etc/hostname"
+}
+
+read_file dnbd3 {
+ color_good = "#ffffff"
+ path = "/sys/block/dnbd0/net/cur_server_addr"
+ format = "DNBD3: %content"
+ format_bad = "No DNBD3"
+}
+
+battery all {
+ format = "%status %percentage %remaining"
+ format_down = ""
+}
+
+disk "/" {
+ format = "Temp free: %avail"
+ low_threshold = 2
+ threshold_type = gbytes_free
+}
+
+load {
+ format = "%1min"
+}
+
+memory {
+ format = "RAM: [ %used | %available ]"
+ threshold_degraded = "1G"
+ format_degraded = "MEMORY < %available"
+}
+
+tztime local {
+ format = "%Y-%m-%d %H:%M:%S"
+}
diff --git a/desktop-i3/tasks/main.yml b/desktop-i3/tasks/main.yml
new file mode 100644
index 0000000..9e58a22
--- /dev/null
+++ b/desktop-i3/tasks/main.yml
@@ -0,0 +1,17 @@
+---
+- name: Install i3 tiling window manager
+ apt:
+ name: i3
+ state: present
+ update_cache: yes
+
+- name: Remove i3 debug xsession
+ file:
+ name: "/usr/share/xsessions/i3-with-shmlog.desktop"
+ state: absent
+
+- name: Copy static files
+ copy:
+ src: files/
+ dest: /
+ become: yes