]> git.rmz.io Git - dotfiles.git/blobdiff - awesome/themes/mlp/theme.lua
mpv: don't ignore vp9 codecs
[dotfiles.git] / awesome / themes / mlp / theme.lua
index 6efc3ce4040edc620451ef6e664bcb3b05568b97..ab21acd5900a2fdaac7e909737f85559280f6eee 100644 (file)
@@ -2,9 +2,14 @@
 -- Default awesome theme --
 ---------------------------
 
-theme = {}
+local theme_assets = require("beautiful.theme_assets")
+local xresources = require("beautiful.xresources")
+local dpi = xresources.apply_dpi
 
-theme.path = awful.util.getdir("config").."/themes/mlp"
+local gfs = require("gears.filesystem")
+local theme_path = require("beautiful").theme_path
+
+local theme = {}
 
 theme.font          = "Droid Sans 8"
 
@@ -19,29 +24,69 @@ theme.fg_focus      = "#ffffff"
 theme.fg_urgent     = "#ffffff"
 theme.fg_minimize   = "#ffffff"
 
+theme.useless_gap   = 10
+theme.gap_single_client = false
 theme.border_width  = 2
 theme.border_normal = "#000000"
 theme.border_focus  = "#535d6c"
 theme.border_marked = "#91231c"
 
+theme.tooltip_fg = theme.fg_normal
+theme.tooltip_bg = theme.bg_normal
+
 -- There are other variable sets
 -- overriding the default one when
 -- defined, the sets are:
--- [taglist|tasklist]_[bg|fg]_[focus|urgent]
+-- taglist_[bg|fg]_[focus|urgent|occupied|empty|volatile]
+-- tasklist_[bg|fg]_[focus|urgent]
 -- titlebar_[bg|fg]_[normal|focus]
 -- tooltip_[font|opacity|fg_color|bg_color|border_width|border_color]
 -- mouse_finder_[color|timeout|animate_timeout|radius|factor]
+-- prompt_[fg|bg|fg_cursor|bg_cursor|font]
+-- hotkeys_[bg|fg|border_width|border_color|shape|opacity|modifiers_fg|label_bg|label_fg|group_margin|font|description_font]
 -- Example:
 --theme.taglist_bg_focus = "#ff0000"
 
--- Display the taglist squares
-theme.taglist_squares_sel   = theme.path.."/taglist/squarefw.png"
-theme.taglist_squares_unsel = theme.path.."/taglist/squarew.png"
+theme.taglist_icon_only = true
+
+theme.taglist_icon_01 = theme_path.."/cutiemarks/pinkie_pie.png"
+theme.taglist_icon_02 = theme_path.."/cutiemarks/rainbow_dash.png"
+theme.taglist_icon_03 = theme_path.."/cutiemarks/twilight_sparkle.png"
+theme.taglist_icon_04 = theme_path.."/cutiemarks/doctor_whooves.png"
+theme.taglist_icon_05 = theme_path.."/cutiemarks/derpy_hooves.png"
+theme.taglist_icon_06 = theme_path.."/cutiemarks/trixie.png"
+theme.taglist_icon_07 = theme_path.."/cutiemarks/soarin.png"
+theme.taglist_icon_08 = theme_path.."/cutiemarks/princess_celestia.png"
+theme.taglist_icon_09 = theme_path.."/cutiemarks/princess_luna.png"
+theme.taglist_icon_10 = theme_path.."/cutiemarks/snails.png"
+theme.taglist_icon_11 = theme_path.."/cutiemarks/snips.png"
+theme.taglist_icon_12 = theme_path.."/cutiemarks/lyra_heartstrings.png"
+theme.taglist_icon_13 = theme_path.."/cutiemarks/rarity.png"
+theme.taglist_icon_14 = theme_path.."/cutiemarks/fluttershy.png"
+theme.taglist_icon_15 = theme_path.."/cutiemarks/applejack.png"
+theme.taglist_icon_16 = theme_path.."/cutiemarks/snowflake.png"
+theme.taglist_icon_17 = theme_path.."/cutiemarks/thunderlane.png"
+theme.taglist_icon_18 = theme_path.."/cutiemarks/bon_bon.png"
+
+-- Generate taglist squares:
+local taglist_square_size = dpi(4)
+theme.taglist_squares_sel = theme_assets.taglist_squares_sel(
+    taglist_square_size, theme.fg_normal
+)
+theme.taglist_squares_unsel = theme_assets.taglist_squares_unsel(
+    taglist_square_size, theme.fg_normal
+)
+
+-- Variables set for theming notifications:
+-- notification_font
+-- notification_[bg|fg]
+-- notification_[width|height|margin]
+-- notification_[border_color|border_width|shape|opacity]
 
 -- Variables set for theming the menu:
 -- menu_[bg|fg]_[normal|focus]
 -- menu_[border_color|border_width]
-theme.menu_submenu_icon = theme.path.."/submenu.png"
+theme.menu_submenu_icon = theme_path.."/submenu.png"
 theme.menu_height = 15
 theme.menu_width  = 100
 
@@ -51,66 +96,37 @@ theme.menu_width  = 100
 --theme.bg_widget = "#cc0000"
 
 -- Define the image to load
