mirror of
https://gitlab.com/dwt1/dotfiles.git
synced 2026-04-13 20:28:35 +10:00
Minor edits.
This commit is contained in:
@@ -242,15 +242,15 @@ keys = [
|
||||
Key([], "e", lazy.spawn("dm-confedit -r"), desc='Choose a config file to edit'),
|
||||
Key([], "i", lazy.spawn("dm-maim -r"), desc='Take a screenshot'),
|
||||
Key([], "k", lazy.spawn("dm-kill -r"), desc='Kill processes '),
|
||||
Key([], "m", lazy.spawn("dm-music -r"), desc='Toggle music mpc/mpd'),
|
||||
Key([], "M", lazy.spawn("dm-man -r"), desc='View manpages'),
|
||||
Key([], "m", lazy.spawn("dm-man -r"), desc='View manpages'),
|
||||
Key([], "n", lazy.spawn("dm-note -r"), desc='Store and copy notes'),
|
||||
Key([], "o", lazy.spawn("dm-bookman -r"), desc='Browser bookmarks'),
|
||||
Key([], "p", lazy.spawn("rofi-pass"), desc='Password menu'),
|
||||
Key([], "q", lazy.spawn("dm-logout -r"), desc='Logout menu'),
|
||||
Key([], "r", lazy.spawn("dm-radio -r"), desc='Listen to online radio'),
|
||||
Key([], "s", lazy.spawn("dm-websearch -r"), desc='Search various engines'),
|
||||
Key([], "t", lazy.spawn("dm-translate -r"), desc='Translate text')
|
||||
Key([], "t", lazy.spawn("dm-translate -r"), desc='Translate text'),
|
||||
Key([], "u", lazy.spawn("dm-music -r"), desc='Toggle music mpc/mpd')
|
||||
])
|
||||
]
|
||||
|
||||
@@ -263,14 +263,14 @@ 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", "0"]
|
||||
|
||||
# Uncomment only one of the following lines
|
||||
group_labels = ["", "", "", "", "", "", "⧳", "", "", "⛨"]
|
||||
#group_labels = ["1", "2", "3", "4", "5", "6", "7", "8", "9", "10"]
|
||||
#group_labels = ["DEV", "WWW", "SYS", "DOC", "VBOX", "CHAT", "MUS", "VID", "GFX", "MISC"]
|
||||
group_labels = ["", "", "", "", "", "", "⧳", "", "", "⛨"]
|
||||
#group_labels = [" ", " ", " ", " ", " ", " ", "⛨ ", " ", " "]
|
||||
|
||||
# The default layout for each of the 10 workspaces
|
||||
group_layouts = ["monadtall", "monadtall", "monadtall", "monadtall", "monadtall", "monadtall", "monadtall", "monadtall", "monadtall", "monadtall"]
|
||||
|
||||
|
||||
for i in range(len(group_names)):
|
||||
groups.append(
|
||||
Group(
|
||||
@@ -406,9 +406,9 @@ def init_widgets_list():
|
||||
foreground = colors[1]
|
||||
),
|
||||
widget.GroupBox(
|
||||
fontsize = 10,
|
||||
fontsize = 12,
|
||||
margin_y = 5,
|
||||
margin_x = 12,
|
||||
margin_x = 16,
|
||||
padding_y = 0,
|
||||
padding_x = 0,
|
||||
borderwidth = 3,
|
||||
@@ -435,8 +435,8 @@ def init_widgets_list():
|
||||
("📁", "pcmanfm", "PCManFM file manager"),
|
||||
("🎸", "vlc", "VLC media player")
|
||||
],
|
||||
fontsize = 10,
|
||||
padding = 10,
|
||||
fontsize = 12,
|
||||
padding = 12,
|
||||
foreground = colors[3],
|
||||
),
|
||||
widget.TextBox(
|
||||
@@ -459,24 +459,25 @@ def init_widgets_list():
|
||||
),
|
||||
widget.WindowName(
|
||||
foreground = colors[6],
|
||||
padding = 4,
|
||||
padding = 8,
|
||||
max_chars = 40
|
||||
),
|
||||
widget.GenPollText(
|
||||
update_interval = 300,
|
||||
func = lambda: subprocess.check_output("printf $(uname -r)", shell=True, text=True),
|
||||
foreground = colors[3],
|
||||
padding = 6,
|
||||
padding = 8,
|
||||
fmt = '❤ {}',
|
||||
),
|
||||
widget.CPU(
|
||||
format = ' Cpu: {load_percent}%',
|
||||
foreground = colors[4],
|
||||
padding = 6,
|
||||
padding = 8,
|
||||
mouse_callbacks = {'Button1': lambda: qtile.cmd_spawn(myTerm + ' -e htop')},
|
||||
format = ' Cpu: {load_percent}%',
|
||||
),
|
||||
widget.Memory(
|
||||
foreground = colors[8],
|
||||
padding = 6,
|
||||
padding = 8,
|
||||
mouse_callbacks = {'Button1': lambda: qtile.cmd_spawn(myTerm + ' -e htop')},
|
||||
format = '{MemUsed: .0f}{mm}',
|
||||
fmt = '🖥 Mem: {}',
|
||||
@@ -484,8 +485,8 @@ def init_widgets_list():
|
||||
widget.DF(
|
||||
update_interval = 60,
|
||||
foreground = colors[5],
|
||||
padding = 6,
|
||||
mouse_callbacks = {'Button1': lambda: qtile.cmd_spawn(myTerm + ' -e df')},
|
||||
padding = 8,
|
||||
mouse_callbacks = {'Button1': lambda: qtile.cmd_spawn('notify-disk')},
|
||||
partition = '/',
|
||||
#format = '[{p}] {uf}{m} ({r:.0f}%)',
|
||||
format = '{uf}{m} free',
|
||||
@@ -494,15 +495,19 @@ def init_widgets_list():
|
||||
),
|
||||
widget.Volume(
|
||||
foreground = colors[7],
|
||||
padding = 6,
|
||||
padding = 8,
|
||||
fmt = '🕫 Vol: {}',
|
||||
),
|
||||
widget.Clock(
|
||||
foreground = colors[8],
|
||||
padding = 6,
|
||||
format = "⧗ %a, %b %d - %H:%M",
|
||||
padding = 8,
|
||||
mouse_callbacks = {'Button1': lambda: qtile.cmd_spawn('notify-date')},
|
||||
## Uncomment for date and time
|
||||
# format = "⧗ %a, %b %d - %H:%M",
|
||||
## Uncomment for time only
|
||||
format = "⧗ %I:%M %p",
|
||||
),
|
||||
widget.Systray(padding = 3),
|
||||
widget.Systray(padding = 6),
|
||||
widget.Spacer(length = 8),
|
||||
|
||||
]
|
||||
@@ -528,9 +533,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(), 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))]
|
||||
return [Screen(top=bar.Bar(widgets=init_widgets_screen1(), margin=[8, 12, 0, 12], size=30)),
|
||||
Screen(top=bar.Bar(widgets=init_widgets_screen2(), margin=[8, 12, 0, 12], size=30)),
|
||||
Screen(top=bar.Bar(widgets=init_widgets_screen2(), margin=[8, 12, 0, 12], size=30))]
|
||||
|
||||
if __name__ in ["config", "__main__"]:
|
||||
screens = init_screens()
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
COLORSCHEME=tomorrow-night
|
||||
COLORSCHEME=doom-one
|
||||
|
||||
### AUTOSTART PROGRAMS ###
|
||||
|
||||
|
||||
@@ -181,14 +181,14 @@ keys = [
|
||||
groups = []
|
||||
group_names = ["1", "2", "3", "4", "5", "6", "7", "8", "9", "0"]
|
||||
|
||||
# Uncomment only one of the following lines
|
||||
group_labels = ["", "", "", "", "", "", "⧳", "", "", "⛨"]
|
||||
#group_labels = ["1", "2", "3", "4", "5", "6", "7", "8", "9", "10"]
|
||||
#group_labels = ["DEV", "WWW", "SYS", "DOC", "VBOX", "CHAT", "MUS", "VID", "GFX", "MISC"]
|
||||
group_labels = ["", "", "", "", "", "", "⧳", "", "", "⛨"]
|
||||
#group_labels = [" ", " ", " ", " ", " ", " ", "⛨ ", " ", " "]
|
||||
|
||||
# The default layout for each of the 10 workspaces
|
||||
group_layouts = ["monadtall", "monadtall", "monadtall", "monadtall", "monadtall", "monadtall", "monadtall", "monadtall", "monadtall", "monadtall"]
|
||||
|
||||
|
||||
for i in range(len(group_names)):
|
||||
groups.append(
|
||||
Group(
|
||||
@@ -284,9 +284,9 @@ def init_widgets_list():
|
||||
foreground = colors[1]
|
||||
),
|
||||
widget.GroupBox(
|
||||
fontsize = 10,
|
||||
fontsize = 12,
|
||||
margin_y = 5,
|
||||
margin_x = 12,
|
||||
margin_x = 16,
|
||||
padding_y = 0,
|
||||
padding_x = 0,
|
||||
borderwidth = 3,
|
||||
@@ -313,8 +313,8 @@ def init_widgets_list():
|
||||
("📁", "pcmanfm", "PCManFM file manager"),
|
||||
("🎸", "vlc", "VLC media player")
|
||||
],
|
||||
fontsize = 10,
|
||||
padding = 10,
|
||||
fontsize = 12,
|
||||
padding = 12,
|
||||
foreground = colors[3],
|
||||
),
|
||||
widget.TextBox(
|
||||
@@ -337,24 +337,25 @@ def init_widgets_list():
|
||||
),
|
||||
widget.WindowName(
|
||||
foreground = colors[6],
|
||||
padding = 4,
|
||||
padding = 8,
|
||||
max_chars = 40
|
||||
),
|
||||
widget.GenPollText(
|
||||
update_interval = 300,
|
||||
func = lambda: subprocess.check_output("printf $(uname -r)", shell=True, text=True),
|
||||
foreground = colors[3],
|
||||
padding = 6,
|
||||
padding = 8,
|
||||
fmt = '❤ {}',
|
||||
),
|
||||
widget.CPU(
|
||||
format = ' Cpu: {load_percent}%',
|
||||
foreground = colors[4],
|
||||
padding = 6,
|
||||
padding = 8,
|
||||
mouse_callbacks = {'Button1': lambda: qtile.cmd_spawn(myTerm + ' -e htop')},
|
||||
format = ' Cpu: {load_percent}%',
|
||||
),
|
||||
widget.Memory(
|
||||
foreground = colors[8],
|
||||
padding = 6,
|
||||
padding = 8,
|
||||
mouse_callbacks = {'Button1': lambda: qtile.cmd_spawn(myTerm + ' -e htop')},
|
||||
format = '{MemUsed: .0f}{mm}',
|
||||
fmt = '🖥 Mem: {}',
|
||||
@@ -362,8 +363,8 @@ def init_widgets_list():
|
||||
widget.DF(
|
||||
update_interval = 60,
|
||||
foreground = colors[5],
|
||||
padding = 6,
|
||||
mouse_callbacks = {'Button1': lambda: qtile.cmd_spawn(myTerm + ' -e df')},
|
||||
padding = 8,
|
||||
mouse_callbacks = {'Button1': lambda: qtile.cmd_spawn('notify-disk')},
|
||||
partition = '/',
|
||||
#format = '[{p}] {uf}{m} ({r:.0f}%)',
|
||||
format = '{uf}{m} free',
|
||||
@@ -372,15 +373,19 @@ def init_widgets_list():
|
||||
),
|
||||
widget.Volume(
|
||||
foreground = colors[7],
|
||||
padding = 6,
|
||||
padding = 8,
|
||||
fmt = '🕫 Vol: {}',
|
||||
),
|
||||
widget.Clock(
|
||||
foreground = colors[8],
|
||||
padding = 6,
|
||||
format = "⧗ %a, %b %d - %H:%M",
|
||||
padding = 8,
|
||||
mouse_callbacks = {'Button1': lambda: qtile.cmd_spawn('notify-date')},
|
||||
## Uncomment for date and time
|
||||
# format = "⧗ %a, %b %d - %H:%M",
|
||||
## Uncomment for time only
|
||||
format = "⧗ %I:%M %p",
|
||||
),
|
||||
widget.Systray(padding = 3),
|
||||
widget.Systray(padding = 6),
|
||||
widget.Spacer(length = 8),
|
||||
|
||||
]
|
||||
@@ -400,9 +405,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(), 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))]
|
||||
return [Screen(top=bar.Bar(widgets=init_widgets_screen1(), margin=[8, 12, 0, 12], size=30)),
|
||||
Screen(top=bar.Bar(widgets=init_widgets_screen2(), margin=[8, 12, 0, 12], size=30)),
|
||||
Screen(top=bar.Bar(widgets=init_widgets_screen2(), margin=[8, 12, 0, 12], size=30))]
|
||||
|
||||
if __name__ in ["config", "__main__"]:
|
||||
screens = init_screens()
|
||||
|
||||
@@ -33,18 +33,24 @@ main() {
|
||||
|
||||
case "$choice" in
|
||||
'doom-one')
|
||||
|
||||
## ALACRITTY ##
|
||||
sed -i "s#^import = .*#import = [\"~/.config/alacritty/themes/themes/doom_one.toml\"]#" "$HOME"/.config/alacritty/alacritty.toml || echo "Error setting Alacritty colors"
|
||||
|
||||
## QTILE ##
|
||||
sed -i "s/^colors = colors.*/colors = colors.DoomOne/g" "$HOME"/.config/qtile/config.py || echo "Cannot find colors = colors."
|
||||
sed -i "s/^colors=colors.*/colors = colors.DoomOne/g" "$HOME"/.config/qtile/config.py || echo "Cannot find colors=colors."
|
||||
sed -i "s/^COLORSCHEME=.*/COLORSCHEME=$choice/g" "$HOME"/.config/qtile/autostart.sh || echo "Cannot find COLORSCHEME."
|
||||
qtile cmd-obj -o cmd -f restart && $HOME/.config/qtile/autostart.sh || echo "Qtile not running"
|
||||
|
||||
## CONKY ##
|
||||
sed -i "s#^myConky=.*#myConky=\"$HOME/.config/conky/qtile/01/$choice.conf\"#" "$HOME"/.local/bin/conky-toggle || echo "Cannot change conky-toggle script."
|
||||
conky-toggle && conky-toggle
|
||||
|
||||
## EMACS ##
|
||||
sed -i "s/load-theme '.*/load-theme 'doom-one t)/g" "$HOME"/.config/emacs/config.org || echo "Cannot find config.org."
|
||||
emacsclient -e "(load-theme 'doom-one t)" || echo "Emacsclient not running."
|
||||
|
||||
;;
|
||||
'dracula')
|
||||
## ALACRITTY ##
|
||||
|
||||
Reference in New Issue
Block a user