changed Qtile theme to match gruvbox
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
from libqtile import widget
|
from libqtile import widget
|
||||||
|
|
||||||
from defines import base_color, term
|
from defines import base_color, term
|
||||||
from defines import blue_color, light_foreground_color, dark_foreground_color, red_color, light_purple_color, purple_color, green_color, orange_color, magenta_color
|
from defines import blue_color, light_foreground_color, dark_foreground_color, red_color, light_purple_color, purple_color, green_color, orange_color, magenta_color, yellow_color
|
||||||
from Custom_Widgets import MemoryC, Mic
|
from Custom_Widgets import MemoryC, Mic
|
||||||
|
|
||||||
#region Powerline
|
#region Powerline
|
||||||
@@ -38,7 +38,7 @@ def Left_widgets(size,fontsize,prompt=False):
|
|||||||
*powerline_arrow('r',base_color,blue_color,size),
|
*powerline_arrow('r',base_color,blue_color,size),
|
||||||
widget.TextBox(
|
widget.TextBox(
|
||||||
text='',
|
text='',
|
||||||
foreground=dark_foreground_color,
|
foreground=light_foreground_color,
|
||||||
fontsize=fontsize+14,
|
fontsize=fontsize+14,
|
||||||
margin=5,
|
margin=5,
|
||||||
background=blue_color
|
background=blue_color
|
||||||
@@ -67,25 +67,25 @@ def volume_widget(prev_color,color,size,fontsize):
|
|||||||
return[
|
return[
|
||||||
*powerline_arrow('l',prev_color,color,size),
|
*powerline_arrow('l',prev_color,color,size),
|
||||||
widget.Volume(
|
widget.Volume(
|
||||||
foreground=dark_foreground_color,
|
foreground=light_foreground_color,
|
||||||
background=color,
|
background=color,
|
||||||
emoji=True,
|
emoji=True,
|
||||||
fontsize=fontsize,
|
fontsize=fontsize,
|
||||||
),
|
),
|
||||||
widget.Volume(
|
widget.Volume(
|
||||||
foreground=dark_foreground_color,
|
foreground=light_foreground_color,
|
||||||
background=color,
|
background=color,
|
||||||
fontsize=fontsize,
|
fontsize=fontsize,
|
||||||
padding=0
|
padding=0
|
||||||
),
|
),
|
||||||
Mic(
|
Mic(
|
||||||
foreground=dark_foreground_color,
|
foreground=light_foreground_color,
|
||||||
background=color,
|
background=color,
|
||||||
emoji=True,
|
emoji=True,
|
||||||
fontsize=fontsize + 6,
|
fontsize=fontsize + 6,
|
||||||
),
|
),
|
||||||
Mic(
|
Mic(
|
||||||
foreground=dark_foreground_color,
|
foreground=light_foreground_color,
|
||||||
background=color,
|
background=color,
|
||||||
fontsize=fontsize,
|
fontsize=fontsize,
|
||||||
padding=0
|
padding=0
|
||||||
@@ -101,58 +101,58 @@ launch_htop= {'Button1': launch_htop}
|
|||||||
|
|
||||||
def System_widgets(prev_color,last_color,size,fontsize):
|
def System_widgets(prev_color,last_color,size,fontsize):
|
||||||
return [
|
return [
|
||||||
*powerline_arrow('l',prev_color,red_color,size),
|
*powerline_arrow('l',prev_color,orange_color,size),
|
||||||
widget.Image(
|
widget.TextBox(
|
||||||
filename='~/.config/qtile/icons/temp.png',
|
text='',
|
||||||
margin=5,
|
foreground=light_foreground_color,
|
||||||
background=red_color,
|
background=orange_color,
|
||||||
mouse_callbacks = launch_htop,
|
fontsize=fontsize+6
|
||||||
),
|
),
|
||||||
widget.ThermalSensor(
|
widget.ThermalSensor(
|
||||||
foreground=dark_foreground_color,
|
foreground=light_foreground_color,
|
||||||
background=red_color,
|
background=orange_color,
|
||||||
fontsize=fontsize,
|
fontsize=fontsize,
|
||||||
tag_sensor='Tctl',
|
tag_sensor='Tctl',
|
||||||
mouse_callbacks = launch_htop,
|
mouse_callbacks = launch_htop,
|
||||||
),
|
),
|
||||||
*powerline_arrow('l',red_color,green_color,size),
|
*powerline_arrow('l',orange_color,green_color,size),
|
||||||
widget.Image(
|
widget.TextBox(
|
||||||
filename='~/.config/qtile/icons/cpu.png',
|
text='',
|
||||||
margin=5,
|
foreground=light_foreground_color,
|
||||||
background=green_color,
|
background=green_color,
|
||||||
mouse_callbacks = launch_htop,
|
fontsize=fontsize+6
|
||||||
),
|
),
|
||||||
widget.CPU(
|
widget.CPU(
|
||||||
foreground=dark_foreground_color,
|
foreground=light_foreground_color,
|
||||||
background=green_color,
|
background=green_color,
|
||||||
fontsize=fontsize,
|
fontsize=fontsize,
|
||||||
format='{load_percent}% @ {freq_current}GHz',
|
format='{load_percent}% @ {freq_current}GHz',
|
||||||
mouse_callbacks = launch_htop,
|
mouse_callbacks = launch_htop,
|
||||||
),
|
),
|
||||||
*powerline_arrow('l',green_color,orange_color,size),
|
*powerline_arrow('l',green_color,yellow_color,size),
|
||||||
widget.Image(
|
widget.TextBox(
|
||||||
filename='~/.config/qtile/icons/ram.png',
|
text='',
|
||||||
background=orange_color,
|
foreground=light_foreground_color,
|
||||||
margin=-10,
|
background=yellow_color,
|
||||||
mouse_callbacks = launch_htop,
|
fontsize=fontsize+6
|
||||||
),
|
),
|
||||||
MemoryC(
|
MemoryC(
|
||||||
foreground=dark_foreground_color,
|
foreground=light_foreground_color,
|
||||||
background=orange_color,
|
background=yellow_color,
|
||||||
fontsize=fontsize,
|
fontsize=fontsize,
|
||||||
format=" {MemUsed}GB({MemPercent}%) | {SwapUsed}GB({SwapPercent}%)",
|
format=" {MemUsed}GB({MemPercent}%) | {SwapUsed}GB({SwapPercent}%)",
|
||||||
mouse_callbacks = launch_htop,
|
mouse_callbacks = launch_htop,
|
||||||
),
|
),
|
||||||
*powerline_arrow('l',orange_color,last_color,size),
|
*powerline_arrow('l',yellow_color,last_color,size),
|
||||||
widget.Image(
|
widget.TextBox(
|
||||||
filename='~/.config/qtile/icons/network.png',
|
text='',
|
||||||
|
foreground=light_foreground_color,
|
||||||
background=blue_color,
|
background=blue_color,
|
||||||
margin=5,
|
fontsize=fontsize+6
|
||||||
mouse_callbacks = launch_htop,
|
),
|
||||||
),
|
|
||||||
widget.Net(
|
widget.Net(
|
||||||
background=last_color,
|
background=last_color,
|
||||||
foreground=dark_foreground_color,
|
foreground=light_foreground_color,
|
||||||
fontsize=fontsize,
|
fontsize=fontsize,
|
||||||
fmt='{:.9}',
|
fmt='{:.9}',
|
||||||
format='{down}↓',
|
format='{down}↓',
|
||||||
@@ -160,7 +160,7 @@ def System_widgets(prev_color,last_color,size,fontsize):
|
|||||||
),
|
),
|
||||||
widget.Net(
|
widget.Net(
|
||||||
background=last_color,
|
background=last_color,
|
||||||
foreground=dark_foreground_color,
|
foreground=light_foreground_color,
|
||||||
fontsize=fontsize,
|
fontsize=fontsize,
|
||||||
fmt='{:.9}',
|
fmt='{:.9}',
|
||||||
format='{up}↑',
|
format='{up}↑',
|
||||||
@@ -172,19 +172,20 @@ def System_widgets(prev_color,last_color,size,fontsize):
|
|||||||
#region End_widgets
|
#region End_widgets
|
||||||
def end_widgets(prev_color,size,fontsize):
|
def end_widgets(prev_color,size,fontsize):
|
||||||
return [
|
return [
|
||||||
*powerline_arrow('l',prev_color,magenta_color,size),
|
*powerline_arrow('l',prev_color,purple_color,size),
|
||||||
widget.Image(
|
widget.TextBox(
|
||||||
filename='~/.config/qtile/icons/calendar.png',
|
text='ﭷ',
|
||||||
margin=5,
|
foreground=light_foreground_color,
|
||||||
background=magenta_color,
|
background=purple_color,
|
||||||
),
|
fontsize=fontsize+6
|
||||||
|
),
|
||||||
widget.Clock(
|
widget.Clock(
|
||||||
foreground=dark_foreground_color,
|
foreground=light_foreground_color,
|
||||||
background=magenta_color,
|
background=purple_color,
|
||||||
fontsize=fontsize,
|
fontsize=fontsize,
|
||||||
format='%Y-%m-%d'
|
format='%Y-%m-%d'
|
||||||
),
|
),
|
||||||
*powerline_arrow('l',magenta_color,base_color,size),
|
*powerline_arrow('l',purple_color,base_color,size),
|
||||||
widget.Clock(
|
widget.Clock(
|
||||||
font='dseg7 classic bold',
|
font='dseg7 classic bold',
|
||||||
fontsize=16,
|
fontsize=16,
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
term = 'termite'
|
term = 'termite'
|
||||||
focus_color = '#bd93f9'
|
focus_color = '#076678'
|
||||||
border_width = 2
|
border_width = 2
|
||||||
mod = 'mod4'
|
mod = 'mod4'
|
||||||
hotkey_file='/home/paul/Hotkeys'
|
hotkey_file='/home/paul/Hotkeys'
|
||||||
@@ -7,26 +7,27 @@ main_screen_res = [3440,1440]
|
|||||||
top_screen_res = [1440,900]
|
top_screen_res = [1440,900]
|
||||||
|
|
||||||
#region colors
|
#region colors
|
||||||
light_foreground_color = ['#f8f8f2','#f8f8f2']
|
light_foreground_color = ['#fbf1c7','#fbf1c7']
|
||||||
dark_foreground_color = ['#282a36','#282a36']
|
dark_foreground_color = ['#282828','#282828']
|
||||||
background_color0 = ['#000000','#000000']
|
background_color0 = ['#1d2021','#1d2021']
|
||||||
background_color8 = ['#4d4d4d','#4d4d4d']
|
background_color8 = ['#7c6f64','#7c6f64']
|
||||||
base_color = ['#101010','#101010']
|
base_color = background_color0
|
||||||
# red
|
# red
|
||||||
red_color = ['#df253f','#df253f']
|
red_color = ['#cc241d','#cc241d']
|
||||||
light_red_color = ['#ff5555','#ff5555']
|
light_red_color = ['#fb4934','#fb4934']
|
||||||
# green
|
# green
|
||||||
green_color = ['#53a93f','#53a93f']
|
green_color = ['#98971a','#98971a']
|
||||||
light_green_color = ['#50fa7b','#50fa7b']
|
light_green_color = ['#b8bb26','#b8bb26']
|
||||||
#orange
|
#orange
|
||||||
orange_color = ['#f57900','#f57900']
|
orange_color = ['#d65d0e','#d65d0e']
|
||||||
# yellow
|
# yellow
|
||||||
yellow_color = ['#f1fa8c','#f1fa8c']
|
yellow_color = ['#d79921','#d79921']
|
||||||
|
light_yellow_color = ['#fabd2f','#fabd2f']
|
||||||
#blue
|
#blue
|
||||||
blue_color = ['#7197e7','#7197e7']
|
blue_color = ['#076678','#076678']
|
||||||
# purple
|
# purple
|
||||||
purple_color = ['#bd93f9','#bd93f9']
|
purple_color = ['#b16286','#b16286']
|
||||||
light_purple_color = ['#caa9fa','#caa9fa']
|
light_purple_color = ['#d3869b','#d3869b']
|
||||||
# magenta
|
# magenta
|
||||||
magenta_color = ['#ff79c6','#ff79c6']
|
magenta_color = ['#ff79c6','#ff79c6']
|
||||||
# cyan
|
# cyan
|
||||||
|
|||||||
Reference in New Issue
Block a user