diff options
author | Nguyễn Gia Phong <cnx@loang.net> | 2024-05-13 02:51:22 +0900 |
---|---|---|
committer | Nguyễn Gia Phong <cnx@loang.net> | 2024-05-13 02:53:06 +0900 |
commit | 6296dac9ba0692707d6f6d608b828f41106b52b9 (patch) | |
tree | 9582f3db603497ae3606fdf7cfed46ac6a2e841d /awesome | |
parent | 849a7ad18688358489f315d5a8c69e0ae76cbd16 (diff) | |
download | dotfiles-6296dac9ba0692707d6f6d608b828f41106b52b9.tar.gz |
Diffstat (limited to 'awesome')
22 files changed, 19 insertions, 17 deletions
diff --git a/awesome/.config/awesome/rc.lua b/awesome/.config/awesome/rc.lua index 5dd0c1a..392dbae 100644 --- a/awesome/.config/awesome/rc.lua +++ b/awesome/.config/awesome/rc.lua @@ -1,5 +1,6 @@ -- Standard library local io = {open = io.open} +local math = {floor = math.floor, pi = math.pi} local pi = math.pi -- Awesome library @@ -173,7 +174,7 @@ end -- Menubar configuration -- Set geometry so it would overlay the wibox -menubar.geometry = {y = 0, height = 28} +menubar.geometry = {y = 0, height = beautiful.menu_height} -- Set the terminal for applications that require it menubar.utils.terminal = terminal -- }}} @@ -335,14 +336,16 @@ local function restore() end local function arrow(fg, bg) - local img = cairo.ImageSurface.create(cairo.Format.ARGB32, 14, 28) + local height = beautiful.menu_height + local width = height / 2 + local img = cairo.ImageSurface.create(cairo.Format.ARGB32, width, height) local cr = cairo.Context(img) cr:set_source(gears.color(bg)) - cr:rectangle(0, 0, 14, 28) + cr:rectangle(0, 0, width, height) cr:fill() cr:set_source(gears.color(fg)) local trigon = shape.transform(shape.isosceles_triangle) - trigon:translate(0, 14):rotate_at(14, 14, pi/2)(cr, 28, 14) + trigon:translate(0, width):rotate_at(width, width, pi/2)(cr, height, width) cr:fill() return img end @@ -354,13 +357,10 @@ awful.screen.connect_for_each_screen(function (s) set_wallpaper(s) -- Each screen has its own tag table. -- Wallpaper - if s.geometry.width > s.geometry.height then - awful.tag({"1", "2", "3", "4", "5", "6", "7", "8", "9"}, - s, awful.layout.suit.fair) - else - awful.tag({"1", "2", "3", "4", "5", "6", "7", "8", "9"}, - s, awful.layout.suit.tile) - for _, t in ipairs(s.tags) do t.master_count = 0 end + awful.tag({"1", "2", "3", "4", "5", "6", "7", "8", "9"}, + s, awful.layout.suit.tile.bottom) + for _, t in ipairs(s.tags) do + t.master_count = math.floor(s.geometry.width / 800) end -- Create a promptbox for each screen @@ -388,7 +388,9 @@ awful.screen.connect_for_each_screen(function (s) -- ) -- Create the wibox - s.mywibox = awful.wibar{position = "top", height = "28", screen = s} + s.mywibox = awful.wibar{position = "top", + height = beautiful.menu_height, + screen = s} -- Virtual keyboard --s.vkb = boardary(s) @@ -818,7 +820,7 @@ client.connect_signal( end) ) - awful.titlebar(c, {size=28}):setup{ + awful.titlebar(c, {size=beautiful.menu_height}):setup{ {-- Left awful.titlebar.widget.closebutton(c), awful.titlebar.widget.ontopbutton(c), diff --git a/awesome/.config/awesome/themes/tempus-fugit/awesome.png b/awesome/.config/awesome/themes/tempus-fugit/awesome.png index b3981f1..098561b 100644 --- a/awesome/.config/awesome/themes/tempus-fugit/awesome.png +++ b/awesome/.config/awesome/themes/tempus-fugit/awesome.png Binary files differdiff --git a/awesome/.config/awesome/themes/tempus-fugit/layouts/cornerne.png b/awesome/.config/awesome/themes/tempus-fugit/layouts/cornerne.png index 54b880f..ed80f94 100644 --- a/awesome/.config/awesome/themes/tempus-fugit/layouts/cornerne.png +++ b/awesome/.config/awesome/themes/tempus-fugit/layouts/cornerne.png Binary files differdiff --git a/awesome/.config/awesome/themes/tempus-fugit/layouts/cornernw.png b/awesome/.config/awesome/themes/tempus-fugit/layouts/cornernw.png index 0f748c7..1e5ea67 100644 --- a/awesome/.config/awesome/themes/tempus-fugit/layouts/cornernw.png +++ b/awesome/.config/awesome/themes/tempus-fugit/layouts/cornernw.png Binary files differdiff --git a/awesome/.config/awesome/themes/tempus-fugit/layouts/cornerse.png b/awesome/.config/awesome/themes/tempus-fugit/layouts/cornerse.png index 2f64fba..e36290c 100644 --- a/awesome/.config/awesome/themes/tempus-fugit/layouts/cornerse.png +++ b/awesome/.config/awesome/themes/tempus-fugit/layouts/cornerse.png Binary files differdiff --git a/awesome/.config/awesome/themes/tempus-fugit/layouts/cornersw.png b/awesome/.config/awesome/themes/tempus-fugit/layouts/cornersw.png index a363e38..5d31daa 100644 --- a/awesome/.config/awesome/themes/tempus-fugit/layouts/cornersw.png +++ b/awesome/.config/awesome/themes/tempus-fugit/layouts/cornersw.png Binary files differdiff --git a/awesome/.config/awesome/themes/tempus-fugit/layouts/dwindle.png b/awesome/.config/awesome/themes/tempus-fugit/layouts/dwindle.png index a636b80..3db56dc 100644 --- a/awesome/.config/awesome/themes/tempus-fugit/layouts/dwindle.png +++ b/awesome/.config/awesome/themes/tempus-fugit/layouts/dwindle.png Binary files differdiff --git a/awesome/.config/awesome/themes/tempus-fugit/layouts/fairh.png b/awesome/.config/awesome/themes/tempus-fugit/layouts/fairh.png index 615e5f8..e735bc0 100644 --- a/awesome/.config/awesome/themes/tempus-fugit/layouts/fairh.png +++ b/awesome/.config/awesome/themes/tempus-fugit/layouts/fairh.png Binary files differdiff --git a/awesome/.config/awesome/themes/tempus-fugit/layouts/fairv.png b/awesome/.config/awesome/themes/tempus-fugit/layouts/fairv.png index f705817..2932785 100644 --- a/awesome/.config/awesome/themes/tempus-fugit/layouts/fairv.png +++ b/awesome/.config/awesome/themes/tempus-fugit/layouts/fairv.png Binary files differdiff --git a/awesome/.config/awesome/themes/tempus-fugit/layouts/floating.png b/awesome/.config/awesome/themes/tempus-fugit/layouts/floating.png index 3ed3d1c..5ad9e26 100644 --- a/awesome/.config/awesome/themes/tempus-fugit/layouts/floating.png +++ b/awesome/.config/awesome/themes/tempus-fugit/layouts/floating.png Binary files differdiff --git a/awesome/.config/awesome/themes/tempus-fugit/layouts/fullscreen.png b/awesome/.config/awesome/themes/tempus-fugit/layouts/fullscreen.png index d0b3050..d1824ba 100644 --- a/awesome/.config/awesome/themes/tempus-fugit/layouts/fullscreen.png +++ b/awesome/.config/awesome/themes/tempus-fugit/layouts/fullscreen.png Binary files differdiff --git a/awesome/.config/awesome/themes/tempus-fugit/layouts/magnifier.png b/awesome/.config/awesome/themes/tempus-fugit/layouts/magnifier.png index aebbbca..860ea97 100644 --- a/awesome/.config/awesome/themes/tempus-fugit/layouts/magnifier.png +++ b/awesome/.config/awesome/themes/tempus-fugit/layouts/magnifier.png Binary files differdiff --git a/awesome/.config/awesome/themes/tempus-fugit/layouts/max.png b/awesome/.config/awesome/themes/tempus-fugit/layouts/max.png index 5051aeb..d54c351 100644 --- a/awesome/.config/awesome/themes/tempus-fugit/layouts/max.png +++ b/awesome/.config/awesome/themes/tempus-fugit/layouts/max.png Binary files differdiff --git a/awesome/.config/awesome/themes/tempus-fugit/layouts/spiral.png b/awesome/.config/awesome/themes/tempus-fugit/layouts/spiral.png index 31e8d7d..a27e727 100644 --- a/awesome/.config/awesome/themes/tempus-fugit/layouts/spiral.png +++ b/awesome/.config/awesome/themes/tempus-fugit/layouts/spiral.png Binary files differdiff --git a/awesome/.config/awesome/themes/tempus-fugit/layouts/tile.png b/awesome/.config/awesome/themes/tempus-fugit/layouts/tile.png index a00efbe..95ce252 100644 --- a/awesome/.config/awesome/themes/tempus-fugit/layouts/tile.png +++ b/awesome/.config/awesome/themes/tempus-fugit/layouts/tile.png Binary files differdiff --git a/awesome/.config/awesome/themes/tempus-fugit/layouts/tilebottom.png b/awesome/.config/awesome/themes/tempus-fugit/layouts/tilebottom.png index e57a5c7..354bcec 100644 --- a/awesome/.config/awesome/themes/tempus-fugit/layouts/tilebottom.png +++ b/awesome/.config/awesome/themes/tempus-fugit/layouts/tilebottom.png Binary files differdiff --git a/awesome/.config/awesome/themes/tempus-fugit/layouts/tileleft.png b/awesome/.config/awesome/themes/tempus-fugit/layouts/tileleft.png index 0eb153f..2e852e0 100644 --- a/awesome/.config/awesome/themes/tempus-fugit/layouts/tileleft.png +++ b/awesome/.config/awesome/themes/tempus-fugit/layouts/tileleft.png Binary files differdiff --git a/awesome/.config/awesome/themes/tempus-fugit/layouts/tiletop.png b/awesome/.config/awesome/themes/tempus-fugit/layouts/tiletop.png index f001ec1..c304422 100644 --- a/awesome/.config/awesome/themes/tempus-fugit/layouts/tiletop.png +++ b/awesome/.config/awesome/themes/tempus-fugit/layouts/tiletop.png Binary files differdiff --git a/awesome/.config/awesome/themes/tempus-fugit/submenu.png b/awesome/.config/awesome/themes/tempus-fugit/submenu.png index ed1429b..082d94c 100644 --- a/awesome/.config/awesome/themes/tempus-fugit/submenu.png +++ b/awesome/.config/awesome/themes/tempus-fugit/submenu.png Binary files differdiff --git a/awesome/.config/awesome/themes/tempus-fugit/taglist/square.png b/awesome/.config/awesome/themes/tempus-fugit/taglist/square.png index bafc155..9e74834 100644 --- a/awesome/.config/awesome/themes/tempus-fugit/taglist/square.png +++ b/awesome/.config/awesome/themes/tempus-fugit/taglist/square.png Binary files differdiff --git a/awesome/.config/awesome/themes/tempus-fugit/taglist/squaref.png b/awesome/.config/awesome/themes/tempus-fugit/taglist/squaref.png index 08fe492..9a750e2 100644 --- a/awesome/.config/awesome/themes/tempus-fugit/taglist/squaref.png +++ b/awesome/.config/awesome/themes/tempus-fugit/taglist/squaref.png Binary files differdiff --git a/awesome/.config/awesome/themes/tempus-fugit/theme.lua b/awesome/.config/awesome/themes/tempus-fugit/theme.lua index e3c13ea..a71c218 100644 --- a/awesome/.config/awesome/themes/tempus-fugit/theme.lua +++ b/awesome/.config/awesome/themes/tempus-fugit/theme.lua @@ -21,8 +21,8 @@ local theme = {} local wd = '~/.config/awesome/themes/tempus-fugit/' local function abspath(relative) return wd .. relative end -theme.font = 'Latin Modern Mono 15' -theme.hotkeys_font = 'Latin Modern Mono Bold 15' +theme.font = 'Latin Modern Mono 13' +theme.hotkeys_font = 'Latin Modern Mono Bold 13' theme.hotkeys_description_font = theme.font -- Auxiliary colors @@ -80,8 +80,8 @@ theme.taglist_squares_unsel = abspath'taglist/square.png' -- menu_[bg|fg]_[normal|focus] -- menu_[border_color|border_width] theme.menu_submenu_icon = abspath'submenu.png' -theme.menu_height = 28 -theme.menu_width = 210 +theme.menu_height = 24 +theme.menu_width = 200 -- You can add as many variables as -- you wish and access them by using |