battery + touchpad
This commit is contained in:
@@ -13,3 +13,6 @@ run "xcompmgr" &
|
|||||||
run "conky" &
|
run "conky" &
|
||||||
run "nextcloud" &
|
run "nextcloud" &
|
||||||
run "nm-applet" &
|
run "nm-applet" &
|
||||||
|
|
||||||
|
# touchpad
|
||||||
|
xinput set-prop "$(xinput list --name-only | grep -i touch)" "libinput Tapping Enabled" 1
|
||||||
|
|||||||
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:
|
-- when client with a matching name is opened:
|
||||||
require("awful.hotkeys_popup.keys")
|
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
|
-- {{{ Error handling
|
||||||
-- Check if awesome encountered an error during startup and fell back to
|
-- Check if awesome encountered an error during startup and fell back to
|
||||||
-- another config (This code will only ever execute for the fallback config)
|
-- another config (This code will only ever execute for the fallback config)
|
||||||
@@ -156,11 +161,11 @@ local tasklist_buttons = gears.table.join(
|
|||||||
|
|
||||||
|
|
||||||
--{{ Battery Widget }} --
|
--{{ Battery Widget }} --
|
||||||
baticon = wibox.widget.imagebox()
|
-- baticon = wibox.widget.imagebox()
|
||||||
baticon:set_image(beautiful.baticon)
|
-- baticon:set_image(beautiful.baticon)
|
||||||
|
|
||||||
batwidget = wibox.widget.textbox()
|
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 |----------
|
----{{--| Volume / volume icon |----------
|
||||||
@@ -244,9 +249,10 @@ awful.screen.connect_for_each_screen(function(s)
|
|||||||
local right_layout = wibox.layout.fixed.horizontal()
|
local right_layout = wibox.layout.fixed.horizontal()
|
||||||
right_layout:add(wibox.widget.systray())
|
right_layout:add(wibox.widget.systray())
|
||||||
right_layout:add(mykeyboardlayout)
|
right_layout:add(mykeyboardlayout)
|
||||||
right_layout:add(baticon)
|
right_layout:add(battery_widget({display_notification=true}))
|
||||||
right_layout:add(batwidget)
|
right_layout:add(batwidget)
|
||||||
right_layout:add(volumeicon)
|
-- right_layout:add(volumeicon)
|
||||||
|
right_layout:add(volume_widget())
|
||||||
right_layout:add(mytextclock)
|
right_layout:add(mytextclock)
|
||||||
right_layout:add(s.mylayoutbox)
|
right_layout:add(s.mylayoutbox)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user