From 86f0bd003013d57292cfef6cab2d9ce2aea6183e Mon Sep 17 00:00:00 2001 From: Chris Cochrun Date: Thu, 2 Sep 2021 16:53:53 -0500 Subject: [PATCH] making org-agenda work betterer --- awesome/init.fnl | 36 ++++++++++++++++++++++------ awesome/keybindings.fnl | 2 +- fish/config.fish | 2 +- qutebrowser/qsettings/QtProject.conf | 4 ++-- 4 files changed, 33 insertions(+), 11 deletions(-) diff --git a/awesome/init.fnl b/awesome/init.fnl index 3dba051..dd09ddf 100644 --- a/awesome/init.fnl +++ b/awesome/init.fnl @@ -634,6 +634,7 @@ (client.connect_signal "manage" (fn [c] + ;; Set the windows at the slave, ;; i.e. put it at the end of others instead of setting it master. (when (not awesome.startup) (awful.client.setslave c)) @@ -643,21 +644,42 @@ (not c.size_hints.program_position)) ;; Prevent clients from being unreachable after screen count changes. (awful.placement.no_offscreen c)) + ;; MPV wasn't centering right (when (= c.class "mpv") (awful.placement.centered c)) + (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 []))) +(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" (fn [c] (set c.shape (fn [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 "unfocus" (fn [c] (set c.border_color beautiful.border_normal))) @@ -673,5 +695,5 @@ (awful.spawn "bluetoothctl power on") (awful.spawn "nextcloud --background") (awful.spawn "rbw-agent") -(awful.spawn "jellyfin-mpv-shim") +;; (awful.spawn "jellyfin-mpv-shim") (awful.spawn "xset r rate 220 90") diff --git a/awesome/keybindings.fnl b/awesome/keybindings.fnl index 5af5f8e..ff40037 100644 --- a/awesome/keybindings.fnl +++ b/awesome/keybindings.fnl @@ -166,7 +166,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 "qutebrowser")) + (awful.key [modkey] "b" (fn [] (awful.spawn "nyxt")) {:description "launch browser" :group "apps"}) ;; rofi (awful.key [] "Menu" (fn [] (awful.spawn "/home/chris/.dotfiles/rofi/launchers-git/launcher.sh")) diff --git a/fish/config.fish b/fish/config.fish index 5891d7f..12ee0a3 100644 --- a/fish/config.fish +++ b/fish/config.fish @@ -225,4 +225,4 @@ end # end # end -fm6000 -r -c blue +# fm6000 -r -c blue diff --git a/qutebrowser/qsettings/QtProject.conf b/qutebrowser/qsettings/QtProject.conf index 2153034..78a6ec6 100644 --- a/qutebrowser/qsettings/QtProject.conf +++ b/qutebrowser/qsettings/QtProject.conf @@ -1,6 +1,6 @@ [FileDialog] -history=@Invalid() -lastVisited=file:///home/chris/Downloads +history=file:///home/chris +lastVisited=file:///home/chris qtVersion=5.15.2 shortcuts=file:, file:///home/chris sidebarWidth=116