contains a bug

This commit is contained in:
ggodot 2024-12-24 21:04:57 +01:00
parent 89eb0892f0
commit a6f778b2a8
4 changed files with 52 additions and 30 deletions

View File

@ -2,5 +2,8 @@
- [ ] more widgets - [ ] more widgets
- [ ] popup - [ ] popup
- [ ] notifications - [ ] notifications
- [ ] borders and separation of colors
# Bugs # Bugs
- [ ] Deflout not working
- [ ] add jq as dependencies

49
bar.py
View File

@ -22,8 +22,6 @@ colors = [["#293136", "#293136"], #bg_dim [0]
["#434F55", "#434F55"], #bg_2 [3] ["#434F55", "#434F55"], #bg_2 [3]
["#4D5960", "#4D5960"], #bg_3 [4] ["#4D5960", "#4D5960"], #bg_3 [4]
["#555F66", "#555F66"], #bg_4 [5] ["#555F66", "#555F66"], #bg_4 [5]
["#7FBBB3", "#7FBBB3"], #blue [6]
["#A7C080", "#A7C080"], #green [7]
["#DBBC7F", "#DBBC7F"], #yellow [8] ["#DBBC7F", "#DBBC7F"], #yellow [8]
["#E69875", "#E69875"], #orange [9] ["#E69875", "#E69875"], #orange [9]
['#ED8082', '#ED8080'], #red [10] ['#ED8082', '#ED8080'], #red [10]
@ -89,6 +87,21 @@ kb_layout = widget.KeyboardLayout(
**rounded_right, **rounded_right,
) )
#wifi = widget.Wlan(
#interface = "ath9k",
#font="JetBrainsMono Nerd Font",
#background=colors[10],
#**rounded_right,
#)
#vpn = widget.GenPollCommand(
#update_interval = 3600,
#background = colors[2],
#shell = True,
#cmd = "tailscale status --peers --json | jq '.ExitNodeStatus.ID as $node_id | .Peer[] | select(.ID==$node_id) | .HostName'",
#**rounded_right,
#)
ram = widget.Memory( ram = widget.Memory(
font="JetBrainsMono Nerd Font", font="JetBrainsMono Nerd Font",
format = "{MemFree:.0f} 󰓡 {SwapFree:.0f}", format = "{MemFree:.0f} 󰓡 {SwapFree:.0f}",
@ -129,13 +142,15 @@ screens = [
bottom=bar.Gap(5), bottom=bar.Gap(5),
top=bar.Bar([ top=bar.Bar([
icon, #icon,
group_box, #group_box,
spacer, #spacer,
kb_layout, #kb_layout,
ram, #wifi,
battery, #vpn,
clock, #ram,
#battery,
#clock,
], 30, ], 30,
margin=6, margin=6,
), ),
@ -150,13 +165,15 @@ screens = [
bottom=bar.Gap(5), bottom=bar.Gap(5),
top=bar.Bar([ top=bar.Bar([
icon, #icon,
group_box, #group_box,
spacer, #spacer,
kb_layout, #kb_layout,
ram, #wifi,
battery, #vpn,
clock, #ram,
#battery,
#clock,
], 30, ], 30,
margin=6, margin=6,
), ),

View File

@ -1,2 +1,3 @@
python-psutil for qtile-extras python-psutil for qtile memory widget
jq for ExitNode script
python-iwlib for qtile wifi widget

View File

@ -61,8 +61,9 @@ keys = [
Key([mod], "z", lazy.widget["keyboardlayout"].next_keyboard(), desc="Next keyboard layout"), Key([mod], "z", lazy.widget["keyboardlayout"].next_keyboard(), desc="Next keyboard layout"),
# Toggle between different layouts as defined below # Toggle between different layouts as defined below
Key([mod], "space", lazy.spawn("swaylock -C /home/godot/.config/swaylock/swaylock.conf"), desc="Launch firefox"),
Key([mod], "Tab", lazy.next_layout(), desc="Toggle between layouts"), Key([mod], "Tab", lazy.next_layout(), desc="Toggle between layouts"),
Key([mod], "f", lazy.window.toggle_floating(), desc="Toggle flotingness"),
Key([mod], "q", lazy.window.kill(), desc="Kill focused window"), Key([mod], "q", lazy.window.kill(), desc="Kill focused window"),
Key([mod, "control"], "r", lazy.reload_config(), desc="Reload the config"), Key([mod, "control"], "r", lazy.reload_config(), desc="Reload the config"),
Key([mod, "control"], "q", lazy.shutdown(), desc="Shutdown Qtile"), Key([mod, "control"], "q", lazy.shutdown(), desc="Shutdown Qtile"),