-theme.titlebar_close_button_normal = theme.path.."/titlebar/close_normal.png"
-theme.titlebar_close_button_focus  = theme.path.."/titlebar/close_focus.png"
-
-theme.titlebar_ontop_button_normal_inactive = theme.path.."/titlebar/ontop_normal_inactive.png"
-theme.titlebar_ontop_button_focus_inactive  = theme.path.."/titlebar/ontop_focus_inactive.png"
-theme.titlebar_ontop_button_normal_active   = theme.path.."/titlebar/ontop_normal_active.png"
-theme.titlebar_ontop_button_focus_active    = theme.path.."/titlebar/ontop_focus_active.png"
-
-theme.titlebar_sticky_button_normal_inactive = theme.path.."/titlebar/sticky_normal_inactive.png"
-theme.titlebar_sticky_button_focus_inactive  = theme.path.."/titlebar/sticky_focus_inactive.png"
-theme.titlebar_sticky_button_normal_active   = theme.path.."/titlebar/sticky_normal_active.png"
-theme.titlebar_sticky_button_focus_active    = theme.path.."/titlebar/sticky_focus_active.png"
-
-theme.titlebar_floating_button_normal_inactive = theme.path.."/titlebar/floating_normal_inactive.png"
-theme.titlebar_floating_button_focus_inactive  = theme.path.."/titlebar/floating_focus_inactive.png"
-theme.titlebar_floating_button_normal_active   = theme.path.."/titlebar/floating_normal_active.png"
-theme.titlebar_floating_button_focus_active    = theme.path.."/titlebar/floating_focus_active.png"
-
-theme.titlebar_maximized_button_normal_inactive = theme.path.."/titlebar/maximized_normal_inactive.png"
-theme.titlebar_maximized_button_focus_inactive  = theme.path.."/titlebar/maximized_focus_inactive.png"
-theme.titlebar_maximized_button_normal_active   = theme.path.."/titlebar/maximized_normal_active.png"
-theme.titlebar_maximized_button_focus_active    = theme.path.."/titlebar/maximized_focus_active.png"
-
-theme.wallpaper = theme.path.."/background.png"
+theme.wallpaper = theme_path.."/background.png"
 
 -- You can use your own layout icons like this:
-theme.layout_fairh      = theme.path.."/layouts/fairhw.png"
-theme.layout_fairv      = theme.path.."/layouts/fairvw.png"
-theme.layout_floating   = theme.path.."/layouts/floatingw.png"
-theme.layout_magnifier  = theme.path.."/layouts/magnifierw.png"
-theme.layout_max        = theme.path.."/layouts/maxw.png"
-theme.layout_fullscreen = theme.path.."/layouts/fullscreenw.png"
-theme.layout_tilebottom = theme.path.."/layouts/tilebottomw.png"
-theme.layout_tileleft   = theme.path.."/layouts/tileleftw.png"
-theme.layout_tile       = theme.path.."/layouts/tilew.png"
-theme.layout_tiletop    = theme.path.."/layouts/tiletopw.png"
-theme.layout_spiral     = theme.path.."/layouts/spiralw.png"
-theme.layout_dwindle    = theme.path.."/layouts/dwindlew.png"
--- lain stuff
-theme.useless_gap = 10
-theme.gap_single_client = false
-theme.lain_icons = "/usr/share/awesome/lib/lain/icons/layout/default/"
-theme.layout_uselessfairh      = theme.path.."/layouts/fairhw.png"
-theme.layout_uselessfair       = theme.path.."/layouts/fairvw.png"
-theme.layout_uselesstilebottom = theme.path.."/layouts/tilebottomw.png"
-theme.layout_uselesstileleft   = theme.path.."/layouts/tileleftw.png"
-theme.layout_uselesstile       = theme.path.."/layouts/tilew.png"
-theme.layout_uselesstiletop    = theme.path.."/layouts/tiletopw.png"
-theme.layout_uselessspiral     = theme.path.."/layouts/spiralw.png"
-theme.layout_uselessdwindle    = theme.path.."/layouts/dwindlew.png"
-theme.layout_termfair          = theme.lain_icons .. "termfairw.png"
-theme.layout_cascade           = theme.lain_icons .. "cascadew.png"
-theme.layout_cascadetile       = theme.lain_icons .. "cascadetilew.png"
-theme.layout_centerwork        = theme.lain_icons .. "centerworkw.png"
-
-theme.awesome_icon = "/usr/share/awesome/icons/awesome16.png"
-
--- Define the icon theme for application icons. If not set then the icons 
+theme.layout_fairh      = theme_path.."/layouts/fairhw.png"
+theme.layout_fairv      = theme_path.."/layouts/fairvw.png"
+theme.layout_floating   = theme_path.."/layouts/floatingw.png"
+theme.layout_magnifier  = theme_path.."/layouts/magnifierw.png"
+theme.layout_max        = theme_path.."/layouts/maxw.png"
+theme.layout_fullscreen = theme_path.."/layouts/fullscreenw.png"
+theme.layout_tilebottom = theme_path.."/layouts/tilebottomw.png"
+theme.layout_tileleft   = theme_path.."/layouts/tileleftw.png"
+theme.layout_tile       = theme_path.."/layouts/tilew.png"
+theme.layout_tiletop    = theme_path.."/layouts/tiletopw.png"
+theme.layout_spiral     = theme_path.."/layouts/spiralw.png"
+theme.layout_dwindle    = theme_path.."/layouts/dwindlew.png"
+theme.layout_cornernw   = theme_path.."/layouts/cornernww.png"
+theme.layout_cornerne   = theme_path.."/layouts/cornernew.png"
+theme.layout_cornersw   = theme_path.."/layouts/cornersww.png"
+theme.layout_cornerse   = theme_path.."/layouts/cornersew.png"
+
+-- Generate Awesome icon:
+theme.awesome_icon = theme_assets.awesome_icon(
+    theme.menu_height, theme.bg_focus, theme.fg_focus
+)
+
+theme.mpd_default_album = theme_path.."/mpd_default_album.png"
+
+-- Define the icon theme for application icons. If not set then the icons
 -- from /usr/share/icons and /usr/share/icons/hicolor will be used.
 theme.icon_theme = nil
 
 return theme
+
 -- vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80