From 59683479e5f95dd95bb3d02c876bef0de4ab821f Mon Sep 17 00:00:00 2001 From: Shaun Reed Date: Sun, 23 Feb 2020 14:13:27 +0000 Subject: [PATCH] Update polybar for use on laptop --- .config/polybar/config | 17 +++++++++-------- .local/bin/i3scripts/info-idle | 2 +- 2 files changed, 10 insertions(+), 9 deletions(-) diff --git a/.config/polybar/config b/.config/polybar/config index 7110528..2873291 100644 --- a/.config/polybar/config +++ b/.config/polybar/config @@ -54,7 +54,7 @@ padding-right = 6 module-margin-left = 4 module-margin-right = 6 -; Font ssettings, order matters +; Font settings, order matters ; Top font takes priority over following ;font-0 = Source Code Pro:size=10;0 font-0 = NotoSans-Regular:size=8;0 @@ -108,7 +108,7 @@ tail = true type = internal/fs ; Mountpoints to display mount-0 = / -mount-1 = /home +;mount-1 = /home ;mount-2 = /var ; Seconds to sleep between updates ; Default: 30 @@ -308,15 +308,16 @@ menu-0-4-exec = i3lock -c 000000 [module/caffeine] type = custom/menu format = -label-open = "  " -label-close = "  " +label-open = "  " +label-close = "  " label-open-padding = 0 label-close-padding = 1 label-separator = " " -menu-0-0 = " ﮣ " -menu-0-0-exec = source /home/kapper/.local/bin/i3scripts/xoffee enable -menu-0-1 = " ﮤ " -menu-0-1-exec = source /home/kapper/.local/bin/i3scripts/xoffee disable + +menu-0-0 = " ON " +menu-0-0-exec = sh /home/kapper/.local/bin/i3scripts/xoffee disable +menu-0-1 = " OFF " +menu-0-1-exec = sh /home/kapper/.local/bin/i3scripts/xoffee enable ; CPU Core Usages ;;;;;;;;;;;;;;;;;;;;;;;;;; diff --git a/.local/bin/i3scripts/info-idle b/.local/bin/i3scripts/info-idle index ddfdf31..daeb370 100755 --- a/.local/bin/i3scripts/info-idle +++ b/.local/bin/i3scripts/info-idle @@ -1,6 +1,6 @@ #!/bin/bash ## Author: Shaun Reed | Contact: shaunrd0@gmail.com | URL: www.shaunreed.com ## -## ## +## Depends on xprintidle package ## ## A script to track system idle time within a polybar menu ## ############################################################################### # info-idle.sh