scratchpad from bling awesome

This commit is contained in:
Chris Cochrun 2021-09-08 09:27:25 -05:00
parent 0d7f3e5a89
commit 87ee1ba3d0
20 changed files with 724 additions and 117 deletions

@ -1 +1 @@
Subproject commit 048cf41e0aa5a391948d62e6168d6e54279cf627
Subproject commit 0fb85341916b6de1c5cd6ddf3e8472292a93a303

View file

@ -72,7 +72,7 @@
(if (= "syl\n" stdout)
(global laptop true)
(global laptop false))))
(local laptop false)
(local laptop true)
;; Table of layouts to cover with awful.layout.inc, order matters.
(set awful.layout.layouts [
@ -644,7 +644,7 @@
(awful.placement.no_offscreen c))
;; MPV wasn't centering right
;; (when (= c.class "mpv") (awful.placement.centered c))
(when (= c.class "mpv") (awful.placement.centered c))
(awful.client.focus.byidx 1)
;; Rounded windows done right
@ -694,3 +694,5 @@
(awful.spawn "rbw-agent")
;; (awful.spawn "jellyfin-mpv-shim")
(awful.spawn "xset r rate 220 90")
(awful.spawn "autorandr -c")

View file

@ -16,17 +16,19 @@
;; (local anim-y (awestore.tweened 1100 { :duration 200 :easing awestore.easing.cubic_in_out }))
;; (local anim-x (awestore.tweened 1920 { :duration 200 :easing awestore.easing.cubic_in_out }))
(local agenda-scratch (bling.module.scratchpad:new {
:command "emacsclient -e '(chris/org-agenda)'"
:rule [:name "org-agenda"]
:sticky true
:autoclose true
:floating true
:geometry {:height 900 :width 1200}
:reapply true
:dont_focus_before_close true
;; :awestore {:x anim-x :y anim-y}
}))
(local agenda-scratch (bling.module.scratchpad {
:command "emacsclient -e '(chris/org-agenda)'"
:rule {:name "org-agenda"}
:sticky true
:autoclose true
:floating true
:geometry {:height 1300 :width 1500 :x 377 :y 73}
:reapply true
:dont_focus_before_close true
;; :awestore {:x anim-x :y anim-y}
}))
(fn get-volume [?callback]
(let [cb (or ?callback (fn [] nil))]
@ -151,7 +153,7 @@
(awful.key [ modkey ] "x" (fn [] (awful.spawn "emacsclient -c -e '(org-capture)'"
{:floating true :placement awful.placement.centered :class "org-agenda" :instance "org-agenda"}))
{:description "launch scratchpad in new emacs frame" :group "apps" })
(awful.key [ modkey ] "'" (fn [] (awful.spawn "agenda-scratch"))
(awful.key [ modkey ] "'" (fn [] (agenda-scratch:toggle))
{:description "launch org-agenda in new emacs frame" :group "apps" })
(awful.key [ modkey alt ] "m" (fn [] (awful.spawn "emacsclient -c -e '(org-roam-capture)'"))
{:description "launch org-roam-capture in new emacs frame" :group "apps" })
@ -167,7 +169,7 @@
{:description "select pass" :group "apps" })
(awful.key [ modkey shift ] "w" (fn [] (awful.spawn "libreoffice --writer"))
{:description "Open Writer" :group "apps" })
(awful.key [modkey] "b" (fn [] (awful.spawn "nyxt"))
(awful.key [modkey] "b" (fn [] (awful.spawn "qutebrowser"))
{:description "launch browser" :group "apps"})
;; rofi
(awful.key [] "Menu" (fn [] (awful.spawn "/home/chris/.config/rofi/launchers-git/launcher.sh"))

View file

@ -84,9 +84,9 @@
:properties {
:floating true
:raise true
:placement (+ awful.placement.no_offscreen awful.placement.centered)
:height (dpi 600)
:width (dpi 900)
:placement (+ awful.placement.no_offscreen awful.placement.centered)
}
}
;; Emacs
@ -191,7 +191,7 @@
:properties {
:floating true
:raise true
:placement (+ awful.placement.no_offscreen awful.placement.centered)
:placement awful.placement.centered
}
}
{

View file

@ -117,15 +117,20 @@ theme.mstab_bar_ontop = false -- whether you want to allow the ba
theme.mstab_dont_resize_slaves = false -- whether the tabbed stack windows should be smaller than the
-- currently focused stack window (set it to true if you use
-- transparent terminals. False if you use shadows on solid ones
theme.mstab_bar_padding = "default" -- how much padding there should be between clients and your tabbar
-- by default it will adjust based on your useless gaps.
-- If you want a custom value. Set it to the number of pixels (int)
theme.mstab_tabbar_height = dpi(200)
theme.mstab_border_radius = dpi(5) -- border radius of the tabbar
theme.mstab_tabbar_height = 400
theme.tabbar_radius = 40
theme.tabbar_bg_normal = theme.bg_normal
theme.tabbar_fg_normal = theme.fg_normal
theme.tabbar_bg_focus = theme.bg_focus
theme.tabbar_fg_focus = theme.fg_focus
theme.mstab_border_radius = 50 -- border radius of the tabbar
theme.mstab_tabbar_position = "top" -- position of the tabbar (mstab currently does not support left,right)
theme.mstab_tabbar_style = "default" -- style of the tabbar ("default", "boxes" or "modern")
theme.mstab_bar_padding = "default" -- how much padding there should be between clients and your tabbar
theme.mstab_tabbar_position = "bottom" -- position of the tabbar (mstab currently does not support left,right)
theme.mstab_tabbar_style = "modern" -- style of the tabbar ("default", "boxes" or "modern")
-- defaults to the tabbar_style so only change if you want a
-- different style for mstab and tabbed
-- wibar