diff --git a/config/awesome/icons/titlebar/close_focus.svg b/config/awesome/icons/titlebar/close_focus.svg new file mode 100644 index 0000000..ffdb317 --- /dev/null +++ b/config/awesome/icons/titlebar/close_focus.svg @@ -0,0 +1,69 @@ + + + + + + + + + + image/svg+xml + + + + + + + + + + diff --git a/config/awesome/icons/titlebar/close_normal.svg b/config/awesome/icons/titlebar/close_normal.svg new file mode 100644 index 0000000..32cd703 --- /dev/null +++ b/config/awesome/icons/titlebar/close_normal.svg @@ -0,0 +1,69 @@ + + + + + + + + + + image/svg+xml + + + + + + + + + + diff --git a/config/awesome/icons/titlebar/maximized_focus.svg b/config/awesome/icons/titlebar/maximized_focus.svg new file mode 100644 index 0000000..9c10b1b --- /dev/null +++ b/config/awesome/icons/titlebar/maximized_focus.svg @@ -0,0 +1,66 @@ + + + + + + + + + + image/svg+xml + + + + + + + + + diff --git a/config/awesome/icons/titlebar/maximized_normal.svg b/config/awesome/icons/titlebar/maximized_normal.svg new file mode 100644 index 0000000..46cd5de --- /dev/null +++ b/config/awesome/icons/titlebar/maximized_normal.svg @@ -0,0 +1,66 @@ + + + + + + + + + + image/svg+xml + + + + + + + + + diff --git a/config/awesome/icons/titlebar/minimize_focus.svg b/config/awesome/icons/titlebar/minimize_focus.svg new file mode 100644 index 0000000..e0a0ec0 --- /dev/null +++ b/config/awesome/icons/titlebar/minimize_focus.svg @@ -0,0 +1,66 @@ + + + + + + + + + + image/svg+xml + + + + + + + + + diff --git a/config/awesome/icons/titlebar/minimize_normal.svg b/config/awesome/icons/titlebar/minimize_normal.svg new file mode 100644 index 0000000..f58fe06 --- /dev/null +++ b/config/awesome/icons/titlebar/minimize_normal.svg @@ -0,0 +1,66 @@ + + + + + + + + + + image/svg+xml + + + + + + + + + diff --git a/config/awesome/rc.lua b/config/awesome/rc.lua index 00b6b4d..ce1040d 100644 --- a/config/awesome/rc.lua +++ b/config/awesome/rc.lua @@ -513,7 +513,7 @@ client.connect_signal("request::titlebars", function(c) awful.titlebar(c).widget = { { -- Left - awful.titlebar.widget.iconwidget(c), + -- awful.titlebar.widget.iconwidget(c), buttons = buttons, layout = wibox.layout.fixed.horizontal }, @@ -526,10 +526,8 @@ client.connect_signal("request::titlebars", function(c) layout = wibox.layout.flex.horizontal }, { -- Right - awful.titlebar.widget.floatingbutton (c), + awful.titlebar.widget.minimizebutton (c), awful.titlebar.widget.maximizedbutton(c), - awful.titlebar.widget.stickybutton (c), - awful.titlebar.widget.ontopbutton (c), awful.titlebar.widget.closebutton (c), layout = wibox.layout.fixed.horizontal() }, diff --git a/config/awesome/theme/theme.lua b/config/awesome/theme/theme.lua index 27390ac..9bc1ec9 100644 --- a/config/awesome/theme/theme.lua +++ b/config/awesome/theme/theme.lua @@ -71,31 +71,7 @@ theme.menu_width = dpi(100) --theme.bg_widget = "#cc0000" -- Define the image to load -theme.titlebar_close_button_normal = themes_path.."default/titlebar/close_normal.png" -theme.titlebar_close_button_focus = themes_path.."default/titlebar/close_focus.png" -theme.titlebar_minimize_button_normal = themes_path.."default/titlebar/minimize_normal.png" -theme.titlebar_minimize_button_focus = themes_path.."default/titlebar/minimize_focus.png" - -theme.titlebar_ontop_button_normal_inactive = themes_path.."default/titlebar/ontop_normal_inactive.png" -theme.titlebar_ontop_button_focus_inactive = themes_path.."default/titlebar/ontop_focus_inactive.png" -theme.titlebar_ontop_button_normal_active = themes_path.."default/titlebar/ontop_normal_active.png" -theme.titlebar_ontop_button_focus_active = themes_path.."default/titlebar/ontop_focus_active.png" - -theme.titlebar_sticky_button_normal_inactive = themes_path.."default/titlebar/sticky_normal_inactive.png" -theme.titlebar_sticky_button_focus_inactive = themes_path.."default/titlebar/sticky_focus_inactive.png" -theme.titlebar_sticky_button_normal_active = themes_path.."default/titlebar/sticky_normal_active.png" -theme.titlebar_sticky_button_focus_active = themes_path.."default/titlebar/sticky_focus_active.png" - -theme.titlebar_floating_button_normal_inactive = themes_path.."default/titlebar/floating_normal_inactive.png" -theme.titlebar_floating_button_focus_inactive = themes_path.."default/titlebar/floating_focus_inactive.png" -theme.titlebar_floating_button_normal_active = themes_path.."default/titlebar/floating_normal_active.png" -theme.titlebar_floating_button_focus_active = themes_path.."default/titlebar/floating_focus_active.png" - -theme.titlebar_maximized_button_normal_inactive = themes_path.."default/titlebar/maximized_normal_inactive.png" -theme.titlebar_maximized_button_focus_inactive = themes_path.."default/titlebar/maximized_focus_inactive.png" -theme.titlebar_maximized_button_normal_active = themes_path.."default/titlebar/maximized_normal_active.png" -theme.titlebar_maximized_button_focus_active = themes_path.."default/titlebar/maximized_focus_active.png" theme.wallpaper = "/home/sajenim/.config/awesome/theme/assets/chinatown.png" @@ -134,6 +110,27 @@ rnotification.connect_signal('request::rules', function() } end) +-- +-- FIX: Everthing above this line is default +-- + +-- Titlebars +local icon_dir = gfs.get_configuration_dir() .. "/icons/titlebar/" + +-- Minimize +theme.titlebar_minimize_button_normal = icon_dir .. "minimize_normal.svg" +theme.titlebar_minimize_button_focus = icon_dir .. "minimize_focus.svg" + +-- Maximized +theme.titlebar_maximized_button_normal_inactive = icon_dir .. "maximized_normal.svg" +theme.titlebar_maximized_button_focus_inactive = icon_dir .. "maximized_focus.svg" +theme.titlebar_maximized_button_normal_active = icon_dir .. "maximized_normal.svg" +theme.titlebar_maximized_button_focus_active = icon_dir .. "maximized_focus.svg" + +-- Close +theme.titlebar_close_button_normal = icon_dir .. "close_normal.svg" +theme.titlebar_close_button_focus = icon_dir .. "close_focus.svg" + return theme -- vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80