couple of changes 😓

This commit is contained in:
Thomas Ruoff
2021-11-28 23:49:31 +01:00
parent 662fa3f5b1
commit c0af622d2b
8 changed files with 27 additions and 21 deletions

View File

@@ -1,5 +1,5 @@
#!/usr/bin/env bash
exec 2>&1 > >(tee -i /tmp/hlwm-autostart.log)
exec 2>&1 >> >(tee -i /tmp/hlwm-autostart.log)
PIDS_FILE=/tmp/hlwm-autostart-pids
@@ -15,8 +15,7 @@ cd $(dirname $0)
source ./gruvbox_colors.sh
OLD_PIDS=$(cat $PIDS_FILE)
kill $(echo $OLD_PIDS)
cat $PIDS_FILE | xargs kill
rm $PIDS_FILE
hc emit_hook reload
@@ -43,11 +42,8 @@ for monitor in $(hc list_monitors | cut -d: -f1) ; do
./statusbar.sh $monitor & store_pid
done
./tray.sh & store_pid
udiskie --tray & store_pid
systemctl --user restart sxhkd
systemctl --user restart xautolock
systemctl --user restart battery-warning.timer
wmname LG3D
systemctl --user restart hlwm-session.target
#systemctl --user restart battery-warning.timer

View File

@@ -14,7 +14,7 @@ hc keybind $Mod-Shift-q close
hc keybind $Mod-Shift-r reload
# tags
TAG_NAMES=( {1..9} 0 )
TAG_NAMES=( "www" "term" "code" "slack" "zoom" {6..9} 0)
TAG_KEYS=( {1..9} 0 )
hc rename default "${TAG_NAMES[0]}" || true

View File

@@ -1,14 +1,18 @@
#!/usr/bin/env node
'use strict';
var linuxBattery = require('linux-battery');
const linuxBattery = require('linux-battery');
async function run() {
try {
const batteries = await linuxBattery();
batteries.forEach(battery => {
var color = battery.warningLevel !== 'none' ? '#ff0000' : '#eee8d5';
var stateSymbol = battery.state === 'charging' ? '↑' : '↓';
if (battery.powerSupply === 'no') {
return '';
}
const color = battery.warningLevel !== 'none' ? '#ff0000' : '#eee8d5';
let stateSymbol = battery.state === 'charging' ? '↑' : '↓';
switch (battery.state) {
case 'charging':
stateSymbol = '↑';
@@ -22,9 +26,9 @@ async function run() {
default:
}
var timeLeft = battery.timeToFull || battery.timeToEmpty || '';
const timeLeft = battery.timeToFull || battery.timeToEmpty || '';
var text = `%{F${color}}${battery.percentage} ${stateSymbol} ${timeLeft}%{F-}`;
const text = `%{F${color}}${battery.percentage} ${stateSymbol} ${timeLeft}%{F-}`;
process.stdout.write(text);
});
} catch (error) {

View File

@@ -36,5 +36,5 @@ conky.config = {
};
conky.text = [[
%{c} load: ${loadavg 1} ${loadavg 2} ${loadavg 3} | ram: ${memperc}% | swap: ${swapperc} | processes: ${processes} | ${if_up wlan0} wlan:${wireless_link_qual_perc wlan0}% ${wireless_essid wlan0} |$endif ${if_up eth0:} lan on |$endif bat ${exec $HOME/.config/herbstluftwm/conky-bat/index.js}
%{c} ${exec sensors | grep -A 3 acpitz-acpi-0 | grep temp1 | awk '{print $2}'} | load: ${loadavg 1} ${loadavg 2} ${loadavg 3} | ram: ${memperc}% | swap: ${swapperc} | processes: ${processes} | ${if_up wlan0} wlan: ${wireless_bitrate} ${wireless_link_qual_perc wlan0}% ${wireless_essid wlan0} |$endif ${if_up eth0:} lan on |$endif bat ${exec $HOME/.config/herbstluftwm/conky-bat/index.js}
]];

View File

@@ -7,11 +7,17 @@ hc() {
# rules
hc unrule -F
hc rule focus=off # normally do not focus new clients
# eval: focus all new clients
hc rule focus=true
# give focus to most common terminals
hc rule class~'(.*[Rr]xvt.*|.*[Tt]erm|Konsole)' focus=on
hc rule class~'(.*[Rr]xvt.*|.*[Tt]erm|Konsole|kitty)' focus=on
hc rule windowtype~'_NET_WM_WINDOW_TYPE_(DIALOG|UTILITY|SPLASH)' pseudotile=on
hc rule windowtype='_NET_WM_WINDOW_TYPE_DIALOG' focus=on
hc rule windowtype='_NET_WM_WINDOW_TYPE_DIALOG' focus=on switchtag=on
hc rule windowtype~'_NET_WM_WINDOW_TYPE_(NOTIFICATION|DOCK)' manage=off
hc rule class='1Password' focus=on switchtag=on
hc rule class=zoom tag=zoom focus=on switchtag=on
hc rule class=Slack tag=slack focus=on switchtag=on
hc rule class=Pavucontrol tag=0 focus=on switchtag=on

View File

@@ -1,6 +1,6 @@
#!/usr/bin/env bash
font="Fira Code:pixelsize=14"
font="PragmataPro Mono Liga:pixelsize=15"
function uniq_linebuffered() {
awk -W interactive '$0 != l { print ; l=$0 ; fflush(); }' "$@"

BIN
wallpapers/gruvarch.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 48 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 MiB