diff --git a/Makefile b/Makefile index 239db4a..feb7db0 100644 --- a/Makefile +++ b/Makefile @@ -67,9 +67,12 @@ gpg: echo -e "default-cache-ttl 1\nmax-cache-ttl 1" > ~/.gnupg/gpg-agent.conf; echo RELOADAGENT | gpg-connect-agent i3: + echo "sudo pacman -S nitrogen picom compton ttf-font-awesome" test -d ~/.config/i3 || \ mkdir -p ~/.config/i3 + mkdir -p ~/.config/i3status ln -s $(PWD)/sub/i3/config ~/.config/i3/config + ln -s $(PWD)/sub/i3/statusconfig ~/.config/i3status/config font: mkdir -p ~/.local/share/fonts diff --git a/sub/i3/config b/sub/i3/config index 8d25402..5240047 100644 --- a/sub/i3/config +++ b/sub/i3/config @@ -16,6 +16,10 @@ set $mod Mod4 exec --no-startup-id xset s off exec --no-startup-id xset dpms 0 0 0 + + + +exec --no-startup-id nitrogen --restore; sleep 1; compton -b # Font for window titles. Will also be used by the bar unless a different font # is used in the bar {} block below. font FiraCode:monospace 10 diff --git a/sub/i3/statusconfig b/sub/i3/statusconfig new file mode 100644 index 0000000..1bdb798 --- /dev/null +++ b/sub/i3/statusconfig @@ -0,0 +1,53 @@ +# 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 += "ipv6" +order += "wireless _first_" +order += "ethernet _first_" +order += "battery all" +order += "disk /" +order += "load" +order += "memory" +order += "tztime local" + +wireless _first_ { + format_up = " (%quality at %essid) %ip" + format_down = " down" +} + +ethernet _first_ { + format_up = " %ip (%speed)" + format_down = " down" +} + +battery all { + format = " %status %percentage %remaining" +} + +disk "/" { + format = " %avail" +} + +load { + format = "%1min" +} + +memory { + format = "%used | %available" + threshold_degraded = "1G" + format_degraded = "MEMORY < %available" +} + +tztime local { + format = " %Y-%m-%d  %H:%M:%S" +}