Skip to content

Instantly share code, notes, and snippets.

@Peetz0r
Created October 14, 2017 04:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Peetz0r/15caada97ecbc4111d1a656df983626b to your computer and use it in GitHub Desktop.
Save Peetz0r/15caada97ecbc4111d1a656df983626b to your computer and use it in GitHub Desktop.
echo [$(echo $(df -h --output=avail / /home | tail -n+2))]
echo ---
echo "$(df -h / /home | awk 1 ORS='\\n') | font=monospace"
#!/bin/bash
echo $(echo scale=1\; $(cat /sys/class/power_supply/BAT0/power_now)/1000000 | bc) Watt
echo ---
echo $(cat /sys/class/power_supply/BAT0/status) - \
$(echo scale=1\; $(cat /sys/class/power_supply/BAT0/power_now)/1000000 | bc) Watt \|\
size=16 bash=gnome-power-statistics terminal=false
echo ---
echo Spanning: $(echo scale=1\; $(cat /sys/class/power_supply/BAT0/voltage_now)/1000000 | bc) V
echo Lading: $(echo scale=1\; $(cat /sys/class/power_supply/BAT0/energy_now)/1000000 | bc) - \
$(echo scale=1\; $(cat /sys/class/power_supply/BAT0/energy_full)/1000000 | bc) - \
$(echo scale=1\; $(cat /sys/class/power_supply/BAT0/energy_full_design)/1000000 | bc) Wh
echo Cycles: $(cat /sys/class/power_supply/BAT0/cycle_count)x
.default-decoration {
min-height: 0; /* let the entry and button drive the titlebar size */
padding: 2px 0px;
}
.default-decoration .titlebutton {
min-height: 38px; /* tweak these two props to reduce button size */
min-width: 26px;
}
@import url('/usr/share/themes/Arc-Dark/gnome-shell/gnome-shell.css');
#panel * {
border: none;
}
stage {
font-size: 11pt;
}
#panel {
height: 42px;
border-image: none;
background-color: rgb(56, 60, 74);
}
#panel .window-buttons-box {
padding-left: 20px;
}
#panel .window-button {
padding: 12px 8px;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment