mirror of
https://gitlab.com/dwt1/dotfiles.git
synced 2026-08-12 02:51:14 +10:00
Working on new qtile with rounded floating bar and new icon.
This commit is contained in:
@@ -47,6 +47,7 @@ shadow-exclude = [
|
|||||||
"_GTK_FRAME_EXTENTS@:c"
|
"_GTK_FRAME_EXTENTS@:c"
|
||||||
];
|
];
|
||||||
|
|
||||||
|
corner-radius = 8
|
||||||
|
|
||||||
# Fade windows in/out when opening/closing and when opacity changes,
|
# Fade windows in/out when opening/closing and when opacity changes,
|
||||||
# unless no-fading-openclose is used.
|
# unless no-fading-openclose is used.
|
||||||
|
|||||||
+24
-70
@@ -265,11 +265,11 @@ Groups are really workspaces. group_names should remain 1-9 so the MOD+1-9 keyb
|
|||||||
groups = []
|
groups = []
|
||||||
group_names = ["1", "2", "3", "4", "5", "6", "7", "8", "9",]
|
group_names = ["1", "2", "3", "4", "5", "6", "7", "8", "9",]
|
||||||
|
|
||||||
group_labels = ["1", "2", "3", "4", "5", "6", "7", "8", "9",]
|
#group_labels = ["1", "2", "3", "4", "5", "6", "7", "8", "9",]
|
||||||
#group_labels = ["DEV", "WWW", "SYS", "DOC", "VBOX", "CHAT", "MUS", "VID", "GFX",]
|
#group_labels = ["DEV", "WWW", "SYS", "DOC", "VBOX", "CHAT", "MUS", "VID", "GFX",]
|
||||||
#group_labels = ["", "", "", "", "", "", "", "", "",]
|
group_labels = [" ", " ", " ", " ", " ", "🎙 ", " ", " ", " "]
|
||||||
|
|
||||||
group_layouts = ["monadtall", "monadtall", "tile", "tile", "monadtall", "monadtall", "monadtall", "monadtall", "monadtall"]
|
group_layouts = ["monadtall", "monadtall", "monadtall", "monadtall", "monadtall", "monadtall", "monadtall", "monadtall", "monadtall"]
|
||||||
|
|
||||||
for i in range(len(group_names)):
|
for i in range(len(group_names)):
|
||||||
groups.append(
|
groups.append(
|
||||||
@@ -325,7 +325,7 @@ Some settings that I use on almost every layout, which saves me from having to t
|
|||||||
|
|
||||||
#+begin_src python
|
#+begin_src python
|
||||||
layout_theme = {"border_width": 2,
|
layout_theme = {"border_width": 2,
|
||||||
"margin": 8,
|
"margin": 12,
|
||||||
"border_focus": colors[8],
|
"border_focus": colors[8],
|
||||||
"border_normal": colors[0]
|
"border_normal": colors[0]
|
||||||
}
|
}
|
||||||
@@ -403,9 +403,11 @@ This is the bar (the panel) and the widgets within the bar.
|
|||||||
#+begin_src python
|
#+begin_src python
|
||||||
def init_widgets_list():
|
def init_widgets_list():
|
||||||
widgets_list = [
|
widgets_list = [
|
||||||
|
widget.Spacer(length = 8),
|
||||||
widget.Image(
|
widget.Image(
|
||||||
filename = "~/.config/qtile/icons/logo.png",
|
filename = "~/.config/qtile/icons/infinity-icon.png",
|
||||||
scale = "False",
|
scale = "False",
|
||||||
|
margin_x = 5,
|
||||||
mouse_callbacks = {'Button1': lambda: qtile.cmd_spawn(myTerm)},
|
mouse_callbacks = {'Button1': lambda: qtile.cmd_spawn(myTerm)},
|
||||||
),
|
),
|
||||||
widget.Prompt(
|
widget.Prompt(
|
||||||
@@ -418,10 +420,10 @@ def init_widgets_list():
|
|||||||
margin_y = 5,
|
margin_y = 5,
|
||||||
margin_x = 5,
|
margin_x = 5,
|
||||||
padding_y = 0,
|
padding_y = 0,
|
||||||
padding_x = 1,
|
padding_x = 2,
|
||||||
borderwidth = 3,
|
borderwidth = 3,
|
||||||
active = colors[8],
|
active = colors[8],
|
||||||
inactive = colors[1],
|
inactive = colors[9],
|
||||||
rounded = False,
|
rounded = False,
|
||||||
highlight_color = colors[2],
|
highlight_color = colors[2],
|
||||||
highlight_method = "line",
|
highlight_method = "line",
|
||||||
@@ -433,16 +435,10 @@ def init_widgets_list():
|
|||||||
widget.TextBox(
|
widget.TextBox(
|
||||||
text = '|',
|
text = '|',
|
||||||
font = "Ubuntu Mono",
|
font = "Ubuntu Mono",
|
||||||
foreground = colors[1],
|
foreground = colors[9],
|
||||||
padding = 2,
|
padding = 2,
|
||||||
fontsize = 14
|
fontsize = 14
|
||||||
),
|
),
|
||||||
widget.CurrentLayoutIcon(
|
|
||||||
# custom_icon_paths = [os.path.expanduser("~/.config/qtile/icons")],
|
|
||||||
foreground = colors[1],
|
|
||||||
padding = 4,
|
|
||||||
scale = 0.6
|
|
||||||
),
|
|
||||||
widget.CurrentLayout(
|
widget.CurrentLayout(
|
||||||
foreground = colors[1],
|
foreground = colors[1],
|
||||||
padding = 5
|
padding = 5
|
||||||
@@ -450,7 +446,7 @@ def init_widgets_list():
|
|||||||
widget.TextBox(
|
widget.TextBox(
|
||||||
text = '|',
|
text = '|',
|
||||||
font = "Ubuntu Mono",
|
font = "Ubuntu Mono",
|
||||||
foreground = colors[1],
|
foreground = colors[9],
|
||||||
padding = 2,
|
padding = 2,
|
||||||
fontsize = 14
|
fontsize = 14
|
||||||
),
|
),
|
||||||
@@ -463,38 +459,20 @@ def init_widgets_list():
|
|||||||
func = lambda: subprocess.check_output("printf $(uname -r)", shell=True, text=True),
|
func = lambda: subprocess.check_output("printf $(uname -r)", shell=True, text=True),
|
||||||
foreground = colors[3],
|
foreground = colors[3],
|
||||||
fmt = '❤ {}',
|
fmt = '❤ {}',
|
||||||
decorations=[
|
|
||||||
BorderDecoration(
|
|
||||||
colour = colors[3],
|
|
||||||
border_width = [0, 0, 2, 0],
|
|
||||||
)
|
|
||||||
],
|
|
||||||
),
|
),
|
||||||
widget.Spacer(length = 8),
|
widget.Spacer(length = 12),
|
||||||
widget.CPU(
|
widget.CPU(
|
||||||
format = '▓ Cpu: {load_percent}%',
|
format = ' Cpu: {load_percent}%',
|
||||||
foreground = colors[4],
|
foreground = colors[4],
|
||||||
decorations=[
|
),
|
||||||
BorderDecoration(
|
widget.Spacer(length = 12),
|
||||||
colour = colors[4],
|
|
||||||
border_width = [0, 0, 2, 0],
|
|
||||||
)
|
|
||||||
],
|
|
||||||
),
|
|
||||||
widget.Spacer(length = 8),
|
|
||||||
widget.Memory(
|
widget.Memory(
|
||||||
foreground = colors[8],
|
foreground = colors[8],
|
||||||
mouse_callbacks = {'Button1': lambda: qtile.cmd_spawn(myTerm + ' -e htop')},
|
mouse_callbacks = {'Button1': lambda: qtile.cmd_spawn(myTerm + ' -e htop')},
|
||||||
format = '{MemUsed: .0f}{mm}',
|
format = '{MemUsed: .0f}{mm}',
|
||||||
fmt = '🖥 Mem: {} used',
|
fmt = '🖥 Mem: {} used',
|
||||||
decorations=[
|
|
||||||
BorderDecoration(
|
|
||||||
colour = colors[8],
|
|
||||||
border_width = [0, 0, 2, 0],
|
|
||||||
)
|
|
||||||
],
|
|
||||||
),
|
),
|
||||||
widget.Spacer(length = 8),
|
widget.Spacer(length = 12),
|
||||||
widget.DF(
|
widget.DF(
|
||||||
update_interval = 60,
|
update_interval = 60,
|
||||||
foreground = colors[5],
|
foreground = colors[5],
|
||||||
@@ -504,49 +482,25 @@ def init_widgets_list():
|
|||||||
format = '{uf}{m} free',
|
format = '{uf}{m} free',
|
||||||
fmt = '🖴 Disk: {}',
|
fmt = '🖴 Disk: {}',
|
||||||
visible_on_warn = False,
|
visible_on_warn = False,
|
||||||
decorations=[
|
|
||||||
BorderDecoration(
|
|
||||||
colour = colors[5],
|
|
||||||
border_width = [0, 0, 2, 0],
|
|
||||||
)
|
|
||||||
],
|
|
||||||
),
|
),
|
||||||
widget.Spacer(length = 8),
|
widget.Spacer(length = 12),
|
||||||
widget.Volume(
|
widget.Volume(
|
||||||
foreground = colors[7],
|
foreground = colors[7],
|
||||||
fmt = '🕫 Vol: {}',
|
fmt = '🕫 Vol: {}',
|
||||||
decorations=[
|
|
||||||
BorderDecoration(
|
|
||||||
colour = colors[7],
|
|
||||||
border_width = [0, 0, 2, 0],
|
|
||||||
)
|
|
||||||
],
|
|
||||||
),
|
),
|
||||||
widget.Spacer(length = 8),
|
widget.Spacer(length = 12),
|
||||||
widget.KeyboardLayout(
|
widget.KeyboardLayout(
|
||||||
foreground = colors[4],
|
foreground = colors[4],
|
||||||
fmt = '⌨ Kbd: {}',
|
fmt = '⌨ Kbd: {}',
|
||||||
decorations=[
|
|
||||||
BorderDecoration(
|
|
||||||
colour = colors[4],
|
|
||||||
border_width = [0, 0, 2, 0],
|
|
||||||
)
|
|
||||||
],
|
|
||||||
),
|
),
|
||||||
widget.Spacer(length = 8),
|
widget.Spacer(length = 12),
|
||||||
widget.Clock(
|
widget.Clock(
|
||||||
foreground = colors[8],
|
foreground = colors[8],
|
||||||
format = "⏱ %a, %b %d - %H:%M",
|
format = "⏱ %a, %b %d - %H:%M",
|
||||||
decorations=[
|
|
||||||
BorderDecoration(
|
|
||||||
colour = colors[8],
|
|
||||||
border_width = [0, 0, 2, 0],
|
|
||||||
)
|
|
||||||
],
|
|
||||||
),
|
),
|
||||||
widget.Spacer(length = 8),
|
widget.Spacer(length = 12),
|
||||||
widget.Systray(padding = 3),
|
widget.Systray(padding = 3),
|
||||||
widget.Spacer(length = 8),
|
widget.Spacer(length = 18),
|
||||||
|
|
||||||
]
|
]
|
||||||
return widgets_list
|
return widgets_list
|
||||||
@@ -571,9 +525,9 @@ def init_widgets_screen2():
|
|||||||
# For ex: Screen(top=bar.Bar(widgets=init_widgets_screen2(), background="#00000000", size=24)),
|
# For ex: Screen(top=bar.Bar(widgets=init_widgets_screen2(), background="#00000000", size=24)),
|
||||||
|
|
||||||
def init_screens():
|
def init_screens():
|
||||||
return [Screen(top=bar.Bar(widgets=init_widgets_screen1(), size=26)),
|
return [Screen(top=bar.Bar(widgets=init_widgets_screen1(), margin=[8, 12, 0, 12], size=28)),
|
||||||
Screen(top=bar.Bar(widgets=init_widgets_screen2(), size=26)),
|
Screen(top=bar.Bar(widgets=init_widgets_screen2(), margin=[8, 12, 0, 12], size=28)),
|
||||||
Screen(top=bar.Bar(widgets=init_widgets_screen2(), size=26))]
|
Screen(top=bar.Bar(widgets=init_widgets_screen2(), margin=[8, 12, 0, 12], size=28))]
|
||||||
|
|
||||||
if __name__ in ["config", "__main__"]:
|
if __name__ in ["config", "__main__"]:
|
||||||
screens = init_screens()
|
screens = init_screens()
|
||||||
|
|||||||
+84
-74
@@ -11,7 +11,8 @@ DoomOne = [
|
|||||||
["#da8548", "#da8548"], # color04
|
["#da8548", "#da8548"], # color04
|
||||||
["#51afef", "#51afef"], # color05
|
["#51afef", "#51afef"], # color05
|
||||||
["#c678dd", "#c678dd"], # color06
|
["#c678dd", "#c678dd"], # color06
|
||||||
["#46d9ff", "#46d9ff"] # color15
|
["#46d9ff", "#46d9ff"], # color15
|
||||||
|
["#7d7d7d", "#7d7d7d"] # color[9]
|
||||||
]
|
]
|
||||||
|
|
||||||
Dracula = [
|
Dracula = [
|
||||||
@@ -23,100 +24,109 @@ Dracula = [
|
|||||||
["#f1fa8c", "#f1fa8c"], # color04
|
["#f1fa8c", "#f1fa8c"], # color04
|
||||||
["#bd93f9", "#bd93f9"], # color05
|
["#bd93f9", "#bd93f9"], # color05
|
||||||
["#ff79c6", "#ff79c6"], # color06
|
["#ff79c6", "#ff79c6"], # color06
|
||||||
["#9aedfe", "#9aedfe"] # color15
|
["#9aedfe", "#9aedfe"], # color15
|
||||||
|
["#7d7d7d", "#7d7d7d"] # color[9]
|
||||||
]
|
]
|
||||||
|
|
||||||
GruvboxDark = [
|
GruvboxDark = [
|
||||||
["#282828", "#282828"], # bg
|
["#282828", "#282828"], # color[0]
|
||||||
["#ebdbb2", "#ebdbb2"], # fg
|
["#ebdbb2", "#ebdbb2"], # color[1]
|
||||||
["#000000", "#000000"], # color01
|
["#000000", "#000000"], # color[2]
|
||||||
["#fb4934", "#fb4934"], # color02
|
["#fb4934", "#fb4934"], # color[3]
|
||||||
["#98971a", "#98971a"], # color03
|
["#98971a", "#98971a"], # color[4]
|
||||||
["#d79921", "#d79921"], # color04
|
["#d79921", "#d79921"], # color[5]
|
||||||
["#83a598", "#83a598"], # color05
|
["#83a598", "#83a598"], # color[6]
|
||||||
["#d3869b", "#d3869b"], # color06
|
["#d3869b", "#d3869b"], # color[7]
|
||||||
["#b8bb26", "#b8bb26"], # color11
|
["#b8bb26", "#b8bb26"], # color[8]
|
||||||
|
["#7d7d7d", "#7d7d7d"] # color[9]
|
||||||
]
|
]
|
||||||
MonokaiPro = [
|
MonokaiPro = [
|
||||||
["#2D2A2E", "#2D2A2E"], # bg
|
["#2D2A2E", "#2D2A2E"], # color[0]
|
||||||
["#FCFCFA", "#FCFCFA"], # fg
|
["#FCFCFA", "#FCFCFA"], # color[1]
|
||||||
["#403E41", "#403E41"], # color01
|
["#403E41", "#403E41"], # color[2]
|
||||||
["#FF6188", "#FF6188"], # color02
|
["#FF6188", "#FF6188"], # color[3]
|
||||||
["#A9DC76", "#A9DC76"], # color03
|
["#A9DC76", "#A9DC76"], # color[4]
|
||||||
["#FFD866", "#FFD866"], # color04
|
["#FFD866", "#FFD866"], # color[5]
|
||||||
["#FC9867", "#FC9867"], # color05
|
["#FC9867", "#FC9867"], # color[6]
|
||||||
["#AB9DF2", "#AB9DF2"], # color06
|
["#AB9DF2", "#AB9DF2"], # color[7]
|
||||||
["#78DCE8", "#78DCE8"] # color07
|
["#78DCE8", "#78DCE8"], # color[8]
|
||||||
|
["#7d7d7d", "#7d7d7d"] # color[9]
|
||||||
]
|
]
|
||||||
|
|
||||||
Nord = [
|
Nord = [
|
||||||
["#2E3440", "#2E3440"], # bg
|
["#2E3440", "#2E3440"], # color[0]
|
||||||
["#D8DEE9", "#D8DEE9"], # fg
|
["#D8DEE9", "#D8DEE9"], # color[1]
|
||||||
["#3B4252", "#3B4252"], # color01
|
["#3B4252", "#3B4252"], # color[2]
|
||||||
["#BF616A", "#BF616A"], # color02
|
["#BF616A", "#BF616A"], # color[3]
|
||||||
["#A3BE8C", "#A3BE8C"], # color03
|
["#A3BE8C", "#A3BE8C"], # color[4]
|
||||||
["#EBCB8B", "#EBCB8B"], # color04
|
["#EBCB8B", "#EBCB8B"], # color[5]
|
||||||
["#81A1C1", "#81A1C1"], # color05
|
["#81A1C1", "#81A1C1"], # color[6]
|
||||||
["#B48EAD", "#B48EAD"], # color06
|
["#B48EAD", "#B48EAD"], # color[7]
|
||||||
["#88C0D0", "#88C0D0"] # color07
|
["#88C0D0", "#88C0D0"], # color[8]
|
||||||
|
["#7d7d7d", "#7d7d7d"] # color[9]
|
||||||
]
|
]
|
||||||
|
|
||||||
OceanicNext = [
|
OceanicNext = [
|
||||||
["#1b2b34", "#1b2b34"], # bg
|
["#1b2b34", "#1b2b34"], # color[0]
|
||||||
["#d8dee9", "#d8dee9"], # fg
|
["#d8dee9", "#d8dee9"], # color[1]
|
||||||
["#29414f", "#29414f"], # color01
|
["#29414f", "#29414f"], # color[2]
|
||||||
["#ec5f67", "#ec5f67"], # color02
|
["#ec5f67", "#ec5f67"], # color[3]
|
||||||
["#99c794", "#99c794"], # color03
|
["#99c794", "#99c794"], # color[4]
|
||||||
["#fac863", "#fac863"], # color04
|
["#fac863", "#fac863"], # color[5]
|
||||||
["#6699cc", "#6699cc"], # color05
|
["#6699cc", "#6699cc"], # color[6]
|
||||||
["#c594c5", "#c594c5"], # color06
|
["#c594c5", "#c594c5"], # color[7]
|
||||||
["#5fb3b3", "#5fb3b3"] # color07
|
["#5fb3b3", "#5fb3b3"], # color[8]
|
||||||
|
["#7d7d7d", "#7d7d7d"] # color[9]
|
||||||
]
|
]
|
||||||
|
|
||||||
Palenight = [
|
Palenight = [
|
||||||
["#292d3e", "#292d3e"], # bg
|
["#292d3e", "#292d3e"], # color[0]
|
||||||
["#d0d0d0", "#d0d0d0"], # fg
|
["#d0d0d0", "#d0d0d0"], # color[1]
|
||||||
["#434758", "#434758"], # color01
|
["#434758", "#434758"], # color[2]
|
||||||
["#f07178", "#f07178"], # color02
|
["#f07178", "#f07178"], # color[3]
|
||||||
["#c3e88d", "#c3e88d"], # color03
|
["#c3e88d", "#c3e88d"], # color[4]
|
||||||
["#ffcb6b", "#ffcb6b"], # color04
|
["#ffcb6b", "#ffcb6b"], # color[5]
|
||||||
["#82aaff", "#82aaff"], # color05
|
["#82aaff", "#82aaff"], # color[6]
|
||||||
["#c792ea", "#c792ea"], # color06
|
["#c792ea", "#c792ea"], # color[7]
|
||||||
["#89ddff", "#89ddff"] # color15
|
["#89ddff", "#89ddff"], # color[8]
|
||||||
|
["#7d7d7d", "#7d7d7d"] # color[9]
|
||||||
]
|
]
|
||||||
|
|
||||||
SolarizedDark = [
|
SolarizedDark = [
|
||||||
["#002b36", "#002b36"], # bg
|
["#002b36", "#002b36"], # color[0]
|
||||||
["#839496", "#839496"], # fg
|
["#839496", "#839496"], # color[1]
|
||||||
["#073642", "#073642"], # color01
|
["#073642", "#073642"], # color[2]
|
||||||
["#dc322f", "#dc322f"], # color02
|
["#dc322f", "#dc322f"], # color[3]
|
||||||
["#859900", "#859900"], # color03
|
["#859900", "#859900"], # color[4]
|
||||||
["#b58900", "#b58900"], # color04
|
["#b58900", "#b58900"], # color[5]
|
||||||
["#268bd2", "#268bd2"], # color05
|
["#268bd2", "#268bd2"], # color[6]
|
||||||
["#d33682", "#d33682"], # color06
|
["#d33682", "#d33682"], # color[7]
|
||||||
["#2aa198", "#2aa198"] # color15
|
["#2aa198", "#2aa198"], # color[8]
|
||||||
|
["#7d7d7d", "#7d7d7d"] # color[9]
|
||||||
]
|
]
|
||||||
|
|
||||||
SolarizedLight = [
|
SolarizedLight = [
|
||||||
["#fdf6e3", "#fdf6e3"], # bg
|
["#fdf6e3", "#fdf6e3"], # color[0]
|
||||||
["#657b83", "#657b83"], # fg
|
["#657b83", "#657b83"], # color[1]
|
||||||
["#ece5ac", "#ece5ac"], # color01
|
["#ece5ac", "#ece5ac"], # color[2]
|
||||||
["#dc322f", "#dc322f"], # color02
|
["#dc322f", "#dc322f"], # color[3]
|
||||||
["#859900", "#859900"], # color03
|
["#859900", "#859900"], # color[4]
|
||||||
["#b58900", "#b58900"], # color04
|
["#b58900", "#b58900"], # color[5]
|
||||||
["#268bd2", "#268bd2"], # color05
|
["#268bd2", "#268bd2"], # color[6]
|
||||||
["#d33682", "#d33682"], # color06
|
["#d33682", "#d33682"], # color[7]
|
||||||
["#2aa198", "#2aa198"] # color15
|
["#2aa198", "#2aa198"], # color[8]
|
||||||
|
["#7d7d7d", "#7d7d7d"] # color[9]
|
||||||
]
|
]
|
||||||
|
|
||||||
TomorrowNight = [
|
TomorrowNight = [
|
||||||
["#1d1f21", "#1d1f21"], # bg
|
["#1d1f21", "#1d1f21"], # color[0]
|
||||||
["#c5c8c6", "#c5c8c6"], # fg
|
["#c5c8c6", "#c5c8c6"], # color[1]
|
||||||
["#373b41", "#373b41"], # color01
|
["#373b41", "#373b41"], # color[2]
|
||||||
["#cc6666", "#cc6666"], # color02
|
["#cc6666", "#cc6666"], # color[3]
|
||||||
["#b5bd68", "#b5bd68"], # color03
|
["#b5bd68", "#b5bd68"], # color[4]
|
||||||
["#e6c547", "#e6c547"], # color04
|
["#e6c547", "#e6c547"], # color[5]
|
||||||
["#81a2be", "#81a2be"], # color05
|
["#81a2be", "#81a2be"], # color[6]
|
||||||
["#b294bb", "#b294bb"], # color06
|
["#b294bb", "#b294bb"], # color[7]
|
||||||
["#70c0ba", "#70c0ba"] # color15
|
["#70c0ba", "#70c0ba"], # color[8]
|
||||||
|
["#7d7d7d", "#7d7d7d"] # color[9]
|
||||||
]
|
]
|
||||||
|
|||||||
+25
-71
@@ -146,7 +146,7 @@ keys = [
|
|||||||
Key([mod], "period", lazy.next_screen(), desc='Move focus to next monitor'),
|
Key([mod], "period", lazy.next_screen(), desc='Move focus to next monitor'),
|
||||||
Key([mod], "comma", lazy.prev_screen(), desc='Move focus to prev monitor'),
|
Key([mod], "comma", lazy.prev_screen(), desc='Move focus to prev monitor'),
|
||||||
|
|
||||||
# Emacs programs launched using the key chord CTRL+e followed by 'key'
|
# Emacs programs launched using the key chord SUPER+e followed by 'key'
|
||||||
KeyChord([mod],"e", [
|
KeyChord([mod],"e", [
|
||||||
Key([], "e", lazy.spawn(myEmacs), desc='Emacs Dashboard'),
|
Key([], "e", lazy.spawn(myEmacs), desc='Emacs Dashboard'),
|
||||||
Key([], "a", lazy.spawn(myEmacs + "--eval '(emms-play-directory-tree \"~/Music/\")'"), desc='Emacs EMMS'),
|
Key([], "a", lazy.spawn(myEmacs + "--eval '(emms-play-directory-tree \"~/Music/\")'"), desc='Emacs EMMS'),
|
||||||
@@ -183,11 +183,11 @@ keys = [
|
|||||||
groups = []
|
groups = []
|
||||||
group_names = ["1", "2", "3", "4", "5", "6", "7", "8", "9",]
|
group_names = ["1", "2", "3", "4", "5", "6", "7", "8", "9",]
|
||||||
|
|
||||||
group_labels = ["1", "2", "3", "4", "5", "6", "7", "8", "9",]
|
#group_labels = ["1", "2", "3", "4", "5", "6", "7", "8", "9",]
|
||||||
#group_labels = ["DEV", "WWW", "SYS", "DOC", "VBOX", "CHAT", "MUS", "VID", "GFX",]
|
#group_labels = ["DEV", "WWW", "SYS", "DOC", "VBOX", "CHAT", "MUS", "VID", "GFX",]
|
||||||
#group_labels = ["", "", "", "", "", "", "", "", "",]
|
group_labels = [" ", " ", " ", " ", " ", "🎙 ", " ", " ", " "]
|
||||||
|
|
||||||
group_layouts = ["monadtall", "monadtall", "tile", "tile", "monadtall", "monadtall", "monadtall", "monadtall", "monadtall"]
|
group_layouts = ["monadtall", "monadtall", "monadtall", "monadtall", "monadtall", "monadtall", "monadtall", "monadtall", "monadtall"]
|
||||||
|
|
||||||
for i in range(len(group_names)):
|
for i in range(len(group_names)):
|
||||||
groups.append(
|
groups.append(
|
||||||
@@ -220,7 +220,7 @@ for i in groups:
|
|||||||
colors = colors.DoomOne
|
colors = colors.DoomOne
|
||||||
|
|
||||||
layout_theme = {"border_width": 2,
|
layout_theme = {"border_width": 2,
|
||||||
"margin": 8,
|
"margin": 12,
|
||||||
"border_focus": colors[8],
|
"border_focus": colors[8],
|
||||||
"border_normal": colors[0]
|
"border_normal": colors[0]
|
||||||
}
|
}
|
||||||
@@ -280,9 +280,11 @@ extension_defaults = widget_defaults.copy()
|
|||||||
|
|
||||||
def init_widgets_list():
|
def init_widgets_list():
|
||||||
widgets_list = [
|
widgets_list = [
|
||||||
|
widget.Spacer(length = 8),
|
||||||
widget.Image(
|
widget.Image(
|
||||||
filename = "~/.config/qtile/icons/logo.png",
|
filename = "~/.config/qtile/icons/infinity-icon.png",
|
||||||
scale = "False",
|
scale = "False",
|
||||||
|
margin_x = 5,
|
||||||
mouse_callbacks = {'Button1': lambda: qtile.cmd_spawn(myTerm)},
|
mouse_callbacks = {'Button1': lambda: qtile.cmd_spawn(myTerm)},
|
||||||
),
|
),
|
||||||
widget.Prompt(
|
widget.Prompt(
|
||||||
@@ -295,10 +297,10 @@ def init_widgets_list():
|
|||||||
margin_y = 5,
|
margin_y = 5,
|
||||||
margin_x = 5,
|
margin_x = 5,
|
||||||
padding_y = 0,
|
padding_y = 0,
|
||||||
padding_x = 1,
|
padding_x = 2,
|
||||||
borderwidth = 3,
|
borderwidth = 3,
|
||||||
active = colors[8],
|
active = colors[8],
|
||||||
inactive = colors[1],
|
inactive = colors[9],
|
||||||
rounded = False,
|
rounded = False,
|
||||||
highlight_color = colors[2],
|
highlight_color = colors[2],
|
||||||
highlight_method = "line",
|
highlight_method = "line",
|
||||||
@@ -310,16 +312,10 @@ def init_widgets_list():
|
|||||||
widget.TextBox(
|
widget.TextBox(
|
||||||
text = '|',
|
text = '|',
|
||||||
font = "Ubuntu Mono",
|
font = "Ubuntu Mono",
|
||||||
foreground = colors[1],
|
foreground = colors[9],
|
||||||
padding = 2,
|
padding = 2,
|
||||||
fontsize = 14
|
fontsize = 14
|
||||||
),
|
),
|
||||||
widget.CurrentLayoutIcon(
|
|
||||||
# custom_icon_paths = [os.path.expanduser("~/.config/qtile/icons")],
|
|
||||||
foreground = colors[1],
|
|
||||||
padding = 4,
|
|
||||||
scale = 0.6
|
|
||||||
),
|
|
||||||
widget.CurrentLayout(
|
widget.CurrentLayout(
|
||||||
foreground = colors[1],
|
foreground = colors[1],
|
||||||
padding = 5
|
padding = 5
|
||||||
@@ -327,7 +323,7 @@ def init_widgets_list():
|
|||||||
widget.TextBox(
|
widget.TextBox(
|
||||||
text = '|',
|
text = '|',
|
||||||
font = "Ubuntu Mono",
|
font = "Ubuntu Mono",
|
||||||
foreground = colors[1],
|
foreground = colors[9],
|
||||||
padding = 2,
|
padding = 2,
|
||||||
fontsize = 14
|
fontsize = 14
|
||||||
),
|
),
|
||||||
@@ -340,38 +336,20 @@ def init_widgets_list():
|
|||||||
func = lambda: subprocess.check_output("printf $(uname -r)", shell=True, text=True),
|
func = lambda: subprocess.check_output("printf $(uname -r)", shell=True, text=True),
|
||||||
foreground = colors[3],
|
foreground = colors[3],
|
||||||
fmt = '❤ {}',
|
fmt = '❤ {}',
|
||||||
decorations=[
|
|
||||||
BorderDecoration(
|
|
||||||
colour = colors[3],
|
|
||||||
border_width = [0, 0, 2, 0],
|
|
||||||
)
|
|
||||||
],
|
|
||||||
),
|
),
|
||||||
widget.Spacer(length = 8),
|
widget.Spacer(length = 12),
|
||||||
widget.CPU(
|
widget.CPU(
|
||||||
format = '▓ Cpu: {load_percent}%',
|
format = ' Cpu: {load_percent}%',
|
||||||
foreground = colors[4],
|
foreground = colors[4],
|
||||||
decorations=[
|
),
|
||||||
BorderDecoration(
|
widget.Spacer(length = 12),
|
||||||
colour = colors[4],
|
|
||||||
border_width = [0, 0, 2, 0],
|
|
||||||
)
|
|
||||||
],
|
|
||||||
),
|
|
||||||
widget.Spacer(length = 8),
|
|
||||||
widget.Memory(
|
widget.Memory(
|
||||||
foreground = colors[8],
|
foreground = colors[8],
|
||||||
mouse_callbacks = {'Button1': lambda: qtile.cmd_spawn(myTerm + ' -e htop')},
|
mouse_callbacks = {'Button1': lambda: qtile.cmd_spawn(myTerm + ' -e htop')},
|
||||||
format = '{MemUsed: .0f}{mm}',
|
format = '{MemUsed: .0f}{mm}',
|
||||||
fmt = '🖥 Mem: {} used',
|
fmt = '🖥 Mem: {} used',
|
||||||
decorations=[
|
|
||||||
BorderDecoration(
|
|
||||||
colour = colors[8],
|
|
||||||
border_width = [0, 0, 2, 0],
|
|
||||||
)
|
|
||||||
],
|
|
||||||
),
|
),
|
||||||
widget.Spacer(length = 8),
|
widget.Spacer(length = 12),
|
||||||
widget.DF(
|
widget.DF(
|
||||||
update_interval = 60,
|
update_interval = 60,
|
||||||
foreground = colors[5],
|
foreground = colors[5],
|
||||||
@@ -381,49 +359,25 @@ def init_widgets_list():
|
|||||||
format = '{uf}{m} free',
|
format = '{uf}{m} free',
|
||||||
fmt = '🖴 Disk: {}',
|
fmt = '🖴 Disk: {}',
|
||||||
visible_on_warn = False,
|
visible_on_warn = False,
|
||||||
decorations=[
|
|
||||||
BorderDecoration(
|
|
||||||
colour = colors[5],
|
|
||||||
border_width = [0, 0, 2, 0],
|
|
||||||
)
|
|
||||||
],
|
|
||||||
),
|
),
|
||||||
widget.Spacer(length = 8),
|
widget.Spacer(length = 12),
|
||||||
widget.Volume(
|
widget.Volume(
|
||||||
foreground = colors[7],
|
foreground = colors[7],
|
||||||
fmt = '🕫 Vol: {}',
|
fmt = '🕫 Vol: {}',
|
||||||
decorations=[
|
|
||||||
BorderDecoration(
|
|
||||||
colour = colors[7],
|
|
||||||
border_width = [0, 0, 2, 0],
|
|
||||||
)
|
|
||||||
],
|
|
||||||
),
|
),
|
||||||
widget.Spacer(length = 8),
|
widget.Spacer(length = 12),
|
||||||
widget.KeyboardLayout(
|
widget.KeyboardLayout(
|
||||||
foreground = colors[4],
|
foreground = colors[4],
|
||||||
fmt = '⌨ Kbd: {}',
|
fmt = '⌨ Kbd: {}',
|
||||||
decorations=[
|
|
||||||
BorderDecoration(
|
|
||||||
colour = colors[4],
|
|
||||||
border_width = [0, 0, 2, 0],
|
|
||||||
)
|
|
||||||
],
|
|
||||||
),
|
),
|
||||||
widget.Spacer(length = 8),
|
widget.Spacer(length = 12),
|
||||||
widget.Clock(
|
widget.Clock(
|
||||||
foreground = colors[8],
|
foreground = colors[8],
|
||||||
format = "⏱ %a, %b %d - %H:%M",
|
format = "⏱ %a, %b %d - %H:%M",
|
||||||
decorations=[
|
|
||||||
BorderDecoration(
|
|
||||||
colour = colors[8],
|
|
||||||
border_width = [0, 0, 2, 0],
|
|
||||||
)
|
|
||||||
],
|
|
||||||
),
|
),
|
||||||
widget.Spacer(length = 8),
|
widget.Spacer(length = 12),
|
||||||
widget.Systray(padding = 3),
|
widget.Systray(padding = 3),
|
||||||
widget.Spacer(length = 8),
|
widget.Spacer(length = 18),
|
||||||
|
|
||||||
]
|
]
|
||||||
return widgets_list
|
return widgets_list
|
||||||
@@ -442,9 +396,9 @@ def init_widgets_screen2():
|
|||||||
# For ex: Screen(top=bar.Bar(widgets=init_widgets_screen2(), background="#00000000", size=24)),
|
# For ex: Screen(top=bar.Bar(widgets=init_widgets_screen2(), background="#00000000", size=24)),
|
||||||
|
|
||||||
def init_screens():
|
def init_screens():
|
||||||
return [Screen(top=bar.Bar(widgets=init_widgets_screen1(), size=26)),
|
return [Screen(top=bar.Bar(widgets=init_widgets_screen1(), margin=[8, 12, 0, 12], size=28)),
|
||||||
Screen(top=bar.Bar(widgets=init_widgets_screen2(), size=26)),
|
Screen(top=bar.Bar(widgets=init_widgets_screen2(), margin=[8, 12, 0, 12], size=28)),
|
||||||
Screen(top=bar.Bar(widgets=init_widgets_screen2(), size=26))]
|
Screen(top=bar.Bar(widgets=init_widgets_screen2(), margin=[8, 12, 0, 12], size=28))]
|
||||||
|
|
||||||
if __name__ in ["config", "__main__"]:
|
if __name__ in ["config", "__main__"]:
|
||||||
screens = init_screens()
|
screens = init_screens()
|
||||||
|
|||||||
Reference in New Issue
Block a user