diff --git a/dconf/.config/dconf/user b/dconf/.config/dconf/user index e644d720f..d73170578 100644 Binary files a/dconf/.config/dconf/user and b/dconf/.config/dconf/user differ diff --git a/qtile/.config/qtile/cfg.json b/qtile/.config/qtile/cfg.json index 748158975..1d7389051 100644 --- a/qtile/.config/qtile/cfg.json +++ b/qtile/.config/qtile/cfg.json @@ -1,6 +1,6 @@ { "bar": "shapes", - "bar2": "shapes", + "bar2": "bottom", "browser": "firefox", "term": "alacritty", "term2": "kitty", diff --git a/qtile/.config/qtile/config.py b/qtile/.config/qtile/config.py index a91f90bc1..5410d36e5 100644 --- a/qtile/.config/qtile/config.py +++ b/qtile/.config/qtile/config.py @@ -31,4 +31,4 @@ wl_input_rules = None # # We choose LG3D to maximize irony: it is a 3D non-reparenting WM written in # java that happens to be on java's whitelist. -wmname = "Qtile" +wmname = "qtile" diff --git a/qtile/.config/qtile/core/bar/bottom.py b/qtile/.config/qtile/core/bar/bottom.py new file mode 100644 index 000000000..ee3986d22 --- /dev/null +++ b/qtile/.config/qtile/core/bar/bottom.py @@ -0,0 +1,62 @@ +from libqtile.bar import CALCULATED +from libqtile.lazy import lazy + +from core.bar.base import base, icon_font, powerline, rectangle +from extras import Clock, GroupBox, TextBox, modify, widget +from utils.config import cfg +from utils.palette import palette + +bar = { + "background": palette.backgroundColor, + "border_color": palette.backgroundColor, + "border_width": 2, + "margin": 2, + "opacity": 1, + "size": 18, +} + + +def sep(fg, offset=0, padding=8) -> TextBox: + return TextBox( + **base(None, fg), + **icon_font(), + offset=offset, + padding=padding, + text="󰇙", + ) + + +def weather(bg, fg) -> list: + return [ + modify( + TextBox, + **base(bg, fg), + **icon_font(), + **rectangle("left"), + offset=0, + padding=0, + ), + widget.OpenWeather( + **base(bg, fg), + fmt="{}", + location="Darlington,UK", + format="{icon} {location_city}: {main_temp}°{units_temperature}", + ), + modify( + TextBox, + **base(bg, fg), + **icon_font(), + **rectangle("right"), + offset=0, + padding=0, + ), + ] + + +def widgets(): + return [ + widget.Spacer(length=2), + *weather(palette.colorScheme[1], palette.currentColor), + widget.Spacer(), + widget.Spacer(length=2), + ] diff --git a/qtile/.config/qtile/core/bar/shapes.py b/qtile/.config/qtile/core/bar/shapes.py index 24548aa3b..6e6108807 100644 --- a/qtile/.config/qtile/core/bar/shapes.py +++ b/qtile/.config/qtile/core/bar/shapes.py @@ -12,7 +12,7 @@ bar = { "border_width": 2, "margin": 5, "opacity": 1, - "size": 28, + "size": 24, } diff --git a/qtile/.config/qtile/core/hooks.py b/qtile/.config/qtile/core/hooks.py index db69423aa..c13a8199b 100644 --- a/qtile/.config/qtile/core/hooks.py +++ b/qtile/.config/qtile/core/hooks.py @@ -35,7 +35,7 @@ def start_once(): @hook.subscribe.client_managed def auto_focus(window): - window.group.cmd_toscreen() + window.group.toscreen() @hook.subscribe.client_new diff --git a/qtile/.config/qtile/core/screens.py b/qtile/.config/qtile/core/screens.py index 8b3803b9a..9b5b07484 100644 --- a/qtile/.config/qtile/core/screens.py +++ b/qtile/.config/qtile/core/screens.py @@ -8,10 +8,12 @@ screens = [ wallpaper=cfg.wallpaper, wallpaper_mode="fill", top=Bar(cfg.bar).create(), + bottom=Bar(cfg.bar2).create(), ), Screen( wallpaper=cfg.wallpaper, wallpaper_mode="fill", - top=Bar(cfg.bar2).create(), + top=Bar(cfg.bar).create(), + bottom=Bar(cfg.bar2).create(), ), ] diff --git a/qtile/.config/qtile/scripts/xcompmgr-toggle.sh b/qtile/.config/qtile/scripts/xcompmgr-toggle.sh index 963cbaf16..d4eb6e292 100644 --- a/qtile/.config/qtile/scripts/xcompmgr-toggle.sh +++ b/qtile/.config/qtile/scripts/xcompmgr-toggle.sh @@ -1,10 +1,5 @@ #!/usr/bin/env bash -# https://github.com/jaagr/polybar/wiki/User-contributed-modules - -#The command for starting compton -#always keep the -b argument! - if pgrep -x "xcompmgr" >/dev/null; then killall xcompmgr else diff --git a/qtile/.config/qtile/scripts/xcompmgr.sh b/qtile/.config/qtile/scripts/xcompmgr.sh index f20b6e4f4..1a478d674 100644 --- a/qtile/.config/qtile/scripts/xcompmgr.sh +++ b/qtile/.config/qtile/scripts/xcompmgr.sh @@ -1,8 +1,6 @@ #!/usr/bin/env bash -# https://github.com/jaagr/polybar/wiki/User-contributed-modules - -#The icon that would change color +#The text that would change color if pgrep -x "xcompmgr" >/dev/null; then echo -n "Loaded" else