Idk I got crazy but mostly nyxt

This commit is contained in:
Chris Cochrun 2021-09-22 09:57:09 -05:00
parent 263d10c080
commit 1b2ce4207d
12 changed files with 198 additions and 137 deletions

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

View file

@ -32,15 +32,17 @@
;; Handle runtime errors after startup
(do
(var in_error false)
(awesome.connect_signal "debug::error" (fn [err]
;; Make sure we don't go into an endless error loop
(when (not in_error)
(set in_error true)
(naughty.notify {:preset naughty.config.presets.critical
:title "Oops, an error happened!"
:text (tostring err)})
(set in_error false)))))
(var in_error false)
(awesome.connect_signal "debug::error" (fn [err]
;; Make sure we don't go into an endless error loop
(when (not in_error)
(set in_error true)
(naughty.notify {:preset naughty.config.presets.critical
:title "Oops, an error happened!"
:text (tostring err)})
(set in_error false)))))
;; Variable definitions
;; Themes define colours, icons, font and wallpapers.
@ -72,7 +74,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 [
@ -644,11 +646,12 @@
(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
(when (not c.fullscreen)
(when (and (not c.fullscreen) (not (= c.name "Display Window")))
(set c.shape (fn [cr w h]
(gears.shape.rounded_rect cr w h (dpi 15)))))
@ -692,7 +695,7 @@
(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")
(awful.spawn "autorandr -c")

View file

@ -2,6 +2,8 @@
(local gears (require "gears"))
(local beautiful (require "beautiful"))
(local hotkeys_popup (require "awful.hotkeys_popup"))
(local xresources (require "beautiful.xresources"))
(local dpi xresources.apply_dpi)
(local bling (require "bling"))
;; (local awestore (require "awestore"))
@ -16,7 +18,7 @@
;; (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 xcenter (screen.primary.width))
(local agenda-scratch (bling.module.scratchpad {
:command "emacsclient -e '(chris/org-agenda)'"
@ -24,7 +26,7 @@
:sticky true
:autoclose true
:floating true
:geometry {:height 1300 :width 1500 :x 377 :y 73}
:geometry {:height (dpi 950) :width (dpi 900) :x (dpi 560) :y (dpi 73)}
:reapply true
:dont_focus_before_close true
;; :awestore {:x anim-x :y anim-y}
@ -169,7 +171,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/.config/rofi/launchers-git/launcher.sh"))

View file

@ -39,6 +39,7 @@
:raise true
:height (dpi 800)
:screen (screen.count)
:sticky true
:placement (+ awful.placement.no_offscreen awful.placement.centered)
}
}