making org-agenda work betterer
This commit is contained in:
parent
b8b9559e38
commit
86f0bd0030
4 changed files with 33 additions and 11 deletions
|
@ -634,6 +634,7 @@
|
||||||
(client.connect_signal
|
(client.connect_signal
|
||||||
"manage"
|
"manage"
|
||||||
(fn [c]
|
(fn [c]
|
||||||
|
|
||||||
;; Set the windows at the slave,
|
;; Set the windows at the slave,
|
||||||
;; i.e. put it at the end of others instead of setting it master.
|
;; i.e. put it at the end of others instead of setting it master.
|
||||||
(when (not awesome.startup) (awful.client.setslave c))
|
(when (not awesome.startup) (awful.client.setslave c))
|
||||||
|
@ -643,21 +644,42 @@
|
||||||
(not c.size_hints.program_position))
|
(not c.size_hints.program_position))
|
||||||
;; Prevent clients from being unreachable after screen count changes.
|
;; Prevent clients from being unreachable after screen count changes.
|
||||||
(awful.placement.no_offscreen c))
|
(awful.placement.no_offscreen c))
|
||||||
|
|
||||||
;; MPV wasn't centering right
|
;; 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)
|
(awful.client.focus.byidx 1)
|
||||||
|
|
||||||
|
;; Rounded windows done right
|
||||||
|
(when (not c.fullscreen)
|
||||||
|
(set c.shape (fn [cr w h]
|
||||||
|
(gears.shape.rounded_rect cr w h (dpi 15)))))
|
||||||
|
|
||||||
(: c :activate [])))
|
(: c :activate [])))
|
||||||
|
|
||||||
|
(client.connect_signal "property::maximized"
|
||||||
|
(fn [c]
|
||||||
|
(let [s c.screen]
|
||||||
|
(set s.mywibox (wibox {;; since we are using a wibox we have a lot we need to set
|
||||||
|
;; as opposed to what we normally need to do with a wibar
|
||||||
|
:position "bottom"
|
||||||
|
:x 0
|
||||||
|
:y s.geometry.height
|
||||||
|
:height (dpi 33)
|
||||||
|
:width s.geometry.width
|
||||||
|
:ontop false
|
||||||
|
:stretch false
|
||||||
|
:type "dock"
|
||||||
|
:shape gears.shape.rectangle
|
||||||
|
:bg beautiful.bg_normal
|
||||||
|
:fg beautiful.fg_normal
|
||||||
|
:opacity 0.9})))))
|
||||||
|
|
||||||
|
;; make fullscreen clients no longer rounded windows
|
||||||
(client.connect_signal "property::fullscreen"
|
(client.connect_signal "property::fullscreen"
|
||||||
(fn [c]
|
(fn [c]
|
||||||
(set c.shape (fn [cr w h]
|
(set c.shape (fn [cr w h]
|
||||||
(gears.shape.rectangle cr w h)))))
|
(gears.shape.rectangle cr w h)))))
|
||||||
(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 "focus" (fn [c] (set c.border_color beautiful.border_focus)))
|
||||||
(client.connect_signal "unfocus" (fn [c] (set c.border_color beautiful.border_normal)))
|
(client.connect_signal "unfocus" (fn [c] (set c.border_color beautiful.border_normal)))
|
||||||
|
@ -673,5 +695,5 @@
|
||||||
(awful.spawn "bluetoothctl power on")
|
(awful.spawn "bluetoothctl power on")
|
||||||
(awful.spawn "nextcloud --background")
|
(awful.spawn "nextcloud --background")
|
||||||
(awful.spawn "rbw-agent")
|
(awful.spawn "rbw-agent")
|
||||||
(awful.spawn "jellyfin-mpv-shim")
|
;; (awful.spawn "jellyfin-mpv-shim")
|
||||||
(awful.spawn "xset r rate 220 90")
|
(awful.spawn "xset r rate 220 90")
|
||||||
|
|
|
@ -166,7 +166,7 @@
|
||||||
{:description "select pass" :group "apps" })
|
{:description "select pass" :group "apps" })
|
||||||
(awful.key [ modkey shift ] "w" (fn [] (awful.spawn "libreoffice --writer"))
|
(awful.key [ modkey shift ] "w" (fn [] (awful.spawn "libreoffice --writer"))
|
||||||
{:description "Open Writer" :group "apps" })
|
{:description "Open Writer" :group "apps" })
|
||||||
(awful.key [modkey] "b" (fn [] (awful.spawn "qutebrowser"))
|
(awful.key [modkey] "b" (fn [] (awful.spawn "nyxt"))
|
||||||
{:description "launch browser" :group "apps"})
|
{:description "launch browser" :group "apps"})
|
||||||
;; rofi
|
;; rofi
|
||||||
(awful.key [] "Menu" (fn [] (awful.spawn "/home/chris/.dotfiles/rofi/launchers-git/launcher.sh"))
|
(awful.key [] "Menu" (fn [] (awful.spawn "/home/chris/.dotfiles/rofi/launchers-git/launcher.sh"))
|
||||||
|
|
|
@ -225,4 +225,4 @@ end
|
||||||
# end
|
# end
|
||||||
# end
|
# end
|
||||||
|
|
||||||
fm6000 -r -c blue
|
# fm6000 -r -c blue
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
[FileDialog]
|
[FileDialog]
|
||||||
history=@Invalid()
|
history=file:///home/chris
|
||||||
lastVisited=file:///home/chris/Downloads
|
lastVisited=file:///home/chris
|
||||||
qtVersion=5.15.2
|
qtVersion=5.15.2
|
||||||
shortcuts=file:, file:///home/chris
|
shortcuts=file:, file:///home/chris
|
||||||
sidebarWidth=116
|
sidebarWidth=116
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue