diff --git a/awesome/init.fnl b/awesome/init.fnl index 6ee2480..0530749 100644 --- a/awesome/init.fnl +++ b/awesome/init.fnl @@ -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)) diff --git a/awesome/rules.fnl b/awesome/rules.fnl index 0ae7130..d40bf14 100644 --- a/awesome/rules.fnl +++ b/awesome/rules.fnl @@ -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 diff --git a/picom.conf b/picom.conf index 8269f83..ec4e320 100644 --- a/picom.conf +++ b/picom.conf @@ -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'",