Merge branch 'master' of gitlab.com:chriscochrun/dotfiles

This commit is contained in:
Chris Cochrun 2021-08-14 10:20:21 -05:00
commit 21ea41028d
14 changed files with 228 additions and 70 deletions

View file

@ -79,7 +79,7 @@
(if (= "syl\n" stdout)
(global laptop true)
(global laptop false))))
(local laptop true)
(local laptop false)
;; Table of layouts to cover with awful.layout.inc, order matters.
(set awful.layout.layouts [
@ -239,8 +239,9 @@
:id "icon_role"
:widget wibox.widget.imagebox
}
:margins 2
:margins 6
:widget wibox.container.margin
:layout wibox.layout.align.horizontal
}
2 {
:id "text_role"
@ -251,6 +252,7 @@
:left (dpi 10)
:right (dpi 10)
:widget wibox.container.margin
:layout wibox.layout.align.horizontal
}
:id "background_role"
:widget wibox.container.background
@ -481,7 +483,7 @@
:shape gears.shape.rounded_bar
:bg beautiful.bg_normal
:fg beautiful.fg_normal
:opacity 0.85
:opacity 0.95
:screen s }))
(: s.mywibox :struts { :bottom (dpi 45) })
@ -595,6 +597,12 @@
(awful.client.focus.byidx 1)
(: c :activate [])))
(client.connect_signal "manage"
(fn [c]
;; Rounded windows done right
(when (not c.fullscreen)
(set c.shape (fn [cr w h]
(gears.shape.rounded_rect cr w h (dpi 15)))))))
(client.connect_signal "focus" (fn [c] (set c.border_color beautiful.border_focus)))
(client.connect_signal "unfocus" (fn [c] (set c.border_color beautiful.border_normal)))
@ -605,7 +613,7 @@
(awful.spawn "picom --experimental-backend")
(awful.spawn "/usr/lib/polkit-kde-authentication-agent-1")
(awful.spawn "feh --bg-fill /usr/share/wallpapaers/Flow/contents/images/5120x2880.jpg")
(awful.spawn "feh --bg-fill /usr/share/wallpapers/Flow/contents/images/5120x2880.jpg")
(awful.spawn "caffeine")
(awful.spawn "libinput-gestures-setup start")
(awful.spawn "bluetoothctl power on")

View file

@ -128,12 +128,14 @@
;; 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 alt ] "d" (fn [] (awful.spawn "dolphin"))
{:description "dolphin" :group "apps" })
(awful.key [ modkey shift ] "d" (fn [] (awful.spawn "dolphin"))
{:description "launch dolphin file browser" :group "apps" })
(awful.key [ modkey ] "x" (fn [] (awful.spawn "emacsclient -c -e '(org-capture)'"))
{:description "launch scratchpad in new emacs frame" :group "apps" })
(awful.key [ modkey ] "'" (fn [] (awful.spawn "emacsclient -e '(org-agenda-list)'"
{:name "*Org Agenda(a)*" :floating true :placement awful.placement.centered :class "org-agenda" :instance "org-agenda"}))
{:name "*Org Agenda(a)*" :floating true :placement awful.placement.centered :class "org-agenda" :instance "org-agenda"}))
{: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" })

View file

@ -19,7 +19,8 @@
:screen awful.screen.preferred
:size_hints_honor false
:placement awful.placement.no_overlap
:shape gears.shape.rounded_rect
:shape_clip gears.shape.rounded_rect
:shape_bounding gears.shape.rounded_rect
}
}
@ -41,6 +42,35 @@
:placement (+ awful.placement.no_offscreen awful.placement.centered)
}
}
;; Davinci Resolve is fullscreen
{
:rule_any {
:instance [
"resolve"
]
:class [
"resolve"
]
}
:properties {
:floating true
:fullscreen true
}
}
{
:rule_any {
:name [
"Secondary Screen"
]
}
:properties {
:screen 2
:floating true
:fullscreen true
:size_hints_honor false
}
}
;; sxiv floating on main screen for quick picture viewing
{
:rule_any {

View file

@ -93,7 +93,9 @@ theme.tasklist_bg = theme.red
-- notification_font
-- notification_[bg|fg]
-- notification_[width|height|margin]
theme.notification_margin = 4
theme.notification_margin = dpi(10)
theme.notification_border_width = dpi(0)
theme.notification_shape = gears.shape.rounded_rect
-- notification_[border_color|border_width|shape|opacity]
-- Variables set for theming the menu: