Remove the "improved-workspace-indicator" GNOME extension
This commit is contained in:
parent
a15f027b91
commit
ddaef37e6b
5 changed files with 2 additions and 87 deletions
|
|
@ -3,7 +3,7 @@
|
|||
# This file's name matches the CLI convention in ~/.local/bin
|
||||
# pylint: disable=invalid-name
|
||||
|
||||
# Templates for seven consumers live here
|
||||
# Templates for six consumers live here
|
||||
# => Length of file is managable
|
||||
# pylint: disable=too-many-lines
|
||||
|
||||
|
|
@ -884,41 +884,6 @@ def render_rofi(colors: dict[str, str]) -> str:
|
|||
""")
|
||||
|
||||
|
||||
def render_workspace_indicator(colors: dict[str, str]) -> str:
|
||||
"""Render ~/.config/improved-workspace-indicator/stylesheet.css."""
|
||||
return textwrap.dedent(f"""\
|
||||
/* Written by ~/.local/bin/color-palette */
|
||||
/* accent={colors['_accent']} scheme={colors['_scheme']} */
|
||||
|
||||
.panel-workspace-indicator {{
|
||||
padding: 0 2px;
|
||||
border: 0;
|
||||
background-color: transparent;
|
||||
}}
|
||||
|
||||
.panel-workspace-indicator-box {{
|
||||
padding: 0;
|
||||
}}
|
||||
|
||||
.panel-workspace-indicator {{
|
||||
padding: 1px 8px;
|
||||
margin: 0 3px;
|
||||
border: 0;
|
||||
border-radius: 8px;
|
||||
font-size: 10pt;
|
||||
font-weight: 600;
|
||||
color: {colors['chrome-quiet']};
|
||||
background-color: {colors['surface-dim']};
|
||||
}}
|
||||
|
||||
.panel-workspace-indicator.workspace-indicator-active {{
|
||||
font-weight: 700;
|
||||
color: {colors['text']};
|
||||
background-color: {colors['accent']};
|
||||
}}
|
||||
""")
|
||||
|
||||
|
||||
def show_colors(colors: dict[str, str]) -> None:
|
||||
"""Print all derived colors of this run for debugging."""
|
||||
print(
|
||||
|
|
@ -1032,10 +997,6 @@ def write_consumers(colors: dict[str, str]) -> int:
|
|||
content=render_rofi(colors),
|
||||
target=config_home / "rofi" / "colors.rasi",
|
||||
),
|
||||
write_file(
|
||||
content=render_workspace_indicator(colors),
|
||||
target=config_home / "improved-workspace-indicator" / "stylesheet.css",
|
||||
),
|
||||
)
|
||||
|
||||
return 0 if all(results) else 1
|
||||
|
|
|
|||
Loading…
Reference in a new issue