Beginning volume widget
This commit is contained in:
parent
ae1c029d22
commit
93d99b81db
|
@ -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"})
|
||||
|
|
|
@ -7,7 +7,4 @@
|
|||
config_version: 2
|
||||
settings:
|
||||
content.notifications:
|
||||
https://192.168.1.35: true
|
||||
https://kickass.onl: false
|
||||
https://staff.tfcconnection.org: true
|
||||
https://www.reddit.com: false
|
||||
|
|
|
@ -10,3 +10,4 @@ plex https://app.plex.tv/desktop#
|
|||
od https://odysee.com/$/following
|
||||
tml https://outlook.office.com/mail/inbox
|
||||
oned https://tfcconnection-my.sharepoint.com/personal/chris_tfcconnection_org/_layouts/15/onedrive.aspx
|
||||
bw https://bitwarden.tfcconnection.org/#/
|
||||
|
|
Loading…
Reference in a new issue