diff --git a/awesome/init.fnl b/awesome/init.fnl index 264d1a0..1270fae 100644 --- a/awesome/init.fnl +++ b/awesome/init.fnl @@ -51,6 +51,8 @@ (var editor (or (os.getenv "EDITOR") "emacsclient")) (var editor_cmd (.. terminal " -e " editor)) +;; (lambda battery-capacity (awful.spawn.easy_async "cat /sys/class/power_supply/BAT*/capacity")) + ;; Default modkey. ;; Usually, Mod4 is the key with a logo between Control and Alt. ;; If you do not like this or do not have such a key, @@ -117,6 +119,7 @@ (awful.button [] 4 (fn [t] (awful.tag.viewnext t.screen))) (awful.button [] 5 (fn [t] (awful.tag.viewprev t.screen))))) + (local tasklist_buttons (gears.table.join (awful.button [] 1 (fn [c] @@ -262,6 +265,13 @@ :valign "" :widget wibox.widget.textbox})) + ;; (set batterywidget (wibox.widget { + ;; :text battery1-capacity + ;; :align "" + ;; :valign "" + ;; :widget wibox.widget.textbox + ;; })) + (set s.myrightwidgets { 1 { :layout wibox.layout.fixed.horizontal diff --git a/awesome/keybindings.fnl b/awesome/keybindings.fnl index 87a510c..afa8503 100644 --- a/awesome/keybindings.fnl +++ b/awesome/keybindings.fnl @@ -97,6 +97,8 @@ ;; Programs (awful.key [ modkey ] "d" (fn [] (awful.spawn "emacsclient -c -e '(dired-jump)'")) {: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" }) ;; rofi (awful.key [] "Menu" (fn [] (awful.spawn "/home/chris/.dotfiles/rofi/launchers-git/launcher.sh")) {:description "launch rofi" :group "launcher"})