Commit 67681210520c3d30e2e513bb463e26b2bd190f7d Parent: 908181fa2d2ff0760e821d7b4f07a1818c40d988 Author: mcol <mcol@posteo.net> Date: 2022-08-24 00:15:08 +0100 Committer: mcol <mcol@posteo.net> Committed: 2022-08-24 00:15:08 +0100 black
x11.py Modified
@@ -11,7 +11,7 @@ mod = "mod1" if IS_XEPHYR else "mod4" -#term = "xterm" if IS_XEPHYR else "urxvt" # urxvt doesn't like xephyr +# term = "xterm" if IS_XEPHYR else "urxvt" # urxvt doesn't like xephyr term = "xterm" wmname = "LG3D" keys_backend = []
wayland.py Modified
@@ -43,18 +43,19 @@ drag=True, tap=True, dwt=False, pointer_accel=0.3 ), "1e7d:2c38:ROCCAT ROCCAT Kiro Mouse": InputConfig( - left_handed=True, pointer_accel=-1.0, + left_handed=True, + pointer_accel=-1.0, ), "type:pointer": InputConfig(pointer_accel=-1.0), } # Shadows configuration -#wl_shadows = { +# wl_shadows = { # "radius": 12, # "color": "#05001088", # "offset": (-6, -6), -#} +# } wl_shadows = { "radius": 5, "color": "#ff000044",
mindfulness.py Modified
@@ -23,7 +23,8 @@ from random import randint import gi -gi.require_version('Gst', '1.0') + +gi.require_version("Gst", "1.0") from gi.repository import Gst from libqtile.log_utils import logger @@ -86,7 +87,7 @@ logger.info("Downloading default tone for ReMindfulness widget") request.urlretrieve(self.default_url, self.audio_file) - playbin = Gst.ElementFactory.make('playbin', 'playbin') + playbin = Gst.ElementFactory.make("playbin", "playbin") playbin.props.uri = "file://" + self.audio_file playbin.set_state(Gst.State.PLAYING)
config.py Modified
@@ -49,8 +49,8 @@ reload("power_menu") from power_menu import keys_power_menu -#reload("mindfulness") -#from mindfulness import ReMindfulness +# reload("mindfulness") +# from mindfulness import ReMindfulness IS_WAYLAND: bool = qtile.core.name == "wayland" IS_XEPHYR: bool = int(os.environ.get("QTILE_XEPHYR", 0)) > 0 @@ -211,7 +211,12 @@ ([], "Pause", lazy.spawn("playerctl play-pause"), "Play/unpause music"), ([], "XF86AudioPlay", lazy.spawn("playerctl play-pause"), "Play/unpause music"), # Launchers - ([mod], "d", lazy.spawn("rofi -show run -theme ~/.config/rofi/common.rasi"), "Spawn with rofi"), + ( + [mod], + "d", + lazy.spawn("rofi -show run -theme ~/.config/rofi/common.rasi"), + "Spawn with rofi", + ), ([mod], "Return", lazy.spawn(term), "Spawn terminal"), ([mod, "shift"], "f", lazy.spawn("firefox"), "Spawn Firefox"), ( @@ -224,8 +229,18 @@ (["shift"], "Print", lazy.spawn("screenshot"), "Screenshot to file"), ([mod], "p", lazy.spawn("get_password_rofi"), "Keepass passwords"), ([mod], "i", lazy.spawn("systemctl suspend -i"), "Suspend system"), - ([mod, "shift"], "i", lazy.spawn("gtklock & systemctl suspend -i", shell=True), "Suspend and lock"), - ([mod, "shift"], "p", lazy.widget["pomodoro"].toggle_active(), "Toggle Pomodoro"), + ( + [mod, "shift"], + "i", + lazy.spawn("gtklock & systemctl suspend -i", shell=True), + "Suspend and lock", + ), + ( + [mod, "shift"], + "p", + lazy.widget["pomodoro"].toggle_active(), + "Toggle Pomodoro", + ), ] ) @@ -263,7 +278,7 @@ wrap_focus_columns=False, wrap_focus_rows=False, margin=0, - #margin_on_single=30, # 4 + # margin_on_single=30, # 4 ), # layout.Stack( # border_width=5, @@ -447,12 +462,12 @@ update_interval=5, ) -#mind = ReMindfulness( +# mind = ReMindfulness( # "", # reminder_text="MIND!", # reminder_background=colours[2], # foreground=colours[2], -#) +# ) class MyBattery(Battery): @@ -531,7 +546,8 @@ groupboxes = [ widget.GroupBox(**groupbox_config), widget.GroupBox(**groupbox_config, visible_groups=["q", "w", "e", "r"]), - ] +] + @hook.subscribe.startup def _(): @@ -566,7 +582,7 @@ widget.Spacer(name="s2"), pomodoro, systray, - #mind, + # mind, volume, bklight, wlan,