From 26c66d7d8dfd414196cddaf9425a783432dde286 Mon Sep 17 00:00:00 2001 From: Johannes Findeisen Date: Mon, 6 Jul 2020 01:00:19 +0200 Subject: [PATCH] made the quake terminal size configurable --- .config/awesome/config.lua.example | 5 ++++- .config/awesome/lib/functions.lua | 12 ------------ .config/awesome/rc.lua | 4 ++-- 3 files changed, 6 insertions(+), 15 deletions(-) diff --git a/.config/awesome/config.lua.example b/.config/awesome/config.lua.example index 24ea1119..8f6eea21 100644 --- a/.config/awesome/config.lua.example +++ b/.config/awesome/config.lua.example @@ -7,6 +7,9 @@ config.font_awesome_size = "9" config.font_xterm = "Source Code Pro" config.font_xterm_size = "10" config.titlebars_enabled = "true" +config.cityid = "2810284" -- (Westerland, DE) +config.quake_width = 1024 +config.quake_height = 768 config.autostart = { --"kalu", --"amor", @@ -20,7 +23,7 @@ config.autostart = { "pamac-tray", --"/bin/bash /home/hanez/bin/steam.sh", "redshift", - "pidgin", + --"pidgin", "claws-mail", "blueman-applet", --"virt-manager", diff --git a/.config/awesome/lib/functions.lua b/.config/awesome/lib/functions.lua index ec84544b..9eaa69c0 100644 --- a/.config/awesome/lib/functions.lua +++ b/.config/awesome/lib/functions.lua @@ -19,15 +19,3 @@ function tablelength(T) return count end -local function set_wallpaper(s) - -- Wallpaper - if beautiful.wallpaper then - local wallpaper = beautiful.wallpaper - -- If wallpaper is a function, call it with the screen - if type(wallpaper) == "function" then - wallpaper = wallpaper(s) - end - gears.wallpaper.maximized(wallpaper, s, false) - --gears.wallpaper.centered(wallpaper, s, true) - end -end diff --git a/.config/awesome/rc.lua b/.config/awesome/rc.lua index 1f91887f..e091e8ba 100644 --- a/.config/awesome/rc.lua +++ b/.config/awesome/rc.lua @@ -225,8 +225,8 @@ awful.screen.connect_for_each_screen(function(s) -- Quake application s.quake = lain.util.quake({ app = terminal }) s.quake.horiz = "center" - s.quake.width = 1024 - s.quake.height = 768 + s.quake.width = config.quake_width + s.quake.height = config.quake_height -- Wallpaper set_wallpaper(s)