[themes] Make it possible to merge themes to get "icon themes"
Add code that allows themes to be merged (i.e. if certain elements are not present in a theme, another theme can be "overlaid" to add missing elements). Effectively, this is used to create the logical concept of an "icon theme", which is loaded after the main theme. So, the main theme can define colors, and the icon theme fills in any missing elements (practically, all the icons in the form of prefixes and suffixes). Icon sets are defined in a theme using the "icons" directive, which should be an array. see #17
This commit is contained in:
parent
f6db8b0a85
commit
209fa83324
10 changed files with 296 additions and 600 deletions
|
@ -1,4 +1,5 @@
|
|||
{
|
||||
"icons": [ "paxy97", "awesome-fonts" ],
|
||||
"defaults": {
|
||||
"prefix": " ",
|
||||
"suffix" : " ",
|
||||
|
@ -18,26 +19,9 @@
|
|||
"bg-warning": "#d79921",
|
||||
|
||||
"default-separators": false,
|
||||
"separator-block-width": 0,
|
||||
"separator": ""
|
||||
},
|
||||
"date": {
|
||||
"prefix": " "
|
||||
},
|
||||
"time": {
|
||||
"prefix": " "
|
||||
},
|
||||
"memory": {
|
||||
"prefix": " "
|
||||
},
|
||||
"cpu": {
|
||||
"prefix": " "
|
||||
},
|
||||
"disk": {
|
||||
"prefix": " "
|
||||
"separator-block-width": 0
|
||||
},
|
||||
"dnf": {
|
||||
"prefix": " ",
|
||||
"states": {
|
||||
"good": {
|
||||
"fg": "#002b36",
|
||||
|
@ -45,116 +29,16 @@
|
|||
}
|
||||
}
|
||||
},
|
||||
"pasink": {
|
||||
"states": {
|
||||
"muted": {
|
||||
"prefix": " "
|
||||
},
|
||||
"unmuted": {
|
||||
"prefix": " "
|
||||
}
|
||||
}
|
||||
},
|
||||
"pasource": {
|
||||
"states": {
|
||||
"muted": {
|
||||
"prefix": " "
|
||||
},
|
||||
"unmuted": {
|
||||
"prefix": " "
|
||||
}
|
||||
}
|
||||
},
|
||||
"nic": {
|
||||
"states": {
|
||||
"wireless-up": {
|
||||
"prefix": " "
|
||||
},
|
||||
"wireless-down": {
|
||||
"prefix": " "
|
||||
},
|
||||
"wired-up": {
|
||||
"prefix": " "
|
||||
},
|
||||
"wired-down": {
|
||||
"prefix": " "
|
||||
},
|
||||
"tunnel-up": {
|
||||
"prefix": " "
|
||||
},
|
||||
"tunnel-down": {
|
||||
"prefix": " "
|
||||
}
|
||||
}
|
||||
},
|
||||
"battery": {
|
||||
"states": {
|
||||
"charged": {
|
||||
"prefix": " ",
|
||||
"suffix": " ",
|
||||
"fg": "#1d2021",
|
||||
"bg": "#b8bb26"
|
||||
},
|
||||
"AC": {
|
||||
"suffix": " ",
|
||||
"fg": "#1d2021",
|
||||
"bg": "#b8bb26"
|
||||
},
|
||||
"charging": {
|
||||
"prefix": [ " ", " ", " ", " ", " " ],
|
||||
"suffix": " "
|
||||
},
|
||||
"discharging-10": {
|
||||
"prefix": " ",
|
||||
"suffix": " "
|
||||
},
|
||||
"discharging-25": {
|
||||
"prefix": " ",
|
||||
"suffix": " "
|
||||
},
|
||||
"discharging-50": {
|
||||
"prefix": " ",
|
||||
"suffix": " "
|
||||
},
|
||||
"discharging-80": {
|
||||
"prefix": " ",
|
||||
"suffix": " "
|
||||
},
|
||||
"discharging-100": {
|
||||
"prefix": " ",
|
||||
"suffix": " "
|
||||
}
|
||||
}
|
||||
},
|
||||
"cmus": {
|
||||
"states": {
|
||||
"playing": {
|
||||
"prefix": " "
|
||||
},
|
||||
"paused": {
|
||||
"prefix": " "
|
||||
},
|
||||
"stopped": {
|
||||
"prefix": " "
|
||||
}
|
||||
},
|
||||
"prev": {
|
||||
"prefix": " "
|
||||
},
|
||||
"next": {
|
||||
"prefix": " "
|
||||
},
|
||||
"shuffle": {
|
||||
"states": { "on": { "prefix": " " }, "off": { "prefix": " " } }
|
||||
},
|
||||
"repeat": {
|
||||
"states": { "on": { "prefix": " " }, "off": { "prefix": " " } }
|
||||
}
|
||||
},
|
||||
"brightness": {
|
||||
"prefix": " "
|
||||
},
|
||||
"caffeine": {
|
||||
"states": { "activated": {"prefix": " " }, "deactivated": { "prefix": " " } }
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue