Working on new qtile with rounded floating bar and new icon.

This commit is contained in:
Derek Taylor
2025-02-26 18:16:55 -06:00
parent c227730755
commit 5ba2ad94a5
4 changed files with 134 additions and 215 deletions

View File

@@ -47,6 +47,7 @@ shadow-exclude = [
"_GTK_FRAME_EXTENTS@:c"
];
corner-radius = 8
# Fade windows in/out when opening/closing and when opacity changes,
# unless no-fading-openclose is used.

View File

@@ -265,11 +265,11 @@ Groups are really workspaces. group_names should remain 1-9 so the MOD+1-9 keyb
groups = []
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 = ["", "", "", "", "", "", "", "", "",]
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)):
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
layout_theme = {"border_width": 2,
"margin": 8,
"margin": 12,
"border_focus": colors[8],
"border_normal": colors[0]
}
@@ -403,9 +403,11 @@ This is the bar (the panel) and the widgets within the bar.
#+begin_src python
def init_widgets_list():
widgets_list = [
widget.Spacer(length = 8),
widget.Image(
filename = "~/.config/qtile/icons/logo.png",
filename = "~/.config/qtile/icons/infinity-icon.png",
scale = "False",
margin_x = 5,
mouse_callbacks = {'Button1': lambda: qtile.cmd_spawn(myTerm)},
),
widget.Prompt(
@@ -418,10 +420,10 @@ def init_widgets_list():
margin_y = 5,
margin_x = 5,
padding_y = 0,
padding_x = 1,
padding_x = 2,
borderwidth = 3,
active = colors[8],
inactive = colors[1],
inactive = colors[9],
rounded = False,
highlight_color = colors[2],
highlight_method = "line",
@@ -433,16 +435,10 @@ def init_widgets_list():
widget.TextBox(
text = '|',
font = "Ubuntu Mono",
foreground = colors[1],
foreground = colors[9],
padding = 2,
fontsize = 14
),
widget.CurrentLayoutIcon(
# custom_icon_paths = [os.path.expanduser("~/.config/qtile/icons")],
foreground = colors[1],
padding = 4,
scale = 0.6
),
widget.CurrentLayout(
foreground = colors[1],
padding = 5
@@ -450,7 +446,7 @@ def init_widgets_list():
widget.TextBox(
text = '|',
font = "Ubuntu Mono",
foreground = colors[1],
foreground = colors[9],
padding = 2,
fontsize = 14
),
@@ -463,38 +459,20 @@ def init_widgets_list():
func = lambda: subprocess.check_output("printf $(uname -r)", shell=True, text=True),
foreground = colors[3],
fmt = '{}',
decorations=[
BorderDecoration(
colour = colors[3],
border_width = [0, 0, 2, 0],
)
],
),
widget.Spacer(length = 8),
widget.Spacer(length = 12),
widget.CPU(
format = ' Cpu: {load_percent}%',
format = ' Cpu: {load_percent}%',
foreground = colors[4],
decorations=[
BorderDecoration(
colour = colors[4],
border_width = [0, 0, 2, 0],
)
],
),
widget.Spacer(length = 8),
),
widget.Spacer(length = 12),
widget.Memory(
foreground = colors[8],
mouse_callbacks = {'Button1': lambda: qtile.cmd_spawn(myTerm + ' -e htop')},
format = '{MemUsed: .0f}{mm}',
fmt = '🖥 Mem: {} used',
decorations=[
BorderDecoration(
colour = colors[8],
border_width = [0, 0, 2, 0],
)
],
),
widget.Spacer(length = 8),
widget.Spacer(length = 12),
widget.DF(
update_interval = 60,
foreground = colors[5],
@@ -504,49 +482,25 @@ def init_widgets_list():
format = '{uf}{m} free',
fmt = '🖴 Disk: {}',
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(
foreground = colors[7],
fmt = '🕫 Vol: {}',
decorations=[
BorderDecoration(
colour = colors[7],
border_width = [0, 0, 2, 0],
)
],
),
widget.Spacer(length = 8),
widget.Spacer(length = 12),
widget.KeyboardLayout(
foreground = colors[4],
fmt = '⌨ Kbd: {}',
decorations=[
BorderDecoration(
colour = colors[4],
border_width = [0, 0, 2, 0],
)
],
),
widget.Spacer(length = 8),
widget.Spacer(length = 12),
widget.Clock(
foreground = colors[8],
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.Spacer(length = 8),
widget.Spacer(length = 18),
]
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)),
def init_screens():
return [Screen(top=bar.Bar(widgets=init_widgets_screen1(), size=26)),
Screen(top=bar.Bar(widgets=init_widgets_screen2(), size=26)),
Screen(top=bar.Bar(widgets=init_widgets_screen2(), 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(), margin=[8, 12, 0, 12], size=28)),
Screen(top=bar.Bar(widgets=init_widgets_screen2(), margin=[8, 12, 0, 12], size=28))]
if __name__ in ["config", "__main__"]:
screens = init_screens()

