Beginning volume widget
This commit is contained in:
parent
ae1c029d22
commit
93d99b81db
4 changed files with 16 additions and 11 deletions
|
@ -63,6 +63,10 @@
|
|||
(local ctrl "Control")
|
||||
(local alt "Mod1")
|
||||
|
||||
(fn get-volume [?callback]
|
||||
(let [cb (or ?callback (fn [] nil))]
|
||||
(awful.spawn.easy_async_with_shell "pamixer --get-volume" cb)))
|
||||
|
||||
;; Table of layouts to cover with awful.layout.inc, order matters.
|
||||
(set awful.layout.layouts [
|
||||
awful.layout.suit.tile
|
||||
|
@ -268,18 +272,19 @@
|
|||
:valign ""
|
||||
:widget wibox.widget.textbox}))
|
||||
|
||||
;; (set batterywidget (wibox.widget {
|
||||
;; :text battery1-capacity
|
||||
;; :align ""
|
||||
;; :valign ""
|
||||
;; :widget wibox.widget.textbox
|
||||
;; }))
|
||||
(set s.volumewidget (wibox.widget {
|
||||
:text "墳 get-volume "
|
||||
:align ""
|
||||
:valign ""
|
||||
:widget wibox.widget.textbox
|
||||
}))
|
||||
|
||||
(set s.myrightwidgets {
|
||||
1 {
|
||||
:layout wibox.layout.fixed.horizontal
|
||||
1 wibox.widget.systray
|
||||
2 s.mylayoutbox
|
||||
1 s.volumewidget
|
||||
2 wibox.widget.systray
|
||||
3 s.mylayoutbox
|
||||
}
|
||||
:widget wibox.container.background
|
||||
})
|
||||
|
|
|
@ -99,6 +99,8 @@
|
|||
{:description "launch dired in new emacs frame" :group "apps" })
|
||||
(awful.key [ modkey ] "i" (fn [] (awful.spawn "emacsclient -c -e '(mu4e)'"))
|
||||
{:description "launch mu4e in new emacs frame" :group "apps" })
|
||||
(awful.key [ modkey ] "e" (fn [] (awful.spawn "emacsclient -c -a 'emacs'"))
|
||||
{:description "launch new emacs frame" :group "apps" })
|
||||
;; rofi
|
||||
(awful.key [] "Menu" (fn [] (awful.spawn "/home/chris/.dotfiles/rofi/launchers-git/launcher.sh"))
|
||||
{:description "launch rofi" :group "launcher"})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue