diff --git a/README.md b/README.md index 842cb53..fb552a7 100644 --- a/README.md +++ b/README.md @@ -20,7 +20,10 @@ Install Qtile and other dependencies. All software, one command: ```bash -yay -S qtile picom rofi nitrogen xorg-server-xephyr lxappearance-gtk3 megasync python-psutil brave-browser alacritty bat playerctl pulseaudio-ctl dunst alacritty fish starship neovim pavucontrol flameshot +yay -S qtile picom rofi nitrogen xorg-server-xephyr +lxappearance-gtk3 megasync python-psutil brave-browser alacritty +bat playerctl pulseaudio-ctl dunst alacritty fish starship neovim +pavucontrol flameshot noto-fonts-emoji noto-fonts-emoji brightnessctl blueman xfce4-power-manager network-manager-applet xfce4-clipman-plugin ``` Also install Rofi Power menu: diff --git a/config.py b/config.py index 5ed2af1..69d4c73 100644 --- a/config.py +++ b/config.py @@ -4,7 +4,7 @@ # ____ ____ # | _ \ | _ \ Copyright (c) 2020 Daniel Diaz # | | | || | | | -# | |_| || |_| | http://www.github.com/Daniel1404/ +# | |_| || |_| | http://www.github.com/DaniDiazTech/ # |____/ |____/ # diff --git a/config_keybindings.py b/config_keybindings.py index 88c2f16..6d252da 100644 --- a/config_keybindings.py +++ b/config_keybindings.py @@ -54,8 +54,8 @@ ([], "XF86AudioMute", "pactl set-sink-mute @DEFAULT_SINK@ toggle"), # Brightness - ([], "XF86MonBrightnessUp", "brightnessctl set +10%"), - ([], "XF86MonBrightnessDown", "brightnessctl set 10%-"), + ([], "XF86MonBrightnessUp", "brightnessctl set +5%"), + ([], "XF86MonBrightnessDown", "brightnessctl set 5%-"), ] diff --git a/scripts/autostart.sh b/scripts/autostart.sh index f900b1c..9a6eeca 100755 --- a/scripts/autostart.sh +++ b/scripts/autostart.sh @@ -19,5 +19,8 @@ run nitrogen --restore & run /usr/lib/polkit-kde-authentication-agent-1 & run megasync run xfce4-clipman +run xfce4-power-manager run gammy run dunst +run nm-applet +run blueman-applet diff --git a/widgets.py b/widgets.py index bb4ea03..9f9063b 100644 --- a/widgets.py +++ b/widgets.py @@ -35,24 +35,13 @@ def __init__(self): ["#f1ffff", "#f1ffff"], ["#4c566a", "#4c566a"], ] - self.termite = "termite" + self.termite = "alacritty" def init_widgets_list(self): ''' Function that returns the desired widgets in form of list ''' widgets_list = [ - widget.Sep( - linewidth=0, - padding=6, - foreground=self.colors[2], - background=self.colors[0] - ), - widget.Image( - filename="~/.config/qtile/icons/terminal-iconx14.png", - mouse_callbacks={ - 'Button1': lambda qtile: qtile.cmd_spawn('dmenu_run -p "Run: "')} - ), widget.Sep( linewidth=0, padding=5, @@ -84,35 +73,40 @@ def init_widgets_list(self): background=self.colors[0], disable_drag=True ), - widget.Prompt( - prompt=lazy.spawncmd(), - font="Ubuntu Mono", - padding=10, - foreground=self.colors[3], - background=self.colors[1] - ), + # widget.Prompt( + # prompt=lazy.spawncmd(), + # font="Ubuntu Mono", + # padding=10, + # foreground=self.colors[3], + # background=self.colors[1] + # ), widget.Sep( linewidth=0, - padding=40, + padding=25, foreground=self.colors[2], background=self.colors[0] ), widget.WindowName( foreground=self.colors[6], background=self.colors[0], - padding=0 + padding=5 ), widget.Systray( background=self.colors[0], padding=5 ), - widget.TextBox( - text='', - background=self.colors[0], - foreground=self.colors[11], - padding=0, - fontsize=37 - ), + # widget.TextBox( + # font="Ubuntu Bold", + # text='', + # background=self.colors[0], + # foreground=self.colors[11], + # padding=0, + # fontsize=37 + # ), + widget.Battery( + charge_char='+', discharge_char='-', error_message='error', + format='{percent:2.0%} ({char}{hour:d}:{min:02d})', hide_threshold=None, + low_percentage=0.1, foreground=self.colors[7], background=self.colors[10], update_delay=10), widget.TextBox( text=" 🖬", foreground=self.colors[7], @@ -123,37 +117,44 @@ def init_widgets_list(self): widget.Memory( foreground=self.colors[7], background=self.colors[11], - mouse_callbacks={'Button1': lambda qtile: qtile.cmd_spawn( + mouse_callbacks={'Button1': lambda: qtile.cmd_spawn( self.termite + ' -e htop')}, padding=5 ), - widget.TextBox( - text='', - background=self.colors[11], - foreground=self.colors[10], - padding=0, - fontsize=37 + widget.ThermalSensor( + # interface="enp5s0", + # fmt='Net: {down} ↓↑ {up}', + foreground=self.colors[7], + background=self.colors[9], + padding=5 ), + # widget.TextBox( + # text='', + # background=self.colors[11], + # foreground=self.colors[10], + # padding=0, + # fontsize=37 + # ), widget.TextBox( text="  ", foreground=self.colors[7], background=self.colors[10], padding=0, mouse_callbacks={ - "Button1": lambda qtile: qtile.cmd_spawn("pavucontrol")} + "Button1": lambda: qtile.cmd_spawn("pavucontrol")} ), widget.Volume( foreground=self.colors[7], background=self.colors[10], padding=5 ), - widget.TextBox( - text='', - background=self.colors[10], - foreground=self.colors[9], - padding=0, - fontsize=37 - ), + # widget.TextBox( + # text='', + # background=self.colors[10], + # foreground=self.colors[9], + # padding=0, + # fontsize=37 + # ), widget.CurrentLayoutIcon( custom_icon_paths=[os.path.expanduser( "~/.config/qtile/icons")], @@ -167,19 +168,19 @@ def init_widgets_list(self): background=self.colors[9], padding=5 ), - widget.TextBox( - text='', - foreground=self.colors[8], - background=self.colors[9], - padding=0, - fontsize=37 - ), + # widget.TextBox( + # text='', + # foreground=self.colors[8], + # background=self.colors[9], + # padding=0, + # fontsize=37 + # ), widget.Clock( foreground=self.colors[7], background=self.colors[8], mouse_callbacks={ "Button1": lambda qtile: qtile.cmd_spawn(PWA.calendar())}, - format="%B %d [ %H:%M ]" + format="%A %d - %H:%M" ), widget.Sep( linewidth=0, @@ -214,3 +215,242 @@ def init_screen(self): Screen(top=bar.Bar( widgets=self.init_widgets_screen2(), opacity=1.0, size=20)) ] + + +# bar = Bar([ +# Sep( +# linewidth = 0, +# padding = 2, +# foreground = onedark_darker["color4"], +# background = onedark_darker["color4"] +# ), +# Image( +# filename = "~/.config/qtile/icons/archlinux_blue.png", +# scale = "False", +# mouse_callbacks = {'Button1': lambda: qtile.cmd_spawn("alacritty")}, +# background = onedark_darker["color4"], +# ), +# #widget.Sep( +# # linewidth = 0, +# # padding = 2, +# # foreground = onedark_darker["colorback"], +# # background = onedark_darker["colorback"] +# #), +# right_arrow(onedark_darker["color4"], onedark_darker["colorback"]), +# GroupBox( +# font = "JetBrains Nerd Font Mono Bold", +# fontsize = 12, +# fmt = '{}', +# borderwidth = 2, +# background = onedark_darker["colorback"], +# active = onedark_darker["color6"], +# inactive = onedark_darker["color5"], +# rounded = False, +# #Block_highlight_text_color = onedark_darker["color3"], +# highlight_method = 'line', +# highlight_color = onedark_darker["colorback"], # line block colour +# this_current_screen_border = onedark_darker["color4"], +# this_screen_border = onedark_darker["color7"], +# urgent_alert_method = 'line', +# urgent_border = onedark_darker["color10"], +# urgent_text = onedark_darker["color14"], +# disable_drag = True, +# ), +# right_arrow(onedark_darker["colorback"], onedark_darker["color14"]), +# CurrentLayoutIcon( +# custom_icon_paths = [os.path.expanduser("~/.config/qtile/icons")], +# foreground = onedark_darker["colorback"], +# background = onedark_darker["color14"], +# padding = 0, +# scale = 0.7 +# ), +# CurrentLayout( +# foreground = onedark_darker["colorback"], +# background = onedark_darker["color14"], +# padding = 5, +# ), +# right_arrow(onedark_darker["color14"], onedark_darker["color9"]), +# TextBox( +# text = '', +# font = "Font Awesome 6 Free Solid", +# fontsize = 15, +# background = onedark_darker["color9"], +# foreground = onedark_darker["color4"], +# padding = 2 +# ), +# WindowCount( +# format = ' {num} ', +# background = onedark_darker["color9"], +# foreground = onedark_darker["color4"], +# show_zero = True, +# ), +# right_arrow(onedark_darker["color9"], onedark_darker["color1"]), +# WindowName( +# foreground = onedark_darker["color5"], +# background = onedark_darker["color1"], +# padding = 5, +# format = '[ {name} ]', +# empty_group_string = '[ ]', +# parse_text = parse_func, +# ), +# #widget.Spacer(), +# Sep( +# linewidth = 0, +# padding = 6, +# foreground = onedark_darker["color1"], +# background = onedark_darker["color1"], +# ), +# left_arrow(onedark_darker["color2"], onedark_darker["color1"]), +# TextBox( +# text = '', +# font = "Font Awesome 6 Free Solid", +# fontsize = 15, +# padding = 2, +# foreground = onedark_darker["colorback"], +# background = onedark_darker["color2"], +# ), +# Net( +# interface = "wlp44s0", +# format = '{down} {up}', +# prefix = 'M', +# foreground = onedark_darker["colorback"], +# background = onedark_darker["color2"], +# padding = 5, +# ), +# left_arrow(onedark_darker["color3"], onedark_darker["color2"]), +# TextBox( +# text = '', +# font = "Font Awesome 6 Free Solid", +# fontsize = 15, +# padding = 2, +# foreground = onedark_darker["colorback"], +# background = onedark_darker["color3"] +# ), +# CPU( +# background = onedark_darker["color3"], +# foreground = onedark_darker["colorback"], +# fmt = 'Cpu: {}', +# #format = '{freq_current}GHz {load_percent}%', +# format = '[ {load_percent} ]%', +# padding = 5, +# ), +# left_arrow(onedark_darker["color4"], onedark_darker["color3"]), +# TextBox( +# text = '', +# font = "Font Awesome 6 Free Solid", +# fontsize = 15, +# padding = 2, +# foreground = onedark_darker["colorback"], +# background = onedark_darker["color4"] +# ), +# ThermalSensor( +# foreground = onedark_darker["colorback"], +# background = onedark_darker["color4"], +# threshold = 90, +# fmt = 'Temp: {}', +# format='[ {temp:.0f}{unit} ]', +# padding = 5, +# ), +# left_arrow(onedark_darker["color5"], onedark_darker["color4"]), +# TextBox( +# text = '', +# font = "Font Awesome 6 Free Solid", +# fontsize = 15, +# padding = 2, +# foreground = onedark_darker["colorback"], +# background = onedark_darker["color5"] +# ), +# Memory( +# foreground = onedark_darker["colorback"], +# background = onedark_darker["color5"], +# #mouse_callbacks = {'Button1': lambda: qtile.cmd_spawn(myTerm + ' -e htop')}, +# fmt = 'Mem: {}', +# #format = '{MemUsed: .0f}{mm}/{MemTotal: .0f}{mm}', +# format = '[ {MemUsed:.0f} ]{mm}', +# padding = 5, +# ), +# left_arrow(onedark_darker["color6"], onedark_darker["color5"]), +# TextBox( +# text = '', +# font = "Font Awesome 6 Free Solid", +# fontsize = 15, +# padding = 2, +# foreground = onedark_darker["colorback"], +# background = onedark_darker["color6"] +# ), +# Battery( +# padding = 5, +# background = onedark_darker["color6"], +# foreground = onedark_darker["colorback"], +# charge_char = 'AC', +# discharge_char = '', +# empty_char = 'ﮣ', +# full_char = 'ﭹ', +# fmt = 'Bat: {}', +# format = '{char}[ {percent:2.0%} ]', #{hour:d}:{min:02d} {watt:.2f} W' +# #low_background = none, +# low_forground = '#ff0000', +# update_interval = 60, +# ), +# #battery, + +# left_arrow(onedark_darker["color7"], onedark_darker["color6"]), +# TextBox( +# text = '', +# font = "Font Awesome 6 Free Solid", +# fontsize = 15, +# padding = 2, +# foreground = onedark_darker["colorback"], +# background = onedark_darker["color7"] +# ), +# PulseVolume( +# background = onedark_darker["color7"], +# foreground = onedark_darker["colorback"], +# fmt = 'Vol: [ {} ]', +# device = 'default', +# channel = 'Master', +# limit_max_volume = True, +# padding = 5, +# update_interval = 0.1, +# mute_command = 'pactl set-sink-mute @DEFAULT_SINK@ toggle', +# volume_up_command = 'pactl set-sink-volume @DEFAULT_SINK@ +5%', +# volume_down_command = 'pactl set-sink-volume @DEFAULT_SINK@ -5%', +# ), +# #volume, +# #widget.Volume( +# # foreground = onedark_darker[8], +# # background = onedark_darker[0], +# # fmt = 'Vol: {}', +# # padding = 5, +# # mouse_callbacks = {'Button1': lambda: qtile.cmd_spawn(myTerm + ' -e alsamixer')} +# #), +# left_arrow(onedark_darker["color10"], onedark_darker["color7"]), +# TextBox( +# text = '', +# font = "Font Awesome 6 Free Solid", +# fontsize = 15, +# padding = 2, +# foreground = onedark_darker["colorback"], +# background = onedark_darker["color10"] +# ), +# Clock( +# foreground = onedark_darker["colorback"], +# background = onedark_darker["color10"], +# format = "%a %d, %b [ %I:%M ]%P", +# padding = 5, +# ), +# left_arrow(onedark_darker["colorback"], onedark_darker["color10"]), +# Systray( +# background = onedark_darker["colorback"], +# padding = 2 +# ), + +# #widget.TextBox( +# # text = '', +# # font = "Mononoki Regular Bold", +# # fontsize = 18, +# # padding = 0, +# # background = onedark_darker[0], +# # foreground = onedark_darker[9], +# #), +# ], size=25)