A lot of awesome changes and trying to use kmonad

This commit is contained in:
Chris Cochrun 2021-08-14 09:43:52 -05:00
parent 7fdc04e4d4
commit f51ff07986
18 changed files with 246 additions and 80 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 [
@ -238,8 +238,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"
@ -250,6 +251,7 @@
:left (dpi 10)
:right (dpi 10)
:widget wibox.container.margin
:layout wibox.layout.align.horizontal
}
:id "background_role"
:widget wibox.container.background
@ -478,9 +480,9 @@
:stretch false
:type "dock"
:shape gears.shape.rounded_bar
:bg beautiful.transparent
:bg beautiful.bg_normal
:fg beautiful.fg_normal
:opacity 0.65
:opacity 0.95
:screen s }))
(: s.mywibox :struts { :bottom (dpi 45) })
@ -594,6 +596,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)))
@ -604,7 +612,7 @@
(awful.spawn "picom --experimental-backend")
(awful.spawn "/usr/lib/polkit-kde-authentication-agent-1")
(awful.spawn "feh --bg-fill /home/chris/Pictures/wallpapers/RoyalKing.png")
(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" })
@ -145,7 +147,7 @@
{:description "launch eshell in new emacs frame" :group "apps" })
(awful.key [ modkey ] "e" (fn [] (awful.spawn "emacsclient -c -a 'emacs'"))
{:description "launch new emacs frame" :group "apps" })
(awful.key [ modkey ] "p" (fn [] (awful.spawn "rofi-rbw"))
(awful.key [ modkey ] "p" (fn [] (awful.spawn "rofi-pass"))
{:description "select pass" :group "apps" })
(awful.key [ modkey shift ] "w" (fn [] (awful.spawn "libreoffice --writer"))
{:description "Open Writer" :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:
@ -110,7 +112,7 @@ theme.menu_width = dpi(100)
-- mstab
theme.mstab_bar_ontop = true -- whether you want to allow the bar to be ontop of clients
theme.mstab_dont_resize_slaves = true -- whether the tabbed stack windows should be smaller than the
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