Update qtile config

This commit is contained in:
Roland Thomas Jr 2023-09-03 13:52:04 -04:00
parent 3fe0541ba1
commit dd9ca404b8
1 changed files with 55 additions and 51 deletions

View File

@ -6,11 +6,23 @@ r'''
|_| \___/|___/_| |_|\__,_|_| \__, |\__|_|_|\___| |_| \___/|___/_| |_|\__,_|_| \__, |\__|_|_|\___|
|_| |_|
''' '''
from subprocess import run, CalledProcessError from subprocess import CalledProcessError, run
from libqtile import bar, layout, widget, extension
from libqtile.config import Click, Drag, Group, Key, KeyChord, Match, Screen, ScratchPad, DropDown from keys import OPENWEATHER_APP_KEY, OPENWEATHER_CITI_ID
from libqtile.scripts.main import VERSION from libqtile import bar, extension, layout, widget
from libqtile.config import (
Click,
Drag,
DropDown,
Group,
Key,
KeyChord,
Match,
ScratchPad,
Screen,
)
from libqtile.lazy import lazy from libqtile.lazy import lazy
from libqtile.scripts.main import VERSION
mod = 'mod4' mod = 'mod4'
terminal = 'alacritty' terminal = 'alacritty'
@ -479,8 +491,8 @@ screens = [
widget.OpenWeather( widget.OpenWeather(
background=nord['nord15'], background=nord['nord15'],
foreground=nord['nord0'], foreground=nord['nord0'],
cityid='4198514', cityid=OPENWEATHER_CITI_ID,
app_key='*****', app_key=OPENWEATHER_APP_KEY,
metric=False), metric=False),
widget.Net( widget.Net(
background=nord['nord10'], background=nord['nord10'],
@ -519,12 +531,6 @@ screens = [
), ),
] ]
), ),
# widget.Image(
# background=nord['nord0'],
# filename=f'{images_dir}/DevSecLife_Logo-01.png',
# margin=2,
# mouse_callbacks={'Button1':lazy.spawn(rofi)},
# ),
widget.Spacer( widget.Spacer(
background=nord['nord0'], background=nord['nord0'],
length=6 length=6
@ -612,7 +618,6 @@ screens = [
widgets=[ widgets=[
widget.Mpris2( widget.Mpris2(
name='spotifyd', name='spotifyd',
#objname=media_player,
format = '{xesam:title} - ({xesam:artist})', format = '{xesam:title} - ({xesam:artist})',
playing_text = '{track}', playing_text = '{track}',
paused_text = '{track}', paused_text = '{track}',
@ -648,8 +653,8 @@ screens = [
widget.OpenWeather( widget.OpenWeather(
background=nord['nord15'], background=nord['nord15'],
foreground=nord['nord0'], foreground=nord['nord0'],
cityid='4198514', cityid=OPENWEATHER_CITI_ID,
app_key='*****', app_key=OPENWEATHER_APP_KEY,
metric=False), metric=False),
widget.Net( widget.Net(
background=nord['nord10'], background=nord['nord10'],
@ -775,7 +780,6 @@ screens = [
widgets=[ widgets=[
widget.Mpris2( widget.Mpris2(
name='spotifyd', name='spotifyd',
#objname=media_player,
format = '{xesam:title} - ({xesam:artist})', format = '{xesam:title} - ({xesam:artist})',
playing_text = '{track}', playing_text = '{track}',
paused_text = '{track}', paused_text = '{track}',
@ -811,8 +815,8 @@ screens = [
widget.OpenWeather( widget.OpenWeather(
background=nord['nord15'], background=nord['nord15'],
foreground=nord['nord0'], foreground=nord['nord0'],
cityid='4198514', cityid=OPENWEATHER_CITI_ID,
app_key='*****', app_key=OPENWEATHER_APP_KEY,
metric=False), metric=False),
widget.Net( widget.Net(
background=nord['nord10'], background=nord['nord10'],