A lot of changes to awesome to make it work better for laptop
This commit is contained in:
parent
5e07d99a76
commit
f0a6e67f49
7 changed files with 52 additions and 16 deletions
|
@ -71,7 +71,7 @@
|
|||
(global hostname-handle (io.popen "hostname"))
|
||||
(global hostname (hostname-handle:read "a"))
|
||||
(hostname-handle:close)
|
||||
(local laptop (= hostname "syl"))
|
||||
(local laptop true)
|
||||
|
||||
;; Table of layouts to cover with awful.layout.inc, order matters.
|
||||
(set awful.layout.layouts [
|
||||
|
@ -341,14 +341,26 @@
|
|||
:right (dpi 10)})
|
||||
|
||||
(set s.batterytext (awful.widget.watch "cat /sys/class/power_supply/BAT1/capacity" 30))
|
||||
(set s.batterytext2 (awful.widget.watch "cat /sys/class/power_supply/BAT2/capacity" 30))
|
||||
(set s.batteryicon (wibox.widget.textbox " "))
|
||||
(set s.batteryspace (wibox.widget.textbox " "))
|
||||
|
||||
(set s.batterywidget (wibox.widget {
|
||||
(set s.batterywidget { 1 { 1 { 1 (wibox.widget {
|
||||
1 s.batteryicon
|
||||
2 s.batterytext
|
||||
3 s.batteryspace
|
||||
:layout wibox.layout.fixed.horizontal}))
|
||||
4 s.batteryicon
|
||||
5 s.batterytext2
|
||||
6 s.batteryspace
|
||||
:layout wibox.layout.fixed.horizontal})
|
||||
:widget wibox.container.margin
|
||||
:left (dpi 10)}
|
||||
:widget wibox.container.background
|
||||
:shape gears.shape.rounded_bar
|
||||
:bg beautiful.bg_normal
|
||||
:fg beautiful.base0C}
|
||||
:widget wibox.container.margin
|
||||
:right (dpi 10)})
|
||||
|
||||
(set s.cputext (awful.widget.watch "cpu" 5))
|
||||
(set s.cpuicon (wibox.widget.textbox " "))
|
||||
|
@ -420,10 +432,10 @@
|
|||
:expand "outside"
|
||||
1 { ;; Left widgets
|
||||
1 {
|
||||
:layout wibox.layout.fixed.horizontal
|
||||
:layout wibox.layout.align.horizontal
|
||||
1 s.mytaglist
|
||||
2 s.mypromptbox
|
||||
3 s.mytasklist ;; Middle widget
|
||||
2 s.mytasklist ;; Middle widget
|
||||
3 s.myemptywidget
|
||||
}
|
||||
:left (dpi 10)
|
||||
:right (dpi 10)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue