-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rewrite widgets default configuration system
- Loading branch information
1 parent
5373e8e
commit 5a7c1b0
Showing
10 changed files
with
205 additions
and
247 deletions.
There are no files selected for viewing
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,21 @@ | ||
import os | ||
|
||
from libqtile.bar import Gap | ||
from libqtile.config import Screen | ||
|
||
from core.bar import create_bar, gap | ||
from core.bar import Bar | ||
|
||
gap = Gap(4) | ||
wallpaper_path = os.path.expanduser("~/assets/wallpaper.png") | ||
|
||
screens = [ | ||
Screen( | ||
top=create_bar(), | ||
bottom=gap(), | ||
left=gap(), | ||
right=gap(), | ||
wallpaper=wallpaper_path, | ||
wallpaper_mode="fill", | ||
), | ||
Screen( | ||
top=create_bar(secondary=True), | ||
bottom=gap(), | ||
left=gap(), | ||
right=gap(), | ||
top=Bar(i), | ||
bottom=gap, | ||
left=gap, | ||
right=gap, | ||
wallpaper=wallpaper_path, | ||
wallpaper_mode="fill", | ||
), | ||
) | ||
for i in range(2) | ||
] |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
from .defaults import widget_defaults | ||
from .overides import ( | ||
Battery, | ||
Clock, | ||
CPUGraph, | ||
GroupBox, | ||
Memory, | ||
Prompt, | ||
QuickExit, | ||
Separator, | ||
Systray, | ||
TaskList, | ||
) | ||
from .wakatime import Wakatime | ||
|
||
__all__ = ( | ||
"widget_defaults", | ||
"Battery", | ||
"Clock", | ||
"CPUGraph", | ||
"GroupBox", | ||
"Memory", | ||
"Prompt", | ||
"QuickExit", | ||
"Separator", | ||
"Systray", | ||
"TaskList", | ||
"Wakatime", | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
from utils import Color | ||
|
||
widget_defaults = dict( | ||
font="JetBrainsMono Nerd Font", | ||
fontsize=12, | ||
padding=12, | ||
background=Color.BG_DARK.with_alpha(0.9), | ||
foreground=Color.TEXT_LIGHT, | ||
) |
Oops, something went wrong.