<commit_before>#!/bin/env python3
from pathlib import Path
import os

from lemonsqueezer.modules import Clock
from modules import BSPWMDesktops, Battery, CurrentWifi, MediaControls, LayoutIndicator
from lemonsqueezer import Align
import lemonsqueezer as lsq

lockfile = Path('/tmp/lemonsqueezer.lock')
lockfile.write_text(str(os.getpid()))


bar = lsq.Bar(
    config_file=str(Path.home() / '.config/lemonbar/colors.json'),
    fonts=[
        "FontAwesome:style=Regular", "Noto Sans Display", "Sans"
    ],
    geometry=(1920, 30, 0, 0),
    bg_color="#DD6a1931",
    fg_color="#FFFFFF",
    padding=(20, 20),
    spacing=10,
    offset=-5,
    separator='│')

bar.register_module(
    MediaControls(
        '{artist} - {title}', ('  ', '  ', '', ''),
        icon='',
        align=Align.LEFT))
bar.register_module(
    BSPWMDesktops(
        monitor_sel='primary',
        highlight_color='#4788ef',
        align=Align.CENTER))
bar.register_module(LayoutIndicator(align=Align.RIGHT))
bar.register_module(Battery(
    plugged_in_icon='',
    battery_icon='',
    align=Align.RIGHT))
bar.register_module(CurrentWifi('wlp58s0', icon='', align=Align.RIGHT))
bar.register_module(
    Clock("+%a %d %b - %H:%M", 20, icon='', align=Align.RIGHT))

try:
    bar.run()
finally:
    os.remove(lockfile)
<commit_msg>Move bar to bottom<commit_after>#!/bin/env python3
from pathlib import Path
import os

from lemonsqueezer.modules import Clock
from modules import BSPWMDesktops, Battery, CurrentWifi, MediaControls, LayoutIndicator
from lemonsqueezer import Align
import lemonsqueezer as lsq

lockfile = Path('/tmp/lemonsqueezer.lock')
lockfile.write_text(str(os.getpid()))


bar = lsq.Bar(
    config_file=str(Path.home() / '.config/lemonbar/colors.json'),
    fonts=[
        "FontAwesome:style=Regular", "Noto Sans Display", "Sans"
    ],
    screen_bottom=True,
    geometry=(1920, 30, 0, 0),
    bg_color="#DD6a1931",
    fg_color="#FFFFFF",
    padding=(20, 20),
    spacing=10,
    offset=-5,
    separator='│')

bar.register_module(
    MediaControls(
        '{artist} - {title}', ('  ', '  ', '', ''),
        icon='',
        align=Align.LEFT))
bar.register_module(
    BSPWMDesktops(
        monitor_sel='primary',
        highlight_color='#4788ef',
        align=Align.CENTER))
bar.register_module(LayoutIndicator(align=Align.RIGHT))
bar.register_module(Battery(
    plugged_in_icon='',
    battery_icon='',
    align=Align.RIGHT))
bar.register_module(CurrentWifi('wlp58s0', icon='', align=Align.RIGHT))
bar.register_module(
    Clock("+%a %d %b - %H:%M", 20, icon='', align=Align.RIGHT))

try:
    bar.run()
finally:
    os.remove(lockfile)

{'fraction_non_alphanumeric': 0.1628517823639775, 'fraction_numerical': 0.0225140712945591, 'mean_word_length': 3.9831775700934577, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5125826', 'n_tokens_mistral': 1038, 'n_tokens_neox': 977, 'n_words': 178}