finally have a proper determination of laptop

This commit is contained in:
Chris Cochrun 2022-04-01 07:31:51 -05:00
parent eabac7dcfa
commit eebfc39eb9
6 changed files with 3717 additions and 1539 deletions

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

File diff suppressed because it is too large Load diff

View file

@ -81,13 +81,15 @@
(local shift "Shift") (local shift "Shift")
(local ctrl "Control") (local ctrl "Control")
(local alt "Mod1") (local alt "Mod1")
(local comp [])
;; Set hostname so that we can utilize specific features on different machines ;; determine whether using laptop
(awful.spawn.easy_async "cat /etc/hostname" (fn [ stdout stderr reason exit_code ] (local file (io.open "/etc/hostname"))
(if (= "syl\n" stdout) (io.input file)
(global laptop true) (local laptop (if (= (io.read) "syl")
(global laptop false)))) true
(local laptop false) false))
(io.close file)
;; Table of layouts to cover with awful.layout.inc, order matters. ;; Table of layouts to cover with awful.layout.inc, order matters.
(set awful.layout.layouts [ (set awful.layout.layouts [
@ -682,6 +684,7 @@
(when (= c.class "mpv") (awful.placement.centered c)) (when (= c.class "mpv") (awful.placement.centered c))
(when (= c.class "imv") (awful.placement.centered c)) (when (= c.class "imv") (awful.placement.centered c))
(when (= c.class "Sxiv") (awful.placement.centered c)) (when (= c.class "Sxiv") (awful.placement.centered c))
(when (= c.class "Libre Presenter") (awful.placement.centered c))
(when (= c.name "Display Window") (set c.fullscreen true)) (when (= c.name "Display Window") (set c.fullscreen true))
(awful.client.focus.byidx 1) (awful.client.focus.byidx 1)

View file

@ -172,7 +172,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 "fflof")) (awful.key [modkey] "b" (fn [] (awful.spawn "qblof"))
{:description "launch browser" :group "apps"}) {:description "launch browser" :group "apps"})
;; rofi ;; rofi
(awful.key [] "Menu" (fn [] (awful.spawn "/home/chris/.config/rofi/launchers-git/launcher.sh")) (awful.key [] "Menu" (fn [] (awful.spawn "/home/chris/.config/rofi/launchers-git/launcher.sh"))

View file

@ -174,6 +174,19 @@
} }
} }
;; floating windows ;; floating windows
{
:rule_any {
:class [
"Libre Presenter"
]}
:properties {
:floating true
:raise true
:screen awful.screen.preferred
:height (dpi 850)
:width (dpi 1450)
}
}
{ {
:rule_any { :rule_any {
:class [ :class [
@ -184,7 +197,7 @@
"ffplay" "ffplay"
"Junction" "Junction"
"junction" "junction"
"Church Presenter" "Libre Presenter"
"pinentry-qt" "pinentry-qt"
] ]
:name [ :name [

View file

@ -765,7 +765,7 @@ c.colors.webpage.darkmode.contrast = 0.5
## `colors.webpage.darkmode.threshold.background` to 205. - "With ## `colors.webpage.darkmode.threshold.background` to 205. - "With
## selective inversion of everything": Combines the two variants above. ## selective inversion of everything": Combines the two variants above.
## Type: Bool ## Type: Bool
c.colors.webpage.darkmode.enabled = False c.colors.webpage.darkmode.enabled = True
## Render all colors as grayscale. This only has an effect when ## Render all colors as grayscale. This only has an effect when
## `colors.webpage.darkmode.algorithm` is set to `lightness-hsl` or ## `colors.webpage.darkmode.algorithm` is set to `lightness-hsl` or