From 93d99b81dbd232a1068d2cd8b16ab9fb4db970f4 Mon Sep 17 00:00:00 2001 From: Chris Cochrun Date: Wed, 18 Nov 2020 13:40:30 -0600 Subject: [PATCH] Beginning volume widget --- awesome/init.fnl | 21 +++++++++++++-------- awesome/keybindings.fnl | 2 ++ qutebrowser/autoconfig.yml | 3 --- qutebrowser/quickmarks | 1 + 4 files changed, 16 insertions(+), 11 deletions(-) diff --git a/awesome/init.fnl b/awesome/init.fnl index 9df3c4c..237f8dd 100644 --- a/awesome/init.fnl +++ b/awesome/init.fnl @@ -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 }) diff --git a/awesome/keybindings.fnl b/awesome/keybindings.fnl index 3400603..f861e7d 100644 --- a/awesome/keybindings.fnl +++ b/awesome/keybindings.fnl @@ -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"}) diff --git a/qutebrowser/autoconfig.yml b/qutebrowser/autoconfig.yml index c3d864c..ac827d3 100644 --- a/qutebrowser/autoconfig.yml +++ b/qutebrowser/autoconfig.yml @@ -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 diff --git a/qutebrowser/quickmarks b/qutebrowser/quickmarks index 819ad48..0b9db87 100644 --- a/qutebrowser/quickmarks +++ b/qutebrowser/quickmarks @@ -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/#/