updates for awesome

This commit is contained in:
Chris Cochrun 2023-03-23 13:12:52 -05:00
parent bef2f4ab4a
commit 2af53d34de
3 changed files with 12 additions and 4 deletions

View file

@ -704,7 +704,7 @@
;; MPV wasn't centering right
(when (= c.class "mpv") (if laptop (set c.height (dpi 900))
(set c.height (dpi 1100))))
(set c.height (dpi 1800))))
(when (= c.class "mpv") (awful.placement.centered c))
(when (= c.class "imv") (awful.placement.centered c))
(when (= c.class "Sxiv") (awful.placement.centered c))

View file

@ -5,6 +5,13 @@
(local xresources (require "beautiful.xresources"))
(local dpi xresources.apply_dpi)
(local file (io.open "/etc/hostname"))
(io.input file)
(local laptop (if (= (io.read) "syl")
true
false))
(io.close file)
(local rules [
;; All clients match this rule
{
@ -41,7 +48,8 @@
:floating true
:raise true
;; :height (dpi 1200)
:width (dpi 1400)
:width (if laptop (dpi 1400)
(dpi 2000))
:screen 1
:sticky true
:placement awful.placement.centered

View file

@ -8,7 +8,7 @@ size-transition = true
spawn-center = true
# Corners
corner-radius = 18.0;
corner-radius = 12.0;
rounded-corners-exclude = [
#"window_type = 'normal'",
"class_g = 'awesome'",
@ -19,7 +19,7 @@ rounded-corners-exclude = [
"class_g = 'Thunderbird'",
# "_NET_WM_STATE@[0]:32a *= '_NET_WM_STATE_FULLSCREEN'",
];
round-borders = 18;
round-borders = 12;
round-borders-exclude = [
"class_g = 'Eww'",
#"class_g = 'TelegramDesktop'",