Addded configurable font to rofi menus

This commit is contained in:
Lucas Hernán Tarche 2021-07-05 16:58:58 -03:00
parent 00a3646140
commit 70f5226ebf
2 changed files with 6 additions and 3 deletions

View File

@ -4,9 +4,11 @@
local awful = require("awful")
local naughty = require("naughty")
local theme = require("theme")
local config = {}
local rofi_font = "\"" .. theme.mono_font .. "\""
--
-- Awesome WM
@ -21,8 +23,8 @@ config.awesome = {
-- Application launcher
application_launcher_check = "rofi -version",
application_launcher = "rofi -show drun -modi drun -show-icons -config " .. awful.util.getdir("config") .. "/assets/rofi/themes/paper-float.rasi",
application_launcher_cmd = "rofi -show run -config " .. awful.util.getdir("config") .. "/assets/rofi/themes/paper-float.rasi",
application_launcher = "rofi -show drun -modi drun -show-icons -config " .. awful.util.getdir("config") .. "/assets/rofi/themes/paper-float.rasi -font " .. rofi_font,
application_launcher_cmd = "rofi -show run -config " .. awful.util.getdir("config") .. "/assets/rofi/themes/paper-float.rasi -font " .. rofi_font,
-- Screen locker
lock_command = "i3lock --blur=5 -f -k --time-color=ffffffff --date-color=ffffffff --indicator --ring-color=aaaaaaaa",
@ -201,7 +203,7 @@ config.theme = awful.util.getdir("config") .. "/theme.lua"
config.screenshot_utility_command = "flameshot gui"
-- Run menu
config.windowSwitcher = "rofi -show window -config " .. awful.util.getdir("config") .. "/assets/rofi/themes/paper-float.rasi"
config.windowSwitcher = "rofi -show window -config " .. awful.util.getdir("config") .. "/assets/rofi/themes/paper-float.rasi -font " .. rofi_font
-- Media control
config.volume_osd_timeout = 2

View File

@ -17,6 +17,7 @@ local simple_awesome_path = awful.util.getdir("config")
local theme = {}
theme.font = "Noto Sans 12"
theme.mono_font = "Source Code Pro 11"
theme.bg_normal = "#222222"
theme.bg_focus = "#282828"