battery + touchpad
This commit is contained in:
16
rc.lua
16
rc.lua
@@ -20,6 +20,11 @@ local hotkeys_popup = require("awful.hotkeys_popup")
|
||||
-- when client with a matching name is opened:
|
||||
require("awful.hotkeys_popup.keys")
|
||||
|
||||
-- volume widget
|
||||
local volume_widget = require('awesome-wm-widgets.pactl-widget.volume')
|
||||
-- Battery widget
|
||||
local battery_widget = require('awesome-wm-widgets.battery-widget.battery')
|
||||
|
||||
-- {{{ Error handling
|
||||
-- Check if awesome encountered an error during startup and fell back to
|
||||
-- another config (This code will only ever execute for the fallback config)
|
||||
@@ -156,11 +161,11 @@ local tasklist_buttons = gears.table.join(
|
||||
|
||||
|
||||
--{{ Battery Widget }} --
|
||||
baticon = wibox.widget.imagebox()
|
||||
baticon:set_image(beautiful.baticon)
|
||||
-- baticon = wibox.widget.imagebox()
|
||||
-- baticon:set_image(beautiful.baticon)
|
||||
|
||||
batwidget = wibox.widget.textbox()
|
||||
vicious.register( batwidget, vicious.widgets.bat, '<span background="#92B0A0" font="sans 11"><span font="Overpass 13.2" color="#FFFFFF" background="#92B0A0">$2% </span></span>', 30, "BAT1" )
|
||||
vicious.register( batwidget, vicious.widgets.bat, '<span background="#92B0A0" font="sans 11"><span font="Overpass 13.2" color="#FFFFFF" background="#224444AA">$2% </span></span>', 30, "BAT1" )
|
||||
|
||||
|
||||
----{{--| Volume / volume icon |----------
|
||||
@@ -244,9 +249,10 @@ awful.screen.connect_for_each_screen(function(s)
|
||||
local right_layout = wibox.layout.fixed.horizontal()
|
||||
right_layout:add(wibox.widget.systray())
|
||||
right_layout:add(mykeyboardlayout)
|
||||
right_layout:add(baticon)
|
||||
right_layout:add(battery_widget({display_notification=true}))
|
||||
right_layout:add(batwidget)
|
||||
right_layout:add(volumeicon)
|
||||
-- right_layout:add(volumeicon)
|
||||
right_layout:add(volume_widget())
|
||||
right_layout:add(mytextclock)
|
||||
right_layout:add(s.mylayoutbox)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user