-
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.
- Loading branch information
1 parent
0747860
commit 252847b
Showing
6 changed files
with
27 additions
and
71 deletions.
There are no files selected for viewing
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 |
---|---|---|
|
@@ -12,7 +12,6 @@ def _toggle(*args, **kwargs): | |
def wrapper(func): | ||
state: bool = False | ||
|
||
|
||
def wrapped(_): | ||
nonlocal state | ||
|
||
|
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,28 +1,14 @@ | ||
import pathlib | ||
import os | ||
|
||
from libqtile.bar import Gap | ||
from libqtile.config import Screen | ||
|
||
from core.bar import Bar | ||
|
||
gap = Gap(4) | ||
_gap = Gap(4) | ||
_screen_attr = dict( | ||
bottom=_gap, left=_gap, right=_gap, | ||
wallpaper=os.path.expanduser("~/assets/wallpaper.png"), | ||
wallpaper_mode="fill") | ||
|
||
_cwd = pathlib.Path(os.path.dirname(os.path.realpath(__file__))) | ||
|
||
wallpaper_path = os.path.expanduser("~/assets/wallpaper.png") | ||
|
||
if not os.path.exists(wallpaper_path): | ||
wallpaper_path = str((_cwd / ".." / ".." / "wallpaper.png").absolute()) | ||
|
||
screens = [ | ||
Screen( | ||
top=Bar(i), | ||
bottom=gap, | ||
left=gap, | ||
right=gap, | ||
wallpaper=wallpaper_path, | ||
wallpaper_mode="fill", | ||
) | ||
for i in range(2) | ||
] | ||
screens = [Screen(top=Bar(i), **_screen_attr) for i in range(2)] |