-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added second top bar <top_bar_minimal> with qtile extra packages + Re…
…ctDecoration and PowerLineDecoration
- Loading branch information
Showing
50 changed files
with
1,104 additions
and
63 deletions.
There are no files selected for viewing
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file added
BIN
+874 Bytes
qtile/decoratedWidgets/__pycache__/decorated_battery.cpython-310.pyc
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+823 Bytes
qtile/decoratedWidgets/__pycache__/decorated_current_layout.cpython-310.pyc
Binary file not shown.
Binary file added
BIN
+905 Bytes
qtile/decoratedWidgets/__pycache__/decorated_groups.cpython-310.pyc
Binary file not shown.
Binary file added
BIN
+945 Bytes
qtile/decoratedWidgets/__pycache__/decorated_keyboard_layout.cpython-310.pyc
Binary file not shown.
Binary file added
BIN
+832 Bytes
qtile/decoratedWidgets/__pycache__/decorated_pomodoro.cpython-310.pyc
Binary file not shown.
Binary file added
BIN
+944 Bytes
qtile/decoratedWidgets/__pycache__/decorated_thermal_sensor.cpython-310.pyc
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+948 Bytes
qtile/decoratedWidgets/__pycache__/decorated_volume.cpython-310.pyc
Binary file not shown.
Binary file added
BIN
+694 Bytes
qtile/decoratedWidgets/__pycache__/decorated_window_name.cpython-310.pyc
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
from qtile_extras.widget import modify | ||
from decorations.decorations import decoration, base, iconFont | ||
from libqtile.widget.battery import Battery | ||
from libqtile.widget.textbox import TextBox | ||
from libqtile.command import lazy | ||
|
||
|
||
def battery(bg: str, fg: str,low_fg: str): | ||
return modify( | ||
Battery, | ||
**decoration('right'), | ||
**iconFont(), | ||
**base(bg, fg), | ||
update_interval = 10, | ||
low_foreground = low_fg, | ||
charge_char='', | ||
discharge_char='', | ||
empty_char='', | ||
full_char='', | ||
format='{char} {percent:2.0%}', | ||
), |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
from qtile_extras.widget import modify | ||
from decorations.decorations import decoration, base, iconFont, powerline | ||
from libqtile.widget.clock import Clock | ||
from libqtile.widget.textbox import TextBox | ||
from libqtile.command import lazy | ||
|
||
|
||
def clock(bg: str, fg: str) -> list: | ||
return [ | ||
modify( | ||
TextBox, | ||
**base(bg, fg), | ||
# **decoration('left'), | ||
**iconFont(size=13), | ||
text = '', | ||
x = 4, | ||
padding=14 | ||
), | ||
modify( | ||
Clock, | ||
**decoration('right'), | ||
**iconFont(size=13), | ||
foreground = fg, | ||
background = bg, | ||
format="%H:%M %Y-%m-%d" | ||
|
||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
from libqtile.widget.cmus import Cmus | ||
from libqtile.widget.textbox import TextBox | ||
|
||
from qtile_extras.widget import modify | ||
from decorations.decorations import decoration, base, iconFont | ||
|
||
def cmus(bg: str,fg:str, pc: str) -> list: | ||
return [ | ||
modify( | ||
TextBox, | ||
**base(bg, fg), | ||
**decoration('left'), | ||
**iconFont(), | ||
text = '', | ||
x = 4, | ||
), | ||
modify( | ||
Cmus, | ||
**base(bg, None), | ||
font="Noto Sans Bold", | ||
**decoration('right'), | ||
play_color=pc | ||
|
||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
from qtile_extras.widget import modify | ||
from decorations.decorations import decoration, base, iconFont,powerline | ||
from libqtile.widget.cpu import CPU | ||
from libqtile.widget.textbox import TextBox | ||
from libqtile.command import lazy | ||
|
||
|
||
def cpu(bg: str, fg: str, fg_fill:str) -> list: | ||
return [ | ||
modify( | ||
TextBox, | ||
**base(bg, fg), | ||
**iconFont(), | ||
text = '', | ||
# x = 4, | ||
padding=14 | ||
), | ||
modify( | ||
CPU, | ||
background=bg, | ||
**iconFont(), | ||
**powerline('arrow_right'), | ||
fill_color=fg_fill, | ||
mouse_callbacks={'Button1': lazy.spawn("alacritty -e btop")}, | ||
format='{load_percent}%', | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
from qtile_extras.widget import modify | ||
from decorations.decorations import decoration, base, iconFont,powerline | ||
from libqtile.widget.textbox import TextBox | ||
from libqtile.widget.currentlayout import CurrentLayout | ||
# | ||
|
||
def current_layout(bg: str, fg: str) -> list: | ||
return [ | ||
modify( | ||
TextBox, | ||
**base(bg, fg), | ||
**iconFont(), | ||
**decoration('left'), | ||
text = '練', | ||
padding=8 | ||
), | ||
modify( | ||
CurrentLayout, | ||
**base(bg, fg), | ||
**powerline('arrow_left'), | ||
**iconFont(size=14), | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
from decorations.decorations import iconFont | ||
from extras.group_box import GroupBox | ||
|
||
from colors import based_colors, light_colors, colorfull_colors | ||
|
||
|
||
def groups(bg: str) -> GroupBox: | ||
return GroupBox( | ||
**iconFont(size=17), | ||
background = bg, | ||
borderwidth = 1, | ||
colors = [ | ||
based_colors['orange'],based_colors['light_orange'],based_colors['spanish_viridian'], | ||
based_colors['white'],based_colors['light_background'],based_colors['purple_background'], | ||
colorfull_colors['purple'],colorfull_colors['sky_blue'],light_colors['baby_powder'], | ||
], | ||
highlight_color = based_colors['risin_black'], | ||
highlight_method = 'line', | ||
inactive = colorfull_colors['purple'], | ||
invert = True, | ||
padding = 7, | ||
rainbow = True, | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
from qtile_extras.widget import modify | ||
from decorations.decorations import decoration, base, iconFont, powerline | ||
from libqtile.widget.keyboardlayout import KeyboardLayout | ||
from libqtile.widget.textbox import TextBox | ||
from libqtile.command import lazy | ||
|
||
|
||
def keyboard_layout(bg: str, fg: str) -> list: | ||
return [ | ||
modify( | ||
TextBox, | ||
**base(bg, fg), | ||
**iconFont(), | ||
text = '', | ||
x = 4, | ||
padding=14 | ||
), | ||
modify( | ||
KeyboardLayout, | ||
**decoration('right'), | ||
**iconFont(), | ||
configured_keyboards = ['us', 'ru', 'am phonetic-alt'], | ||
display_map = {'us':'US','ru':'RU','am phonetic-alt':'am'}, | ||
background = bg, | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
from qtile_extras.widget import modify | ||
from decorations.decorations import decoration, base, iconFont, powerline | ||
from libqtile.widget.pomodoro import Pomodoro | ||
from libqtile.widget.textbox import TextBox | ||
|
||
# | ||
|
||
def pomodoro(bg: str, fg: str) -> list: | ||
return [ | ||
modify( | ||
TextBox, | ||
**base(bg, fg), | ||
**iconFont(), | ||
text = '', | ||
x = 4, | ||
# padding=14 | ||
), | ||
modify( | ||
Pomodoro, | ||
**base(bg, fg), | ||
**decoration('right'), | ||
**iconFont(size=13), | ||
color_active = fg, | ||
color_break = fg, | ||
color_inactive = fg | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
from qtile_extras.widget import modify | ||
from decorations.decorations import decoration, base, iconFont,powerline | ||
from libqtile.widget.sensors import ThermalSensor | ||
from libqtile.widget.textbox import TextBox | ||
from libqtile.command import lazy | ||
|
||
|
||
def thermal_sensor(bg: str, fg: str, fg_alert:str) -> list: | ||
return [ | ||
modify( | ||
TextBox, | ||
**base(bg, fg), | ||
**decoration('left'), | ||
**iconFont(), | ||
text = '', | ||
# x = 4, | ||
padding=14 | ||
), | ||
modify( | ||
ThermalSensor, | ||
**base(bg, fg), | ||
# **decoration('right'), | ||
**powerline('arrow_right'), | ||
**iconFont(), | ||
metric = True, | ||
padding = 3, | ||
threshold = 80, | ||
foreground_alert=fg_alert | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
from qtile_extras.widget import modify | ||
from decorations.decorations import decoration, base, iconFont,powerline | ||
from libqtile.widget.check_updates import CheckUpdates | ||
from libqtile.widget.textbox import TextBox | ||
from libqtile.command import lazy | ||
|
||
|
||
def check_updates(bg: str, fg: str, no_updates_color:str, have_updates_colors: str) -> list: | ||
return [ | ||
modify( | ||
TextBox, | ||
**base(bg, fg), | ||
**iconFont(), | ||
**decoration('left'), | ||
text = '', | ||
# x = 4, | ||
padding=14 | ||
), | ||
modify( | ||
CheckUpdates, | ||
**iconFont(size=13), | ||
**powerline('arrow_right'), | ||
distro='Arch_Sup', | ||
colour_have_updates=have_updates_colors, | ||
colour_no_updates = no_updates_color, | ||
background = bg, | ||
execute = 'alacritty -e yay', | ||
display_format = 'upd {updates}', | ||
initial_text = 'check...', | ||
no_update_string = 'yay' | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
from qtile_extras.widget import modify | ||
from decorations.decorations import decoration, base, iconFont, powerline | ||
from libqtile.widget.volume import Volume | ||
from libqtile.widget.textbox import TextBox | ||
|
||
|
||
def volume(bg: str, fg: str) -> list: | ||
return [ | ||
modify( | ||
TextBox, | ||
**base(bg, fg), | ||
**iconFont(), | ||
text = '', | ||
x = 4, | ||
), | ||
modify( | ||
Volume, | ||
**base(bg, fg), | ||
**iconFont(), | ||
**powerline('arrow_right'), | ||
commands = { | ||
'decrease': 'pamixer --decrease 5', | ||
'increase': 'pamixer --increase 5', | ||
'get': 'pamixer --get-volume-human', | ||
'mute': 'pamixer --toggle-mute', | ||
}, | ||
update_interval = 0.1, | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
from libqtile.bar import CALCULATED | ||
from libqtile.widget.windowname import WindowName | ||
from decorations.decorations import base | ||
from utils import get_window_name | ||
|
||
def window_name(bg: str, fg: str) -> object: | ||
return WindowName( | ||
**base(bg, fg), | ||
format = '{state}{name}', | ||
parse_text = get_window_name, | ||
max_chars = 60, | ||
width = CALCULATED, | ||
fontsize = 12, | ||
font="Noto Sans Bold", | ||
|
||
|
||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
from qtile_extras.widget import modify | ||
from decorations.decorations import decoration, base, iconFont,powerline | ||
from libqtile.widget.wlan import Wlan | ||
from libqtile.widget.textbox import TextBox | ||
from libqtile.command import lazy | ||
|
||
|
||
def wlan(bg: str, fg: str) -> list: | ||
return [ | ||
modify( | ||
TextBox, | ||
**base(bg, fg), | ||
**decoration('left'), | ||
**iconFont(), | ||
text = '', | ||
# x = 4, | ||
padding=14 | ||
), | ||
modify( | ||
Wlan, | ||
**base(bg, fg), | ||
**powerline('arrow_right'), | ||
**iconFont(), | ||
format='{quality}/70', | ||
interface='wlp61s0', | ||
mouse_callbacks={'Button1': lazy.spawn('nm-connection-editor')} | ||
), | ||
] |
Binary file not shown.
Oops, something went wrong.