finally have a proper determination of laptop
This commit is contained in:
parent
eabac7dcfa
commit
eebfc39eb9
|
@ -1 +1 @@
|
|||
Subproject commit 048cf41e0aa5a391948d62e6168d6e54279cf627
|
||||
Subproject commit 0fb85341916b6de1c5cd6ddf3e8472292a93a303
|
4812
awesome/fennel.lua
4812
awesome/fennel.lua
File diff suppressed because it is too large
Load diff
|
@ -81,13 +81,15 @@
|
|||
(local shift "Shift")
|
||||
(local ctrl "Control")
|
||||
(local alt "Mod1")
|
||||
(local comp [])
|
||||
|
||||
;; Set hostname so that we can utilize specific features on different machines
|
||||
(awful.spawn.easy_async "cat /etc/hostname" (fn [ stdout stderr reason exit_code ]
|
||||
(if (= "syl\n" stdout)
|
||||
(global laptop true)
|
||||
(global laptop false))))
|
||||
(local laptop false)
|
||||
;; determine whether using laptop
|
||||
(local file (io.open "/etc/hostname"))
|
||||
(io.input file)
|
||||
(local laptop (if (= (io.read) "syl")
|
||||
true
|
||||
false))
|
||||
(io.close file)
|
||||
|
||||
;; Table of layouts to cover with awful.layout.inc, order matters.
|
||||
(set awful.layout.layouts [
|
||||
|
@ -682,6 +684,7 @@
|
|||
(when (= c.class "mpv") (awful.placement.centered c))
|
||||
(when (= c.class "imv") (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))
|
||||
(awful.client.focus.byidx 1)
|
||||
|
||||
|
|
|
@ -172,7 +172,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 "fflof"))
|
||||
(awful.key [modkey] "b" (fn [] (awful.spawn "qblof"))
|
||||
{:description "launch browser" :group "apps"})
|
||||
;; rofi
|
||||
(awful.key [] "Menu" (fn [] (awful.spawn "/home/chris/.config/rofi/launchers-git/launcher.sh"))
|
||||
|
|
|
@ -174,6 +174,19 @@
|
|||
}
|
||||
}
|
||||
;; floating windows
|
||||
{
|
||||
:rule_any {
|
||||
:class [
|
||||
"Libre Presenter"
|
||||
]}
|
||||
:properties {
|
||||
:floating true
|
||||
:raise true
|
||||
:screen awful.screen.preferred
|
||||
:height (dpi 850)
|
||||
:width (dpi 1450)
|
||||
}
|
||||
}
|
||||
{
|
||||
:rule_any {
|
||||
:class [
|
||||
|
@ -184,7 +197,7 @@
|
|||
"ffplay"
|
||||
"Junction"
|
||||
"junction"
|
||||
"Church Presenter"
|
||||
"Libre Presenter"
|
||||
"pinentry-qt"
|
||||
]
|
||||
:name [
|
||||
|
|
|
@ -765,7 +765,7 @@ c.colors.webpage.darkmode.contrast = 0.5
|
|||
## `colors.webpage.darkmode.threshold.background` to 205. - "With
|
||||
## selective inversion of everything": Combines the two variants above.
|
||||
## 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
|
||||
## `colors.webpage.darkmode.algorithm` is set to `lightness-hsl` or
|
||||
|
|
Loading…
Reference in a new issue