Colors and misc changes

This commit is contained in:
2022-04-15 19:49:41 +03:00
parent cee82b5305
commit 82a80a5997
6 changed files with 15 additions and 16 deletions

View File

@@ -1,7 +1,6 @@
local gears = require("gears")
local beautiful = require("beautiful")
local awful = require("awful")
local wibox = require("wibox")
function set_wallpaper(s)
if beautiful.wallpaper then
@@ -19,7 +18,7 @@ local function set_transparency(t)
-- Integer 0.xx/1.00
awful.spawn("sed -i 's/opacity: [0-9]*.[0-9]*/opacity: " .. t/100 .. "/g' /home/nick/.config/alacritty/alacritty.yml", false)
-- Binary xx/255
awful.spawn("sed -i 's/\"glassit.alpha\": [0-9]*/\"glassit.alpha\": " .. math.floor((t/100)*255 + 0.5) .. "/g' /home/nick/.config/Code/User/settings.json", false)
-- awful.spawn("sed -i 's/\"glassit.alpha\": [0-9]*/\"glassit.alpha\": " .. math.floor((t/100)*255 + 0.5) .. "/g' /home/nick/.config/Code/User/settings.json", false)
end
local theme = "abstract_office"
@@ -45,7 +44,7 @@ if theme == "nordic_legion" then
elseif theme == "abstract_office" then
beautiful.init(gears.filesystem.get_configuration_dir() .. "theme/abstract_office/theme.lua")
beautiful.wallpaper = "/home/nick/Pictures/wallpapers/abstract_office/Cage.jpg"
beautiful.wallpaper = "/home/nick/Pictures/wallpapers/abstract_office/Square.jpg"
-- Configure Glava
awful.spawn("sed -i 's/#request mod .*/#request mod bars/g' /home/nick/.config/glava/rc.glsl", false)