View File

@@ -11,7 +11,8 @@ DoomOne = [
["#da8548", "#da8548"], # color04
["#51afef", "#51afef"], # color05
["#c678dd", "#c678dd"], # color06
["#46d9ff", "#46d9ff"] # color15
["#46d9ff", "#46d9ff"], # color15
["#7d7d7d", "#7d7d7d"] # color[9]
]
Dracula = [
@@ -23,100 +24,109 @@ Dracula = [
["#f1fa8c", "#f1fa8c"], # color04
["#bd93f9", "#bd93f9"], # color05
["#ff79c6", "#ff79c6"], # color06
["#9aedfe", "#9aedfe"] # color15
["#9aedfe", "#9aedfe"], # color15
["#7d7d7d", "#7d7d7d"] # color[9]
]
GruvboxDark = [
["#282828", "#282828"], # bg
["#ebdbb2", "#ebdbb2"], # fg
["#000000", "#000000"], # color01
["#fb4934", "#fb4934"], # color02
["#98971a", "#98971a"], # color03
["#d79921", "#d79921"], # color04
["#83a598", "#83a598"], # color05
["#d3869b", "#d3869b"], # color06
["#b8bb26", "#b8bb26"], # color11
["#282828", "#282828"], # color[0]
["#ebdbb2", "#ebdbb2"], # color[1]
["#000000", "#000000"], # color[2]
["#fb4934", "#fb4934"], # color[3]
["#98971a", "#98971a"], # color[4]
["#d79921", "#d79921"], # color[5]
["#83a598", "#83a598"], # color[6]
["#d3869b", "#d3869b"], # color[7]
["#b8bb26", "#b8bb26"], # color[8]
["#7d7d7d", "#7d7d7d"] # color[9]
]
MonokaiPro = [
["#2D2A2E", "#2D2A2E"], # bg
["#FCFCFA", "#FCFCFA"], # fg
["#403E41", "#403E41"], # color01
["#FF6188", "#FF6188"], # color02
["#A9DC76", "#A9DC76"], # color03
["#FFD866", "#FFD866"], # color04
["#FC9867", "#FC9867"], # color05
["#AB9DF2", "#AB9DF2"], # color06
["#78DCE8", "#78DCE8"] # color07
["#2D2A2E", "#2D2A2E"], # color[0]
["#FCFCFA", "#FCFCFA"], # color[1]
["#403E41", "#403E41"], # color[2]
["#FF6188", "#FF6188"], # color[3]
["#A9DC76", "#A9DC76"], # color[4]
["#FFD866", "#FFD866"], # color[5]
["#FC9867", "#FC9867"], # color[6]
["#AB9DF2", "#AB9DF2"], # color[7]
["#78DCE8", "#78DCE8"], # color[8]
["#7d7d7d", "#7d7d7d"] # color[9]
]
Nord = [
["#2E3440", "#2E3440"], # bg
["#D8DEE9", "#D8DEE9"], # fg
["#3B4252", "#3B4252"], # color01
["#BF616A", "#BF616A"], # color02
["#A3BE8C", "#A3BE8C"], # color03
["#EBCB8B", "#EBCB8B"], # color04
["#81A1C1", "#81A1C1"], # color05
["#B48EAD", "#B48EAD"], # color06
["#88C0D0", "#88C0D0"] # color07
["#2E3440", "#2E3440"], # color[0]
["#D8DEE9", "#D8DEE9"], # color[1]
["#3B4252", "#3B4252"], # color[2]
["#BF616A", "#BF616A"], # color[3]
["#A3BE8C", "#A3BE8C"], # color[4]
["#EBCB8B", "#EBCB8B"], # color[5]
["#81A1C1", "#81A1C1"], # color[6]
["#B48EAD", "#B48EAD"], # color[7]
["#88C0D0", "#88C0D0"], # color[8]
["#7d7d7d", "#7d7d7d"] # color[9]
]
OceanicNext = [
["#1b2b34", "#1b2b34"], # bg
["#d8dee9", "#d8dee9"], # fg
["#29414f", "#29414f"], # color01
["#ec5f67", "#ec5f67"], # color02
["#99c794", "#99c794"], # color03
["#fac863", "#fac863"], # color04
["#6699cc", "#6699cc"], # color05
["#c594c5", "#c594c5"], # color06
["#5fb3b3", "#5fb3b3"] # color07
["#1b2b34", "#1b2b34"], # color[0]
["#d8dee9", "#d8dee9"], # color[1]
["#29414f", "#29414f"], # color[2]
["#ec5f67", "#ec5f67"], # color[3]
["#99c794", "#99c794"], # color[4]
["#fac863", "#fac863"], # color[5]
["#6699cc", "#6699cc"], # color[6]
["#c594c5", "#c594c5"], # color[7]
["#5fb3b3", "#5fb3b3"], # color[8]
["#7d7d7d", "#7d7d7d"] # color[9]
]
Palenight = [
["#292d3e", "#292d3e"], # bg
["#d0d0d0", "#d0d0d0"], # fg
["#434758", "#434758"], # color01
["#f07178", "#f07178"], # color02
["#c3e88d", "#c3e88d"], # color03
["#ffcb6b", "#ffcb6b"], # color04
["#82aaff", "#82aaff"], # color05
["#c792ea", "#c792ea"], # color06
["#89ddff", "#89ddff"] # color15
["#292d3e", "#292d3e"], # color[0]
["#d0d0d0", "#d0d0d0"], # color[1]
["#434758", "#434758"], # color[2]
["#f07178", "#f07178"], # color[3]
["#c3e88d", "#c3e88d"], # color[4]
["#ffcb6b", "#ffcb6b"], # color[5]
["#82aaff", "#82aaff"], # color[6]
["#c792ea", "#c792ea"], # color[7]
["#89ddff", "#89ddff"], # color[8]
["#7d7d7d", "#7d7d7d"] # color[9]
]
SolarizedDark = [
["#002b36", "#002b36"], # bg
["#839496", "#839496"], # fg
["#073642", "#073642"], # color01
["#dc322f", "#dc322f"], # color02
["#859900", "#859900"], # color03
["#b58900", "#b58900"], # color04
["#268bd2", "#268bd2"], # color05
["#d33682", "#d33682"], # color06
["#2aa198", "#2aa198"] # color15
["#002b36", "#002b36"], # color[0]
["#839496", "#839496"], # color[1]
["#073642", "#073642"], # color[2]
["#dc322f", "#dc322f"], # color[3]
["#859900", "#859900"], # color[4]
["#b58900", "#b58900"], # color[5]
["#268bd2", "#268bd2"], # color[6]
["#d33682", "#d33682"], # color[7]
["#2aa198", "#2aa198"], # color[8]
["#7d7d7d", "#7d7d7d"] # color[9]
]
SolarizedLight = [
["#fdf6e3", "#fdf6e3"], # bg
["#657b83", "#657b83"], # fg
["#ece5ac", "#ece5ac"], # color01
["#dc322f", "#dc322f"], # color02
["#859900", "#859900"], # color03
["#b58900", "#b58900"], # color04
["#268bd2", "#268bd2"], # color05
["#d33682", "#d33682"], # color06
["#2aa198", "#2aa198"] # color15
["#fdf6e3", "#fdf6e3"], # color[0]
["#657b83", "#657b83"], # color[1]
["#ece5ac", "#ece5ac"], # color[2]
["#dc322f", "#dc322f"], # color[3]
["#859900", "#859900"], # color[4]
["#b58900", "#b58900"], # color[5]
["#268bd2", "#268bd2"], # color[6]
["#d33682", "#d33682"], # color[7]
["#2aa198", "#2aa198"], # color[8]
["#7d7d7d", "#7d7d7d"] # color[9]
]
TomorrowNight = [
["#1d1f21", "#1d1f21"], # bg
["#c5c8c6", "#c5c8c6"], # fg
["#373b41", "#373b41"], # color01
["#cc6666", "#cc6666"], # color02
["#b5bd68", "#b5bd68"], # color03
["#e6c547", "#e6c547"], # color04
["#81a2be", "#81a2be"], # color05
["#b294bb", "#b294bb"], # color06
["#70c0ba", "#70c0ba"] # color15
["#1d1f21", "#1d1f21"], # color[0]
["#c5c8c6", "#c5c8c6"], # color[1]
["#373b41", "#373b41"], # color[2]
["#cc6666", "#cc6666"], # color[3]
["#b5bd68", "#b5bd68"], # color[4]
["#e6c547", "#e6c547"], # color[5]
["#81a2be", "#81a2be"], # color[6]
["#b294bb", "#b294bb"], # color[7]
["#70c0ba", "#70c0ba"], # color[8]
["#7d7d7d", "#7d7d7d"] # color[9]
]

View File

@@ -146,7 +146,7 @@ keys = [
Key([mod], "period", lazy.next_screen(), desc='Move focus to next 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", [
Key([], "e", lazy.spawn(myEmacs), desc='Emacs Dashboard'),
Key([], "a", lazy.spawn(myEmacs + "--eval '(emms-play-directory-tree \"~/Music/\")'"), desc='Emacs EMMS'),
@@ -183,11 +183,11 @@ keys = [
groups = []
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 = ["", "", "", "", "", "", "", "", "",]
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)):
groups.append(
@@ -220,7 +220,7 @@ for i in groups:
colors = colors.DoomOne
layout_theme = {"border_width": 2,
"margin": 8,
"margin": 12,
"border_focus": colors[8],
"border_normal": colors[0]
}
@@ -280,9 +280,11 @@ extension_defaults = widget_defaults.copy()
def init_widgets_list():
widgets_list = [
widget.Spacer(length = 8),
widget.Image(
filename = "~/.config/qtile/icons/logo.png",
filename = "~/.config/qtile/icons/infinity-icon.png",
scale = "False",
margin_x = 5,
mouse_callbacks = {'Button1': lambda: qtile.cmd_spawn(myTerm)},
),
widget.Prompt(
@@ -295,10 +297,10 @@ def init_widgets_list():
margin_y = 5,
margin_x = 5,
padding_y = 0,
padding_x = 1,
padding_x = 2,
borderwidth = 3,
active = colors[8],
inactive = colors[1],
inactive = colors[9],
rounded = False,
highlight_color = colors[2],
highlight_method = "line",
@@ -310,16 +312,10 @@ def init_widgets_list():
widget.TextBox(
text = '|',
font = "Ubuntu Mono",
foreground = colors[1],
foreground = colors[9],
padding = 2,
fontsize = 14
),
widget.CurrentLayoutIcon(
# custom_icon_paths = [os.path.expanduser("~/.config/qtile/icons")],
foreground = colors[1],
padding = 4,
scale = 0.6
),
widget.CurrentLayout(
foreground = colors[1],
padding = 5
@@ -327,7 +323,7 @@ def init_widgets_list():
widget.TextBox(
text = '|',
font = "Ubuntu Mono",
foreground = colors[1],
foreground = colors[9],
padding = 2,
fontsize = 14
),
@@ -340,38 +336,20 @@ def init_widgets_list():
func = lambda: subprocess.check_output("printf $(uname -r)", shell=True, text=True),
foreground = colors[3],
fmt = '{}',
decorations=[
BorderDecoration(
colour = colors[3],
border_width = [0, 0, 2, 0],
)
],
),
widget.Spacer(length = 8),
widget.Spacer(length = 12),
widget.CPU(
format = ' Cpu: {load_percent}%',
format = ' Cpu: {load_percent}%',
foreground = colors[4],
decorations=[
BorderDecoration(
colour = colors[4],
border_width = [0, 0, 2, 0],
)
],
),
widget.Spacer(length = 8),
),
widget.Spacer(length = 12),
widget.Memory(
foreground = colors[8],
mouse_callbacks = {'Button1': lambda: qtile.cmd_spawn(myTerm + ' -e htop')},
format = '{MemUsed: .0f}{mm}',
fmt = '🖥 Mem: {} used',
decorations=[
BorderDecoration(
colour = colors[8],
border_width = [0, 0, 2, 0],
)
],
),
widget.Spacer(length = 8),
widget.Spacer(length = 12),
widget.DF(
update_interval = 60,
foreground = colors[5],
@@ -381,49 +359,25 @@ def init_widgets_list():
format = '{uf}{m} free',
fmt = '🖴 Disk: {}',
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(
foreground = colors[7],
fmt = '🕫 Vol: {}',
decorations=[
BorderDecoration(
colour = colors[7],
border_width = [0, 0, 2, 0],
)
],
),
widget.Spacer(length = 8),
widget.Spacer(length = 12),
widget.KeyboardLayout(
foreground = colors[4],
fmt = '⌨ Kbd: {}',
decorations=[
BorderDecoration(
colour = colors[4],
border_width = [0, 0, 2, 0],
)
],
),
widget.Spacer(length = 8),
widget.Spacer(length = 12),
widget.Clock(
foreground = colors[8],
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.Spacer(length = 8),
widget.Spacer(length = 18),
]
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)),
def init_screens():
return [Screen(top=bar.Bar(widgets=init_widgets_screen1(), size=26)),
Screen(top=bar.Bar(widgets=init_widgets_screen2(), size=26)),
Screen(top=bar.Bar(widgets=init_widgets_screen2(), 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(), margin=[8, 12, 0, 12], size=28)),
Screen(top=bar.Bar(widgets=init_widgets_screen2(), margin=[8, 12, 0, 12], size=28))]
if __name__ in ["config", "__main__"]:
screens = init_screens()