Minor edits
105
.config/conky/qtile/03/DoomOne.conf
Normal file
@@ -0,0 +1,105 @@
|
||||
conky.config = {
|
||||
--==============================================================================
|
||||
|
||||
-- DTOS 01 CONKY
|
||||
-- This conky theme was originally based on the Mimosa Dark theme created by
|
||||
-- author "Closebox73". I have removed many of the original widgets that theme
|
||||
-- Mimosa theme used, and I added the DTOS keybinding information.
|
||||
|
||||
--==============================================================================
|
||||
|
||||
-- Size and Position settings --
|
||||
alignment = 'top_right',
|
||||
gap_x = 30,
|
||||
gap_y = 30,
|
||||
maximum_width = 300,
|
||||
minimum_height = 793,
|
||||
minimum_width = 300,
|
||||
|
||||
-- Text settings --
|
||||
use_xft = true,
|
||||
override_utf8_locale = true,
|
||||
font = 'Roboto:normal:size=9',
|
||||
|
||||
|
||||
border_inner_margin = 4, -- margin between border and text
|
||||
border_outer_margin = 0, -- margin between border and edge of window
|
||||
border_width = 0, -- border width in pixels
|
||||
|
||||
-- Color Settings --
|
||||
default_color = 'ededed',
|
||||
default_outline_color = 'white',
|
||||
default_shade_color = 'white',
|
||||
color1 = 'bbc2cf',
|
||||
color2 = 'c678dd',
|
||||
color3 = '51afef',
|
||||
color4 = '4d4d4d',
|
||||
color5 = '98be65',
|
||||
|
||||
-- Window Settings --
|
||||
background = false,
|
||||
border_width = 1,
|
||||
draw_borders = false,
|
||||
draw_graph_borders = false,
|
||||
draw_outline = false,
|
||||
draw_shades = false,
|
||||
own_window = true,
|
||||
own_window_colour = '000000',
|
||||
own_window_class = 'Conky',
|
||||
own_window_argb_visual = false,
|
||||
own_window_type = 'override',
|
||||
own_window_transparent = true,
|
||||
own_window_hints = 'undecorated,below,sticky,skip_taskbar,skip_pager',
|
||||
stippled_borders = 0,
|
||||
|
||||
-- Others --
|
||||
cpu_avg_samples = 2,
|
||||
net_avg_samples = 2,
|
||||
double_buffer = true,
|
||||
out_to_console = false,
|
||||
out_to_stderr = false,
|
||||
extra_newline = false,
|
||||
update_interval = 1,
|
||||
uppercase = false,
|
||||
use_spacer = 'none',
|
||||
show_graph_scale = false,
|
||||
show_graph_range = false,
|
||||
lua_load = '~/.config/conky/qtile/01/scripts/DoomOne.lua',
|
||||
lua_draw_hook_pre = 'ring_stats',
|
||||
}
|
||||
|
||||
conky.text = [[
|
||||
${image ~/.config/conky/qtile/01/bg/DoomOne.png -s 300x763 -p 0,35}
|
||||
${alignc}${voffset 26}${color3}${font Raleway:bold:size=40}${time %H:%M}${font}${color}
|
||||
${alignc}${voffset 5}${font Raleway:size=14}${time %A, %B %d}
|
||||
${offset 34}${voffset 90}${color}${font Bebas Neue:size=18}${cpu cpu0}%${goto 104}${memperc}%${goto 180}${battery_percent BAT0}%${goto 230}${execi 2 ~/.config/conky/qtile/01/scripts/cputemp.sh}
|
||||
${offset 24}${voffset -2}${color}${font Raleway:size=10}/ :${goto 170}${font Raleway:size=10}/home :
|
||||
${offset 24}${color3}${font Raleway:size=9}${fs_bar 10,111}${goto 170}${color3}${font Raleway:size=9}${fs_bar 10,111 /home}
|
||||
${offset 24}${color}${font Raleway:size=9}${fs_used} / ${fs_size}${goto 170}${color}${font Raleway:size=8}${fs_used /home} / ${fs_size /home}${font}
|
||||
${voffset 32}${color5}${alignc}${font Raleway:bold:size=12}QTILE KEYBINDINGS${font}${color}
|
||||
${alignc}${color4}----------------------------------------------------------------------------${color}
|
||||
${offset 24}${color1}SUPER + [RET]${alignr}${offset -24}${color2}open terminal${color}
|
||||
${offset 24}${color1}SUPER + b${alignr}${offset -24}${color2}open browser${color}
|
||||
${offset 24}${color1}SUPER + SHIFT + [RET]${alignr}${offset -24}${color2}run prompt${color}
|
||||
${offset 24}${color1}SUPER + SHIFT + c${alignr}${offset -24}${color2}close window${color}
|
||||
${offset 24}${color1}SUPER + h/j/k/l${alignr}${offset -24}${color2}move win focus${color}
|
||||
${offset 24}${color1}SUPER + SHIFT + h/j/k/l${alignr}${offset -24}${color2}move window${color}
|
||||
${offset 24}${color1}SUPER + [1-9]${alignr}${offset -24}${color2}switch workspace${color}
|
||||
${offset 24}${color1}SUPER + SHIFT + [1-9]${alignr}${offset -24}${color2}send window${color}
|
||||
${offset 24}${color1}SUPER + =/-${alignr}${offset -24}${color2}shrink/expand${color}
|
||||
${alignc}${color4}----------------------------------------------------------------------------${color}
|
||||
${offset 24}${color1}SUPER + e, e${alignr}${offset -24}${color2}launch emacs${color}
|
||||
${offset 24}${color1}SUPER + e, b${alignr}${offset -24}${color2}ibuffer${color}
|
||||
${offset 24}${color1}SUPER + e, d${alignr}${offset -24}${color2}dired${color}
|
||||
${offset 24}${color1}SUPER + e, s${alignr}${offset -24}${color2}eshell${color}
|
||||
${offset 24}${color1}SUPER + e, v${alignr}${offset -24}${color2}vterm${color}
|
||||
${alignc}${color4}----------------------------------------------------------------------------${color}
|
||||
${offset 24}${color1}SUPER + p, h${alignr}${offset -24}${color2}dm-hub${color}
|
||||
${offset 24}${color1}SUPER + p, b${alignr}${offset -24}${color2}dm-setbg${color}
|
||||
${offset 24}${color1}SUPER + p, m${alignr}${offset -24}${color2}dm-man${color}
|
||||
${offset 24}${color1}SUPER + p, o${alignr}${offset -24}${color2}dm-bookman${color}
|
||||
${offset 24}${color1}SUPER + p, s${alignr}${offset -24}${color2}dm-websearch${color}
|
||||
${alignc}${color4}----------------------------------------------------------------------------${color}
|
||||
${offset 24}${color1}SUPER + SHIFT + r${alignr}${offset -24}${color2}restart qtile${color}
|
||||
${offset 24}${color1}SUPER + SHIFT + q${alignr}${offset -24}${color2}quit qtile${color}
|
||||
]]
|
||||
105
.config/conky/qtile/03/Dracula.conf
Normal file
@@ -0,0 +1,105 @@
|
||||
conky.config = {
|
||||
--==============================================================================
|
||||
|
||||
-- DTOS 01 CONKY
|
||||
-- This conky theme was originally based on the Mimosa Dark theme created by
|
||||
-- author "Closebox73". I have removed many of the original widgets that theme
|
||||
-- Mimosa theme used, and I added the DTOS keybinding information.
|
||||
|
||||
--==============================================================================
|
||||
|
||||
-- Size and Position settings --
|
||||
alignment = 'top_right',
|
||||
gap_x = 30,
|
||||
gap_y = 30,
|
||||
maximum_width = 300,
|
||||
minimum_height = 793,
|
||||
minimum_width = 300,
|
||||
|
||||
-- Text settings --
|
||||
use_xft = true,
|
||||
override_utf8_locale = true,
|
||||
font = 'Roboto:normal:size=9',
|
||||
|
||||
|
||||
border_inner_margin = 4, -- margin between border and text
|
||||
border_outer_margin = 0, -- margin between border and edge of window
|
||||
border_width = 0, -- border width in pixels
|
||||
|
||||
-- Color Settings --
|
||||
default_color = 'ededed',
|
||||
default_outline_color = 'white',
|
||||
default_shade_color = 'white',
|
||||
color1 = 'f8f8f2',
|
||||
color2 = 'bd93f9',
|
||||
color3 = '9aedfe',
|
||||
color4 = '4d4d4d',
|
||||
color5 = 'ff79c6',
|
||||
|
||||
-- Window Settings --
|
||||
background = false,
|
||||
border_width = 1,
|
||||
draw_borders = false,
|
||||
draw_graph_borders = false,
|
||||
draw_outline = false,
|
||||
draw_shades = false,
|
||||
own_window = true,
|
||||
own_window_colour = '000000',
|
||||
own_window_class = 'Conky',
|
||||
own_window_argb_visual = false,
|
||||
own_window_type = 'override',
|
||||
own_window_transparent = true,
|
||||
own_window_hints = 'undecorated,below,sticky,skip_taskbar,skip_pager',
|
||||
stippled_borders = 0,
|
||||
|
||||
-- Others --
|
||||
cpu_avg_samples = 2,
|
||||
net_avg_samples = 2,
|
||||
double_buffer = true,
|
||||
out_to_console = false,
|
||||
out_to_stderr = false,
|
||||
extra_newline = false,
|
||||
update_interval = 1,
|
||||
uppercase = false,
|
||||
use_spacer = 'none',
|
||||
show_graph_scale = false,
|
||||
show_graph_range = false,
|
||||
lua_load = '~/.config/conky/qtile/01/scripts/Dracula.lua',
|
||||
lua_draw_hook_pre = 'ring_stats',
|
||||
}
|
||||
|
||||
conky.text = [[
|
||||
${image ~/.config/conky/qtile/01/bg/Dracula.png -s 300x763 -p 0,35}
|
||||
${alignc}${voffset 26}${color3}${font Raleway:bold:size=40}${time %H:%M}${font}${color}
|
||||
${alignc}${voffset 5}${font Raleway:size=14}${time %A, %B %d}
|
||||
${offset 34}${voffset 90}${color}${font Bebas Neue:size=18}${cpu cpu0}%${goto 104}${memperc}%${goto 180}${battery_percent BAT0}%${goto 230}${execi 2 ~/.config/conky/qtile/01/scripts/cputemp.sh}
|
||||
${offset 24}${voffset -2}${color}${font Raleway:size=10}/ :${goto 170}${font Raleway:size=10}/home :
|
||||
${offset 24}${color3}${font Raleway:size=9}${fs_bar 10,111}${goto 170}${color3}${font Raleway:size=9}${fs_bar 10,111 /home}
|
||||
${offset 24}${color}${font Raleway:size=9}${fs_used} / ${fs_size}${goto 170}${color}${font Raleway:size=8}${fs_used /home} / ${fs_size /home}${font}
|
||||
${voffset 32}${color5}${alignc}${font Raleway:bold:size=12}QTILE KEYBINDINGS${font}${color}
|
||||
${alignc}${color4}----------------------------------------------------------------------------${color}
|
||||
${offset 24}${color1}SUPER + [RET]${alignr}${offset -24}${color2}open terminal${color}
|
||||
${offset 24}${color1}SUPER + b${alignr}${offset -24}${color2}open browser${color}
|
||||
${offset 24}${color1}SUPER + SHIFT + [RET]${alignr}${offset -24}${color2}run prompt${color}
|
||||
${offset 24}${color1}SUPER + SHIFT + c${alignr}${offset -24}${color2}close window${color}
|
||||
${offset 24}${color1}SUPER + h/j/k/l${alignr}${offset -24}${color2}move win focus${color}
|
||||
${offset 24}${color1}SUPER + SHIFT + h/j/k/l${alignr}${offset -24}${color2}move window${color}
|
||||
${offset 24}${color1}SUPER + [1-9]${alignr}${offset -24}${color2}switch workspace${color}
|
||||
${offset 24}${color1}SUPER + SHIFT + [1-9]${alignr}${offset -24}${color2}send window${color}
|
||||
${offset 24}${color1}SUPER + =/-${alignr}${offset -24}${color2}shrink/expand${color}
|
||||
${alignc}${color4}----------------------------------------------------------------------------${color}
|
||||
${offset 24}${color1}SUPER + e, e${alignr}${offset -24}${color2}launch emacs${color}
|
||||
${offset 24}${color1}SUPER + e, b${alignr}${offset -24}${color2}ibuffer${color}
|
||||
${offset 24}${color1}SUPER + e, d${alignr}${offset -24}${color2}dired${color}
|
||||
${offset 24}${color1}SUPER + e, s${alignr}${offset -24}${color2}eshell${color}
|
||||
${offset 24}${color1}SUPER + e, v${alignr}${offset -24}${color2}vterm${color}
|
||||
${alignc}${color4}----------------------------------------------------------------------------${color}
|
||||
${offset 24}${color1}SUPER + p, h${alignr}${offset -24}${color2}dm-hub${color}
|
||||
${offset 24}${color1}SUPER + p, b${alignr}${offset -24}${color2}dm-setbg${color}
|
||||
${offset 24}${color1}SUPER + p, m${alignr}${offset -24}${color2}dm-man${color}
|
||||
${offset 24}${color1}SUPER + p, o${alignr}${offset -24}${color2}dm-bookman${color}
|
||||
${offset 24}${color1}SUPER + p, s${alignr}${offset -24}${color2}dm-websearch${color}
|
||||
${alignc}${color4}----------------------------------------------------------------------------${color}
|
||||
${offset 24}${color1}SUPER + SHIFT + r${alignr}${offset -24}${color2}restart qtile${color}
|
||||
${offset 24}${color1}SUPER + SHIFT + q${alignr}${offset -24}${color2}quit qtile${color}
|
||||
]]
|
||||
105
.config/conky/qtile/03/GruvboxDark.conf
Normal file
@@ -0,0 +1,105 @@
|
||||
conky.config = {
|
||||
--==============================================================================
|
||||
|
||||
-- DTOS 01 CONKY
|
||||
-- This conky theme was originally based on the Mimosa Dark theme created by
|
||||
-- author "Closebox73". I have removed many of the original widgets that theme
|
||||
-- Mimosa theme used, and I added the DTOS keybinding information.
|
||||
|
||||
--==============================================================================
|
||||
|
||||
-- Size and Position settings --
|
||||
alignment = 'top_right',
|
||||
gap_x = 30,
|
||||
gap_y = 30,
|
||||
maximum_width = 300,
|
||||
minimum_height = 793,
|
||||
minimum_width = 300,
|
||||
|
||||
-- Text settings --
|
||||
use_xft = true,
|
||||
override_utf8_locale = true,
|
||||
font = 'Roboto:normal:size=9',
|
||||
|
||||
|
||||
border_inner_margin = 4, -- margin between border and text
|
||||
border_outer_margin = 0, -- margin between border and edge of window
|
||||
border_width = 0, -- border width in pixels
|
||||
|
||||
-- Color Settings --
|
||||
default_color = 'ededed',
|
||||
default_outline_color = 'white',
|
||||
default_shade_color = 'white',
|
||||
color1 = 'ebdbb2',
|
||||
color2 = '98971a',
|
||||
color3 = '83a598',
|
||||
color4 = '4d4d4d',
|
||||
color5 = 'd3869b',
|
||||
|
||||
-- Window Settings --
|
||||
background = false,
|
||||
border_width = 1,
|
||||
draw_borders = false,
|
||||
draw_graph_borders = false,
|
||||
draw_outline = false,
|
||||
draw_shades = false,
|
||||
own_window = true,
|
||||
own_window_colour = '000000',
|
||||
own_window_class = 'Conky',
|
||||
own_window_argb_visual = false,
|
||||
own_window_type = 'override',
|
||||
own_window_transparent = true,
|
||||
own_window_hints = 'undecorated,below,sticky,skip_taskbar,skip_pager',
|
||||
stippled_borders = 0,
|
||||
|
||||
-- Others --
|
||||
cpu_avg_samples = 2,
|
||||
net_avg_samples = 2,
|
||||
double_buffer = true,
|
||||
out_to_console = false,
|
||||
out_to_stderr = false,
|
||||
extra_newline = false,
|
||||
update_interval = 1,
|
||||
uppercase = false,
|
||||
use_spacer = 'none',
|
||||
show_graph_scale = false,
|
||||
show_graph_range = false,
|
||||
lua_load = '~/.config/conky/qtile/01/scripts/GruvboxDark.lua',
|
||||
lua_draw_hook_pre = 'ring_stats',
|
||||
}
|
||||
|
||||
conky.text = [[
|
||||
${image ~/.config/conky/qtile/01/bg/GruvboxDark.png -s 300x763 -p 0,35}
|
||||
${alignc}${voffset 26}${color3}${font Raleway:bold:size=40}${time %H:%M}${font}${color}
|
||||
${alignc}${voffset 5}${font Raleway:size=14}${time %A, %B %d}
|
||||
${offset 34}${voffset 90}${color}${font Bebas Neue:size=18}${cpu cpu0}%${goto 104}${memperc}%${goto 180}${battery_percent BAT0}%${goto 230}${execi 2 ~/.config/conky/qtile/01/scripts/cputemp.sh}
|
||||
${offset 24}${voffset -2}${color}${font Raleway:size=10}/ :${goto 170}${font Raleway:size=10}/home :
|
||||
${offset 24}${color3}${font Raleway:size=9}${fs_bar 10,111}${goto 170}${color3}${font Raleway:size=9}${fs_bar 10,111 /home}
|
||||
${offset 24}${color}${font Raleway:size=9}${fs_used} / ${fs_size}${goto 170}${color}${font Raleway:size=8}${fs_used /home} / ${fs_size /home}${font}
|
||||
${voffset 32}${color5}${alignc}${font Raleway:bold:size=12}QTILE KEYBINDINGS${font}${color}
|
||||
${alignc}${color4}----------------------------------------------------------------------------${color}
|
||||
${offset 24}${color1}SUPER + [RET]${alignr}${offset -24}${color2}open terminal${color}
|
||||
${offset 24}${color1}SUPER + b${alignr}${offset -24}${color2}open browser${color}
|
||||
${offset 24}${color1}SUPER + SHIFT + [RET]${alignr}${offset -24}${color2}run prompt${color}
|
||||
${offset 24}${color1}SUPER + SHIFT + c${alignr}${offset -24}${color2}close window${color}
|
||||
${offset 24}${color1}SUPER + h/j/k/l${alignr}${offset -24}${color2}move win focus${color}
|
||||
${offset 24}${color1}SUPER + SHIFT + h/j/k/l${alignr}${offset -24}${color2}move window${color}
|
||||
${offset 24}${color1}SUPER + [1-9]${alignr}${offset -24}${color2}switch workspace${color}
|
||||
${offset 24}${color1}SUPER + SHIFT + [1-9]${alignr}${offset -24}${color2}send window${color}
|
||||
${offset 24}${color1}SUPER + =/-${alignr}${offset -24}${color2}shrink/expand${color}
|
||||
${alignc}${color4}----------------------------------------------------------------------------${color}
|
||||
${offset 24}${color1}SUPER + e, e${alignr}${offset -24}${color2}launch emacs${color}
|
||||
${offset 24}${color1}SUPER + e, b${alignr}${offset -24}${color2}ibuffer${color}
|
||||
${offset 24}${color1}SUPER + e, d${alignr}${offset -24}${color2}dired${color}
|
||||
${offset 24}${color1}SUPER + e, s${alignr}${offset -24}${color2}eshell${color}
|
||||
${offset 24}${color1}SUPER + e, v${alignr}${offset -24}${color2}vterm${color}
|
||||
${alignc}${color4}----------------------------------------------------------------------------${color}
|
||||
${offset 24}${color1}SUPER + p, h${alignr}${offset -24}${color2}dm-hub${color}
|
||||
${offset 24}${color1}SUPER + p, b${alignr}${offset -24}${color2}dm-setbg${color}
|
||||
${offset 24}${color1}SUPER + p, m${alignr}${offset -24}${color2}dm-man${color}
|
||||
${offset 24}${color1}SUPER + p, o${alignr}${offset -24}${color2}dm-bookman${color}
|
||||
${offset 24}${color1}SUPER + p, s${alignr}${offset -24}${color2}dm-websearch${color}
|
||||
${alignc}${color4}----------------------------------------------------------------------------${color}
|
||||
${offset 24}${color1}SUPER + SHIFT + r${alignr}${offset -24}${color2}restart qtile${color}
|
||||
${offset 24}${color1}SUPER + SHIFT + q${alignr}${offset -24}${color2}quit qtile${color}
|
||||
]]
|
||||
105
.config/conky/qtile/03/MonokaiPro.conf
Normal file
@@ -0,0 +1,105 @@
|
||||
conky.config = {
|
||||
--==============================================================================
|
||||
|
||||
-- DTOS 01 CONKY
|
||||
-- This conky theme was originally based on the Mimosa Dark theme created by
|
||||
-- author "Closebox73". I have removed many of the original widgets that theme
|
||||
-- Mimosa theme used, and I added the DTOS keybinding information.
|
||||
|
||||
--==============================================================================
|
||||
|
||||
-- Size and Position settings --
|
||||
alignment = 'top_right',
|
||||
gap_x = 30,
|
||||
gap_y = 30,
|
||||
maximum_width = 300,
|
||||
minimum_height = 793,
|
||||
minimum_width = 300,
|
||||
|
||||
-- Text settings --
|
||||
use_xft = true,
|
||||
override_utf8_locale = true,
|
||||
font = 'Roboto:normal:size=9',
|
||||
|
||||
|
||||
border_inner_margin = 4, -- margin between border and text
|
||||
border_outer_margin = 0, -- margin between border and edge of window
|
||||
border_width = 0, -- border width in pixels
|
||||
|
||||
-- Color Settings --
|
||||
default_color = 'ededed',
|
||||
default_outline_color = 'white',
|
||||
default_shade_color = 'white',
|
||||
color1 = 'fcfcfa',
|
||||
color2 = 'ab9df2',
|
||||
color3 = '78dce8',
|
||||
color4 = '4d4d4d',
|
||||
color5 = 'ff6188',
|
||||
|
||||
-- Window Settings --
|
||||
background = false,
|
||||
border_width = 1,
|
||||
draw_borders = false,
|
||||
draw_graph_borders = false,
|
||||
draw_outline = false,
|
||||
draw_shades = false,
|
||||
own_window = true,
|
||||
own_window_colour = '000000',
|
||||
own_window_class = 'Conky',
|
||||
own_window_argb_visual = false,
|
||||
own_window_type = 'override',
|
||||
own_window_transparent = true,
|
||||
own_window_hints = 'undecorated,below,sticky,skip_taskbar,skip_pager',
|
||||
stippled_borders = 0,
|
||||
|
||||
-- Others --
|
||||
cpu_avg_samples = 2,
|
||||
net_avg_samples = 2,
|
||||
double_buffer = true,
|
||||
out_to_console = false,
|
||||
out_to_stderr = false,
|
||||
extra_newline = false,
|
||||
update_interval = 1,
|
||||
uppercase = false,
|
||||
use_spacer = 'none',
|
||||
show_graph_scale = false,
|
||||
show_graph_range = false,
|
||||
lua_load = '~/.config/conky/qtile/01/scripts/MonokaiPro.lua',
|
||||
lua_draw_hook_pre = 'ring_stats',
|
||||
}
|
||||
|
||||
conky.text = [[
|
||||
${image ~/.config/conky/qtile/01/bg/MonokaiPro.png -s 300x763 -p 0,35}
|
||||
${alignc}${voffset 26}${color3}${font Raleway:bold:size=40}${time %H:%M}${font}${color}
|
||||
${alignc}${voffset 5}${font Raleway:size=14}${time %A, %B %d}
|
||||
${offset 34}${voffset 90}${color}${font Bebas Neue:size=18}${cpu cpu0}%${goto 104}${memperc}%${goto 180}${battery_percent BAT0}%${goto 230}${execi 2 ~/.config/conky/qtile/01/scripts/cputemp.sh}
|
||||
${offset 24}${voffset -2}${color}${font Raleway:size=10}/ :${goto 170}${font Raleway:size=10}/home :
|
||||
${offset 24}${color3}${font Raleway:size=9}${fs_bar 10,111}${goto 170}${color3}${font Raleway:size=9}${fs_bar 10,111 /home}
|
||||
${offset 24}${color}${font Raleway:size=9}${fs_used} / ${fs_size}${goto 170}${color}${font Raleway:size=8}${fs_used /home} / ${fs_size /home}${font}
|
||||
${voffset 32}${color5}${alignc}${font Raleway:bold:size=12}QTILE KEYBINDINGS${font}${color}
|
||||
${alignc}${color4}----------------------------------------------------------------------------${color}
|
||||
${offset 24}${color1}SUPER + [RET]${alignr}${offset -24}${color2}open terminal${color}
|
||||
${offset 24}${color1}SUPER + b${alignr}${offset -24}${color2}open browser${color}
|
||||
${offset 24}${color1}SUPER + SHIFT + [RET]${alignr}${offset -24}${color2}run prompt${color}
|
||||
${offset 24}${color1}SUPER + SHIFT + c${alignr}${offset -24}${color2}close window${color}
|
||||
${offset 24}${color1}SUPER + h/j/k/l${alignr}${offset -24}${color2}move win focus${color}
|
||||
${offset 24}${color1}SUPER + SHIFT + h/j/k/l${alignr}${offset -24}${color2}move window${color}
|
||||
${offset 24}${color1}SUPER + [1-9]${alignr}${offset -24}${color2}switch workspace${color}
|
||||
${offset 24}${color1}SUPER + SHIFT + [1-9]${alignr}${offset -24}${color2}send window${color}
|
||||
${offset 24}${color1}SUPER + =/-${alignr}${offset -24}${color2}shrink/expand${color}
|
||||
${alignc}${color4}----------------------------------------------------------------------------${color}
|
||||
${offset 24}${color1}SUPER + e, e${alignr}${offset -24}${color2}launch emacs${color}
|
||||
${offset 24}${color1}SUPER + e, b${alignr}${offset -24}${color2}ibuffer${color}
|
||||
${offset 24}${color1}SUPER + e, d${alignr}${offset -24}${color2}dired${color}
|
||||
${offset 24}${color1}SUPER + e, s${alignr}${offset -24}${color2}eshell${color}
|
||||
${offset 24}${color1}SUPER + e, v${alignr}${offset -24}${color2}vterm${color}
|
||||
${alignc}${color4}----------------------------------------------------------------------------${color}
|
||||
${offset 24}${color1}SUPER + p, h${alignr}${offset -24}${color2}dm-hub${color}
|
||||
${offset 24}${color1}SUPER + p, b${alignr}${offset -24}${color2}dm-setbg${color}
|
||||
${offset 24}${color1}SUPER + p, m${alignr}${offset -24}${color2}dm-man${color}
|
||||
${offset 24}${color1}SUPER + p, o${alignr}${offset -24}${color2}dm-bookman${color}
|
||||
${offset 24}${color1}SUPER + p, s${alignr}${offset -24}${color2}dm-websearch${color}
|
||||
${alignc}${color4}----------------------------------------------------------------------------${color}
|
||||
${offset 24}${color1}SUPER + SHIFT + r${alignr}${offset -24}${color2}restart qtile${color}
|
||||
${offset 24}${color1}SUPER + SHIFT + q${alignr}${offset -24}${color2}quit qtile${color}
|
||||
]]
|
||||
105
.config/conky/qtile/03/Nord.conf
Normal file
@@ -0,0 +1,105 @@
|
||||
conky.config = {
|
||||
--==============================================================================
|
||||
|
||||
-- DTOS 01 CONKY
|
||||
-- This conky theme was originally based on the Mimosa Dark theme created by
|
||||
-- author "Closebox73". I have removed many of the original widgets that theme
|
||||
-- Mimosa theme used, and I added the DTOS keybinding information.
|
||||
|
||||
--==============================================================================
|
||||
|
||||
-- Size and Position settings --
|
||||
alignment = 'top_right',
|
||||
gap_x = 30,
|
||||
gap_y = 30,
|
||||
maximum_width = 300,
|
||||
minimum_height = 793,
|
||||
minimum_width = 300,
|
||||
|
||||
-- Text settings --
|
||||
use_xft = true,
|
||||
override_utf8_locale = true,
|
||||
font = 'Roboto:normal:size=9',
|
||||
|
||||
|
||||
border_inner_margin = 4, -- margin between border and text
|
||||
border_outer_margin = 0, -- margin between border and edge of window
|
||||
border_width = 0, -- border width in pixels
|
||||
|
||||
-- Color Settings --
|
||||
default_color = 'ededed',
|
||||
default_outline_color = 'white',
|
||||
default_shade_color = 'white',
|
||||
color1 = 'd8dee9',
|
||||
color2 = 'b48ead',
|
||||
color3 = '88c0d0',
|
||||
color4 = '4d4d4d',
|
||||
color5 = 'a3be8c',
|
||||
|
||||
-- Window Settings --
|
||||
background = false,
|
||||
border_width = 1,
|
||||
draw_borders = false,
|
||||
draw_graph_borders = false,
|
||||
draw_outline = false,
|
||||
draw_shades = false,
|
||||
own_window = true,
|
||||
own_window_colour = '000000',
|
||||
own_window_class = 'Conky',
|
||||
own_window_argb_visual = false,
|
||||
own_window_type = 'override',
|
||||
own_window_transparent = true,
|
||||
own_window_hints = 'undecorated,below,sticky,skip_taskbar,skip_pager',
|
||||
stippled_borders = 0,
|
||||
|
||||
-- Others --
|
||||
cpu_avg_samples = 2,
|
||||
net_avg_samples = 2,
|
||||
double_buffer = true,
|
||||
out_to_console = false,
|
||||
out_to_stderr = false,
|
||||
extra_newline = false,
|
||||
update_interval = 1,
|
||||
uppercase = false,
|
||||
use_spacer = 'none',
|
||||
show_graph_scale = false,
|
||||
show_graph_range = false,
|
||||
lua_load = '~/.config/conky/qtile/01/scripts/Nord.lua',
|
||||
lua_draw_hook_pre = 'ring_stats',
|
||||
}
|
||||
|
||||
conky.text = [[
|
||||
${image ~/.config/conky/qtile/01/bg/Nord.png -s 300x763 -p 0,35}
|
||||
${alignc}${voffset 26}${color3}${font Raleway:bold:size=40}${time %H:%M}${font}${color}
|
||||
${alignc}${voffset 5}${font Raleway:size=14}${time %A, %B %d}
|
||||
${offset 34}${voffset 90}${color}${font Bebas Neue:size=18}${cpu cpu0}%${goto 104}${memperc}%${goto 180}${battery_percent BAT0}%${goto 230}${execi 2 ~/.config/conky/qtile/01/scripts/cputemp.sh}
|
||||
${offset 24}${voffset -2}${color}${font Raleway:size=10}/ :${goto 170}${font Raleway:size=10}/home :
|
||||
${offset 24}${color3}${font Raleway:size=9}${fs_bar 10,111}${goto 170}${color3}${font Raleway:size=9}${fs_bar 10,111 /home}
|
||||
${offset 24}${color}${font Raleway:size=9}${fs_used} / ${fs_size}${goto 170}${color}${font Raleway:size=8}${fs_used /home} / ${fs_size /home}${font}
|
||||
${voffset 32}${color5}${alignc}${font Raleway:bold:size=12}QTILE KEYBINDINGS${font}${color}
|
||||
${alignc}${color4}----------------------------------------------------------------------------${color}
|
||||
${offset 24}${color1}SUPER + [RET]${alignr}${offset -24}${color2}open terminal${color}
|
||||
${offset 24}${color1}SUPER + b${alignr}${offset -24}${color2}open browser${color}
|
||||
${offset 24}${color1}SUPER + SHIFT + [RET]${alignr}${offset -24}${color2}run prompt${color}
|
||||
${offset 24}${color1}SUPER + SHIFT + c${alignr}${offset -24}${color2}close window${color}
|
||||
${offset 24}${color1}SUPER + h/j/k/l${alignr}${offset -24}${color2}move win focus${color}
|
||||
${offset 24}${color1}SUPER + SHIFT + h/j/k/l${alignr}${offset -24}${color2}move window${color}
|
||||
${offset 24}${color1}SUPER + [1-9]${alignr}${offset -24}${color2}switch workspace${color}
|
||||
${offset 24}${color1}SUPER + SHIFT + [1-9]${alignr}${offset -24}${color2}send window${color}
|
||||
${offset 24}${color1}SUPER + =/-${alignr}${offset -24}${color2}shrink/expand${color}
|
||||
${alignc}${color4}----------------------------------------------------------------------------${color}
|
||||
${offset 24}${color1}SUPER + e, e${alignr}${offset -24}${color2}launch emacs${color}
|
||||
${offset 24}${color1}SUPER + e, b${alignr}${offset -24}${color2}ibuffer${color}
|
||||
${offset 24}${color1}SUPER + e, d${alignr}${offset -24}${color2}dired${color}
|
||||
${offset 24}${color1}SUPER + e, s${alignr}${offset -24}${color2}eshell${color}
|
||||
${offset 24}${color1}SUPER + e, v${alignr}${offset -24}${color2}vterm${color}
|
||||
${alignc}${color4}----------------------------------------------------------------------------${color}
|
||||
${offset 24}${color1}SUPER + p, h${alignr}${offset -24}${color2}dm-hub${color}
|
||||
${offset 24}${color1}SUPER + p, b${alignr}${offset -24}${color2}dm-setbg${color}
|
||||
${offset 24}${color1}SUPER + p, m${alignr}${offset -24}${color2}dm-man${color}
|
||||
${offset 24}${color1}SUPER + p, o${alignr}${offset -24}${color2}dm-bookman${color}
|
||||
${offset 24}${color1}SUPER + p, s${alignr}${offset -24}${color2}dm-websearch${color}
|
||||
${alignc}${color4}----------------------------------------------------------------------------${color}
|
||||
${offset 24}${color1}SUPER + SHIFT + r${alignr}${offset -24}${color2}restart qtile${color}
|
||||
${offset 24}${color1}SUPER + SHIFT + q${alignr}${offset -24}${color2}quit qtile${color}
|
||||
]]
|
||||
105
.config/conky/qtile/03/OceanicNext.conf
Normal file
@@ -0,0 +1,105 @@
|
||||
conky.config = {
|
||||
--==============================================================================
|
||||
|
||||
-- DTOS 01 CONKY
|
||||
-- This conky theme was originally based on the Mimosa Dark theme created by
|
||||
-- author "Closebox73". I have removed many of the original widgets that theme
|
||||
-- Mimosa theme used, and I added the DTOS keybinding information.
|
||||
|
||||
--==============================================================================
|
||||
|
||||
-- Size and Position settings --
|
||||
alignment = 'top_right',
|
||||
gap_x = 30,
|
||||
gap_y = 30,
|
||||
maximum_width = 300,
|
||||
minimum_height = 793,
|
||||
minimum_width = 300,
|
||||
|
||||
-- Text settings --
|
||||
use_xft = true,
|
||||
override_utf8_locale = true,
|
||||
font = 'Roboto:normal:size=9',
|
||||
|
||||
|
||||
border_inner_margin = 4, -- margin between border and text
|
||||
border_outer_margin = 0, -- margin between border and edge of window
|
||||
border_width = 0, -- border width in pixels
|
||||
|
||||
-- Color Settings --
|
||||
default_color = 'ededed',
|
||||
default_outline_color = 'white',
|
||||
default_shade_color = 'white',
|
||||
color1 = 'd8dee9',
|
||||
color2 = 'c594c5',
|
||||
color3 = '6699cc',
|
||||
color4 = '4d4d4d',
|
||||
color5 = '99c794',
|
||||
|
||||
-- Window Settings --
|
||||
background = false,
|
||||
border_width = 1,
|
||||
draw_borders = false,
|
||||
draw_graph_borders = false,
|
||||
draw_outline = false,
|
||||
draw_shades = false,
|
||||
own_window = true,
|
||||
own_window_colour = '000000',
|
||||
own_window_class = 'Conky',
|
||||
own_window_argb_visual = false,
|
||||
own_window_type = 'override',
|
||||
own_window_transparent = true,
|
||||
own_window_hints = 'undecorated,below,sticky,skip_taskbar,skip_pager',
|
||||
stippled_borders = 0,
|
||||
|
||||
-- Others --
|
||||
cpu_avg_samples = 2,
|
||||
net_avg_samples = 2,
|
||||
double_buffer = true,
|
||||
out_to_console = false,
|
||||
out_to_stderr = false,
|
||||
extra_newline = false,
|
||||
update_interval = 1,
|
||||
uppercase = false,
|
||||
use_spacer = 'none',
|
||||
show_graph_scale = false,
|
||||
show_graph_range = false,
|
||||
lua_load = '~/.config/conky/qtile/01/scripts/OceanicNext.lua',
|
||||
lua_draw_hook_pre = 'ring_stats',
|
||||
}
|
||||
|
||||
conky.text = [[
|
||||
${image ~/.config/conky/qtile/01/bg/OceanicNext.png -s 300x763 -p 0,35}
|
||||
${alignc}${voffset 26}${color3}${font Raleway:bold:size=40}${time %H:%M}${font}${color}
|
||||
${alignc}${voffset 5}${font Raleway:size=14}${time %A, %B %d}
|
||||
${offset 34}${voffset 90}${color}${font Bebas Neue:size=18}${cpu cpu0}%${goto 104}${memperc}%${goto 180}${battery_percent BAT0}%${goto 230}${execi 2 ~/.config/conky/qtile/01/scripts/cputemp.sh}
|
||||
${offset 24}${voffset -2}${color}${font Raleway:size=10}/ :${goto 170}${font Raleway:size=10}/home :
|
||||
${offset 24}${color3}${font Raleway:size=9}${fs_bar 10,111}${goto 170}${color3}${font Raleway:size=9}${fs_bar 10,111 /home}
|
||||
${offset 24}${color}${font Raleway:size=9}${fs_used} / ${fs_size}${goto 170}${color}${font Raleway:size=8}${fs_used /home} / ${fs_size /home}${font}
|
||||
${voffset 32}${color5}${alignc}${font Raleway:bold:size=12}QTILE KEYBINDINGS${font}${color}
|
||||
${alignc}${color4}----------------------------------------------------------------------------${color}
|
||||
${offset 24}${color1}SUPER + [RET]${alignr}${offset -24}${color2}open terminal${color}
|
||||
${offset 24}${color1}SUPER + b${alignr}${offset -24}${color2}open browser${color}
|
||||
${offset 24}${color1}SUPER + SHIFT + [RET]${alignr}${offset -24}${color2}run prompt${color}
|
||||
${offset 24}${color1}SUPER + SHIFT + c${alignr}${offset -24}${color2}close window${color}
|
||||
${offset 24}${color1}SUPER + h/j/k/l${alignr}${offset -24}${color2}move win focus${color}
|
||||
${offset 24}${color1}SUPER + SHIFT + h/j/k/l${alignr}${offset -24}${color2}move window${color}
|
||||
${offset 24}${color1}SUPER + [1-9]${alignr}${offset -24}${color2}switch workspace${color}
|
||||
${offset 24}${color1}SUPER + SHIFT + [1-9]${alignr}${offset -24}${color2}send window${color}
|
||||
${offset 24}${color1}SUPER + =/-${alignr}${offset -24}${color2}shrink/expand${color}
|
||||
${alignc}${color4}----------------------------------------------------------------------------${color}
|
||||
${offset 24}${color1}SUPER + e, e${alignr}${offset -24}${color2}launch emacs${color}
|
||||
${offset 24}${color1}SUPER + e, b${alignr}${offset -24}${color2}ibuffer${color}
|
||||
${offset 24}${color1}SUPER + e, d${alignr}${offset -24}${color2}dired${color}
|
||||
${offset 24}${color1}SUPER + e, s${alignr}${offset -24}${color2}eshell${color}
|
||||
${offset 24}${color1}SUPER + e, v${alignr}${offset -24}${color2}vterm${color}
|
||||
${alignc}${color4}----------------------------------------------------------------------------${color}
|
||||
${offset 24}${color1}SUPER + p, h${alignr}${offset -24}${color2}dm-hub${color}
|
||||
${offset 24}${color1}SUPER + p, b${alignr}${offset -24}${color2}dm-setbg${color}
|
||||
${offset 24}${color1}SUPER + p, m${alignr}${offset -24}${color2}dm-man${color}
|
||||
${offset 24}${color1}SUPER + p, o${alignr}${offset -24}${color2}dm-bookman${color}
|
||||
${offset 24}${color1}SUPER + p, s${alignr}${offset -24}${color2}dm-websearch${color}
|
||||
${alignc}${color4}----------------------------------------------------------------------------${color}
|
||||
${offset 24}${color1}SUPER + SHIFT + r${alignr}${offset -24}${color2}restart qtile${color}
|
||||
${offset 24}${color1}SUPER + SHIFT + q${alignr}${offset -24}${color2}quit qtile${color}
|
||||
]]
|
||||
105
.config/conky/qtile/03/Palenight.conf
Normal file
@@ -0,0 +1,105 @@
|
||||
conky.config = {
|
||||
--==============================================================================
|
||||
|
||||
-- DTOS 01 CONKY
|
||||
-- This conky theme was originally based on the Mimosa Dark theme created by
|
||||
-- author "Closebox73". I have removed many of the original widgets that theme
|
||||
-- Mimosa theme used, and I added the DTOS keybinding information.
|
||||
|
||||
--==============================================================================
|
||||
|
||||
-- Size and Position settings --
|
||||
alignment = 'top_right',
|
||||
gap_x = 30,
|
||||
gap_y = 30,
|
||||
maximum_width = 300,
|
||||
minimum_height = 793,
|
||||
minimum_width = 300,
|
||||
|
||||
-- Text settings --
|
||||
use_xft = true,
|
||||
override_utf8_locale = true,
|
||||
font = 'Roboto:normal:size=9',
|
||||
|
||||
|
||||
border_inner_margin = 4, -- margin between border and text
|
||||
border_outer_margin = 0, -- margin between border and edge of window
|
||||
border_width = 0, -- border width in pixels
|
||||
|
||||
-- Color Settings --
|
||||
default_color = 'ededed',
|
||||
default_outline_color = 'white',
|
||||
default_shade_color = 'white',
|
||||
color1 = 'd0d0d0',
|
||||
color2 = 'c792ea',
|
||||
color3 = '89ddff',
|
||||
color4 = '4d4d4d',
|
||||
color5 = 'c3e88d',
|
||||
|
||||
-- Window Settings --
|
||||
background = false,
|
||||
border_width = 1,
|
||||
draw_borders = false,
|
||||
draw_graph_borders = false,
|
||||
draw_outline = false,
|
||||
draw_shades = false,
|
||||
own_window = true,
|
||||
own_window_colour = '000000',
|
||||
own_window_class = 'Conky',
|
||||
own_window_argb_visual = false,
|
||||
own_window_type = 'override',
|
||||
own_window_transparent = true,
|
||||
own_window_hints = 'undecorated,below,sticky,skip_taskbar,skip_pager',
|
||||
stippled_borders = 0,
|
||||
|
||||
-- Others --
|
||||
cpu_avg_samples = 2,
|
||||
net_avg_samples = 2,
|
||||
double_buffer = true,
|
||||
out_to_console = false,
|
||||
out_to_stderr = false,
|
||||
extra_newline = false,
|
||||
update_interval = 1,
|
||||
uppercase = false,
|
||||
use_spacer = 'none',
|
||||
show_graph_scale = false,
|
||||
show_graph_range = false,
|
||||
lua_load = '~/.config/conky/qtile/01/scripts/Palenight.lua',
|
||||
lua_draw_hook_pre = 'ring_stats',
|
||||
}
|
||||
|
||||
conky.text = [[
|
||||
${image ~/.config/conky/qtile/01/bg/Palenight.png -s 300x763 -p 0,35}
|
||||
${alignc}${voffset 26}${color3}${font Raleway:bold:size=40}${time %H:%M}${font}${color}
|
||||
${alignc}${voffset 5}${font Raleway:size=14}${time %A, %B %d}
|
||||
${offset 34}${voffset 90}${color}${font Bebas Neue:size=18}${cpu cpu0}%${goto 104}${memperc}%${goto 180}${battery_percent BAT0}%${goto 230}${execi 2 ~/.config/conky/qtile/01/scripts/cputemp.sh}
|
||||
${offset 24}${voffset -2}${color}${font Raleway:size=10}/ :${goto 170}${font Raleway:size=10}/home :
|
||||
${offset 24}${color3}${font Raleway:size=9}${fs_bar 10,111}${goto 170}${color3}${font Raleway:size=9}${fs_bar 10,111 /home}
|
||||
${offset 24}${color}${font Raleway:size=9}${fs_used} / ${fs_size}${goto 170}${color}${font Raleway:size=8}${fs_used /home} / ${fs_size /home}${font}
|
||||
${voffset 32}${color5}${alignc}${font Raleway:bold:size=12}QTILE KEYBINDINGS${font}${color}
|
||||
${alignc}${color4}----------------------------------------------------------------------------${color}
|
||||
${offset 24}${color1}SUPER + [RET]${alignr}${offset -24}${color2}open terminal${color}
|
||||
${offset 24}${color1}SUPER + b${alignr}${offset -24}${color2}open browser${color}
|
||||
${offset 24}${color1}SUPER + SHIFT + [RET]${alignr}${offset -24}${color2}run prompt${color}
|
||||
${offset 24}${color1}SUPER + SHIFT + c${alignr}${offset -24}${color2}close window${color}
|
||||
${offset 24}${color1}SUPER + h/j/k/l${alignr}${offset -24}${color2}move win focus${color}
|
||||
${offset 24}${color1}SUPER + SHIFT + h/j/k/l${alignr}${offset -24}${color2}move window${color}
|
||||
${offset 24}${color1}SUPER + [1-9]${alignr}${offset -24}${color2}switch workspace${color}
|
||||
${offset 24}${color1}SUPER + SHIFT + [1-9]${alignr}${offset -24}${color2}send window${color}
|
||||
${offset 24}${color1}SUPER + =/-${alignr}${offset -24}${color2}shrink/expand${color}
|
||||
${alignc}${color4}----------------------------------------------------------------------------${color}
|
||||
${offset 24}${color1}SUPER + e, e${alignr}${offset -24}${color2}launch emacs${color}
|
||||
${offset 24}${color1}SUPER + e, b${alignr}${offset -24}${color2}ibuffer${color}
|
||||
${offset 24}${color1}SUPER + e, d${alignr}${offset -24}${color2}dired${color}
|
||||
${offset 24}${color1}SUPER + e, s${alignr}${offset -24}${color2}eshell${color}
|
||||
${offset 24}${color1}SUPER + e, v${alignr}${offset -24}${color2}vterm${color}
|
||||
${alignc}${color4}----------------------------------------------------------------------------${color}
|
||||
${offset 24}${color1}SUPER + p, h${alignr}${offset -24}${color2}dm-hub${color}
|
||||
${offset 24}${color1}SUPER + p, b${alignr}${offset -24}${color2}dm-setbg${color}
|
||||
${offset 24}${color1}SUPER + p, m${alignr}${offset -24}${color2}dm-man${color}
|
||||
${offset 24}${color1}SUPER + p, o${alignr}${offset -24}${color2}dm-bookman${color}
|
||||
${offset 24}${color1}SUPER + p, s${alignr}${offset -24}${color2}dm-websearch${color}
|
||||
${alignc}${color4}----------------------------------------------------------------------------${color}
|
||||
${offset 24}${color1}SUPER + SHIFT + r${alignr}${offset -24}${color2}restart qtile${color}
|
||||
${offset 24}${color1}SUPER + SHIFT + q${alignr}${offset -24}${color2}quit qtile${color}
|
||||
]]
|
||||
105
.config/conky/qtile/03/SolarizedDark.conf
Normal file
@@ -0,0 +1,105 @@
|
||||
conky.config = {
|
||||
--==============================================================================
|
||||
|
||||
-- DTOS 01 CONKY
|
||||
-- This conky theme was originally based on the Mimosa Dark theme created by
|
||||
-- author "Closebox73". I have removed many of the original widgets that theme
|
||||
-- Mimosa theme used, and I added the DTOS keybinding information.
|
||||
|
||||
--==============================================================================
|
||||
|
||||
-- Size and Position settings --
|
||||
alignment = 'top_right',
|
||||
gap_x = 30,
|
||||
gap_y = 30,
|
||||
maximum_width = 300,
|
||||
minimum_height = 793,
|
||||
minimum_width = 300,
|
||||
|
||||
-- Text settings --
|
||||
use_xft = true,
|
||||
override_utf8_locale = true,
|
||||
font = 'Roboto:normal:size=9',
|
||||
|
||||
|
||||
border_inner_margin = 4, -- margin between border and text
|
||||
border_outer_margin = 0, -- margin between border and edge of window
|
||||
border_width = 0, -- border width in pixels
|
||||
|
||||
-- Color Settings --
|
||||
default_color = 'ededed',
|
||||
default_outline_color = 'white',
|
||||
default_shade_color = 'white',
|
||||
color1 = '839496',
|
||||
color2 = '859900',
|
||||
color3 = '268bd2',
|
||||
color4 = '4d4d4d',
|
||||
color5 = 'd33682',
|
||||
|
||||
-- Window Settings --
|
||||
background = false,
|
||||
border_width = 1,
|
||||
draw_borders = false,
|
||||
draw_graph_borders = false,
|
||||
draw_outline = false,
|
||||
draw_shades = false,
|
||||
own_window = true,
|
||||
own_window_colour = '000000',
|
||||
own_window_class = 'Conky',
|
||||
own_window_argb_visual = false,
|
||||
own_window_type = 'override',
|
||||
own_window_transparent = true,
|
||||
own_window_hints = 'undecorated,below,sticky,skip_taskbar,skip_pager',
|
||||
stippled_borders = 0,
|
||||
|
||||
-- Others --
|
||||
cpu_avg_samples = 2,
|
||||
net_avg_samples = 2,
|
||||
double_buffer = true,
|
||||
out_to_console = false,
|
||||
out_to_stderr = false,
|
||||
extra_newline = false,
|
||||
update_interval = 1,
|
||||
uppercase = false,
|
||||
use_spacer = 'none',
|
||||
show_graph_scale = false,
|
||||
show_graph_range = false,
|
||||
lua_load = '~/.config/conky/qtile/01/scripts/SolarizedDark.lua',
|
||||
lua_draw_hook_pre = 'ring_stats',
|
||||
}
|
||||
|
||||
conky.text = [[
|
||||
${image ~/.config/conky/qtile/01/bg/SolarizedDark.png -s 300x763 -p 0,35}
|
||||
${alignc}${voffset 26}${color3}${font Raleway:bold:size=40}${time %H:%M}${font}${color}
|
||||
${alignc}${voffset 5}${font Raleway:size=14}${time %A, %B %d}
|
||||
${offset 34}${voffset 90}${color}${font Bebas Neue:size=18}${cpu cpu0}%${goto 104}${memperc}%${goto 180}${battery_percent BAT0}%${goto 230}${execi 2 ~/.config/conky/qtile/01/scripts/cputemp.sh}
|
||||
${offset 24}${voffset -2}${color}${font Raleway:size=10}/ :${goto 170}${font Raleway:size=10}/home :
|
||||
${offset 24}${color3}${font Raleway:size=9}${fs_bar 10,111}${goto 170}${color3}${font Raleway:size=9}${fs_bar 10,111 /home}
|
||||
${offset 24}${color}${font Raleway:size=9}${fs_used} / ${fs_size}${goto 170}${color}${font Raleway:size=8}${fs_used /home} / ${fs_size /home}${font}
|
||||
${voffset 32}${color5}${alignc}${font Raleway:bold:size=12}QTILE KEYBINDINGS${font}${color}
|
||||
${alignc}${color4}----------------------------------------------------------------------------${color}
|
||||
${offset 24}${color1}SUPER + [RET]${alignr}${offset -24}${color2}open terminal${color}
|
||||
${offset 24}${color1}SUPER + b${alignr}${offset -24}${color2}open browser${color}
|
||||
${offset 24}${color1}SUPER + SHIFT + [RET]${alignr}${offset -24}${color2}run prompt${color}
|
||||
${offset 24}${color1}SUPER + SHIFT + c${alignr}${offset -24}${color2}close window${color}
|
||||
${offset 24}${color1}SUPER + h/j/k/l${alignr}${offset -24}${color2}move win focus${color}
|
||||
${offset 24}${color1}SUPER + SHIFT + h/j/k/l${alignr}${offset -24}${color2}move window${color}
|
||||
${offset 24}${color1}SUPER + [1-9]${alignr}${offset -24}${color2}switch workspace${color}
|
||||
${offset 24}${color1}SUPER + SHIFT + [1-9]${alignr}${offset -24}${color2}send window${color}
|
||||
${offset 24}${color1}SUPER + =/-${alignr}${offset -24}${color2}shrink/expand${color}
|
||||
${alignc}${color4}----------------------------------------------------------------------------${color}
|
||||
${offset 24}${color1}SUPER + e, e${alignr}${offset -24}${color2}launch emacs${color}
|
||||
${offset 24}${color1}SUPER + e, b${alignr}${offset -24}${color2}ibuffer${color}
|
||||
${offset 24}${color1}SUPER + e, d${alignr}${offset -24}${color2}dired${color}
|
||||
${offset 24}${color1}SUPER + e, s${alignr}${offset -24}${color2}eshell${color}
|
||||
${offset 24}${color1}SUPER + e, v${alignr}${offset -24}${color2}vterm${color}
|
||||
${alignc}${color4}----------------------------------------------------------------------------${color}
|
||||
${offset 24}${color1}SUPER + p, h${alignr}${offset -24}${color2}dm-hub${color}
|
||||
${offset 24}${color1}SUPER + p, b${alignr}${offset -24}${color2}dm-setbg${color}
|
||||
${offset 24}${color1}SUPER + p, m${alignr}${offset -24}${color2}dm-man${color}
|
||||
${offset 24}${color1}SUPER + p, o${alignr}${offset -24}${color2}dm-bookman${color}
|
||||
${offset 24}${color1}SUPER + p, s${alignr}${offset -24}${color2}dm-websearch${color}
|
||||
${alignc}${color4}----------------------------------------------------------------------------${color}
|
||||
${offset 24}${color1}SUPER + SHIFT + r${alignr}${offset -24}${color2}restart qtile${color}
|
||||
${offset 24}${color1}SUPER + SHIFT + q${alignr}${offset -24}${color2}quit qtile${color}
|
||||
]]
|
||||
105
.config/conky/qtile/03/SolarizedLight.conf
Normal file
@@ -0,0 +1,105 @@
|
||||
conky.config = {
|
||||
--==============================================================================
|
||||
|
||||
-- DTOS 01 CONKY
|
||||
-- This conky theme was originally based on the Mimosa Dark theme created by
|
||||
-- author "Closebox73". I have removed many of the original widgets that theme
|
||||
-- Mimosa theme used, and I added the DTOS keybinding information.
|
||||
|
||||
--==============================================================================
|
||||
|
||||
-- Size and Position settings --
|
||||
alignment = 'top_right',
|
||||
gap_x = 30,
|
||||
gap_y = 30,
|
||||
maximum_width = 300,
|
||||
minimum_height = 793,
|
||||
minimum_width = 300,
|
||||
|
||||
-- Text settings --
|
||||
use_xft = true,
|
||||
override_utf8_locale = true,
|
||||
font = 'Roboto:normal:size=9',
|
||||
|
||||
|
||||
border_inner_margin = 4, -- margin between border and text
|
||||
border_outer_margin = 0, -- margin between border and edge of window
|
||||
border_width = 0, -- border width in pixels
|
||||
|
||||
-- Color Settings --
|
||||
default_color = '073642',
|
||||
default_outline_color = 'white',
|
||||
default_shade_color = 'white',
|
||||
color1 = '073642',
|
||||
color2 = '859900',
|
||||
color3 = '268bd2',
|
||||
color4 = '4d4d4d',
|
||||
color5 = 'd33682',
|
||||
|
||||
-- Window Settings --
|
||||
background = false,
|
||||
border_width = 1,
|
||||
draw_borders = false,
|
||||
draw_graph_borders = false,
|
||||
draw_outline = false,
|
||||
draw_shades = false,
|
||||
own_window = true,
|
||||
own_window_colour = '000000',
|
||||
own_window_class = 'Conky',
|
||||
own_window_argb_visual = false,
|
||||
own_window_type = 'override',
|
||||
own_window_transparent = true,
|
||||
own_window_hints = 'undecorated,below,sticky,skip_taskbar,skip_pager',
|
||||
stippled_borders = 0,
|
||||
|
||||
-- Others --
|
||||
cpu_avg_samples = 2,
|
||||
net_avg_samples = 2,
|
||||
double_buffer = true,
|
||||
out_to_console = false,
|
||||
out_to_stderr = false,
|
||||
extra_newline = false,
|
||||
update_interval = 1,
|
||||
uppercase = false,
|
||||
use_spacer = 'none',
|
||||
show_graph_scale = false,
|
||||
show_graph_range = false,
|
||||
lua_load = '~/.config/conky/qtile/01/scripts/SolarizedLight.lua',
|
||||
lua_draw_hook_pre = 'ring_stats',
|
||||
}
|
||||
|
||||
conky.text = [[
|
||||
${image ~/.config/conky/qtile/01/bg/SolarizedLight.png -s 300x763 -p 0,35}
|
||||
${alignc}${voffset 26}${color3}${font Raleway:bold:size=40}${time %H:%M}${font}${color}
|
||||
${alignc}${voffset 5}${font Raleway:size=14}${time %A, %B %d}
|
||||
${offset 34}${voffset 90}${color}${font Bebas Neue:size=18}${cpu cpu0}%${goto 104}${memperc}%${goto 180}${battery_percent BAT0}%${goto 230}${execi 2 ~/.config/conky/qtile/01/scripts/cputemp.sh}
|
||||
${offset 24}${voffset -2}${color}${font Raleway:size=10}/ :${goto 170}${font Raleway:size=10}/home :
|
||||
${offset 24}${color3}${font Raleway:size=9}${fs_bar 10,111}${goto 170}${color3}${font Raleway:size=9}${fs_bar 10,111 /home}
|
||||
${offset 24}${color}${font Raleway:size=9}${fs_used} / ${fs_size}${goto 170}${color}${font Raleway:size=8}${fs_used /home} / ${fs_size /home}${font}
|
||||
${voffset 32}${color5}${alignc}${font Raleway:bold:size=12}QTILE KEYBINDINGS${font}${color}
|
||||
${alignc}${color4}----------------------------------------------------------------------------${color}
|
||||
${offset 24}${color1}SUPER + [RET]${alignr}${offset -24}${color2}open terminal${color}
|
||||
${offset 24}${color1}SUPER + b${alignr}${offset -24}${color2}open browser${color}
|
||||
${offset 24}${color1}SUPER + SHIFT + [RET]${alignr}${offset -24}${color2}run prompt${color}
|
||||
${offset 24}${color1}SUPER + SHIFT + c${alignr}${offset -24}${color2}close window${color}
|
||||
${offset 24}${color1}SUPER + h/j/k/l${alignr}${offset -24}${color2}move win focus${color}
|
||||
${offset 24}${color1}SUPER + SHIFT + h/j/k/l${alignr}${offset -24}${color2}move window${color}
|
||||
${offset 24}${color1}SUPER + [1-9]${alignr}${offset -24}${color2}switch workspace${color}
|
||||
${offset 24}${color1}SUPER + SHIFT + [1-9]${alignr}${offset -24}${color2}send window${color}
|
||||
${offset 24}${color1}SUPER + =/-${alignr}${offset -24}${color2}shrink/expand${color}
|
||||
${alignc}${color4}----------------------------------------------------------------------------${color}
|
||||
${offset 24}${color1}SUPER + e, e${alignr}${offset -24}${color2}launch emacs${color}
|
||||
${offset 24}${color1}SUPER + e, b${alignr}${offset -24}${color2}ibuffer${color}
|
||||
${offset 24}${color1}SUPER + e, d${alignr}${offset -24}${color2}dired${color}
|
||||
${offset 24}${color1}SUPER + e, s${alignr}${offset -24}${color2}eshell${color}
|
||||
${offset 24}${color1}SUPER + e, v${alignr}${offset -24}${color2}vterm${color}
|
||||
${alignc}${color4}----------------------------------------------------------------------------${color}
|
||||
${offset 24}${color1}SUPER + p, h${alignr}${offset -24}${color2}dm-hub${color}
|
||||
${offset 24}${color1}SUPER + p, b${alignr}${offset -24}${color2}dm-setbg${color}
|
||||
${offset 24}${color1}SUPER + p, m${alignr}${offset -24}${color2}dm-man${color}
|
||||
${offset 24}${color1}SUPER + p, o${alignr}${offset -24}${color2}dm-bookman${color}
|
||||
${offset 24}${color1}SUPER + p, s${alignr}${offset -24}${color2}dm-websearch${color}
|
||||
${alignc}${color4}----------------------------------------------------------------------------${color}
|
||||
${offset 24}${color1}SUPER + SHIFT + r${alignr}${offset -24}${color2}restart qtile${color}
|
||||
${offset 24}${color1}SUPER + SHIFT + q${alignr}${offset -24}${color2}quit qtile${color}
|
||||
]]
|
||||
105
.config/conky/qtile/03/TomorrowNight.conf
Normal file
@@ -0,0 +1,105 @@
|
||||
conky.config = {
|
||||
--==============================================================================
|
||||
|
||||
-- DTOS 01 CONKY
|
||||
-- This conky theme was originally based on the Mimosa Dark theme created by
|
||||
-- author "Closebox73". I have removed many of the original widgets that theme
|
||||
-- Mimosa theme used, and I added the DTOS keybinding information.
|
||||
|
||||
--==============================================================================
|
||||
|
||||
-- Size and Position settings --
|
||||
alignment = 'top_right',
|
||||
gap_x = 30,
|
||||
gap_y = 30,
|
||||
maximum_width = 300,
|
||||
minimum_height = 793,
|
||||
minimum_width = 300,
|
||||
|
||||
-- Text settings --
|
||||
use_xft = true,
|
||||
override_utf8_locale = true,
|
||||
font = 'Roboto:normal:size=9',
|
||||
|
||||
|
||||
border_inner_margin = 4, -- margin between border and text
|
||||
border_outer_margin = 0, -- margin between border and edge of window
|
||||
border_width = 0, -- border width in pixels
|
||||
|
||||
-- Color Settings --
|
||||
default_color = 'ededed',
|
||||
default_outline_color = 'white',
|
||||
default_shade_color = 'white',
|
||||
color1 = 'c5c8c6',
|
||||
color2 = 'b294bb',
|
||||
color3 = '70c0ba',
|
||||
color4 = '4d4d4d',
|
||||
color5 = 'b5bd68',
|
||||
|
||||
-- Window Settings --
|
||||
background = false,
|
||||
border_width = 1,
|
||||
draw_borders = false,
|
||||
draw_graph_borders = false,
|
||||
draw_outline = false,
|
||||
draw_shades = false,
|
||||
own_window = true,
|
||||
own_window_colour = '000000',
|
||||
own_window_class = 'Conky',
|
||||
own_window_argb_visual = false,
|
||||
own_window_type = 'override',
|
||||
own_window_transparent = true,
|
||||
own_window_hints = 'undecorated,below,sticky,skip_taskbar,skip_pager',
|
||||
stippled_borders = 0,
|
||||
|
||||
-- Others --
|
||||
cpu_avg_samples = 2,
|
||||
net_avg_samples = 2,
|
||||
double_buffer = true,
|
||||
out_to_console = false,
|
||||
out_to_stderr = false,
|
||||
extra_newline = false,
|
||||
update_interval = 1,
|
||||
uppercase = false,
|
||||
use_spacer = 'none',
|
||||
show_graph_scale = false,
|
||||
show_graph_range = false,
|
||||
lua_load = '~/.config/conky/qtile/01/scripts/TomorrowNight.lua',
|
||||
lua_draw_hook_pre = 'ring_stats',
|
||||
}
|
||||
|
||||
conky.text = [[
|
||||
${image ~/.config/conky/qtile/01/bg/TomorrowNight.png -s 300x763 -p 0,35}
|
||||
${alignc}${voffset 26}${color3}${font Raleway:bold:size=40}${time %H:%M}${font}${color}
|
||||
${alignc}${voffset 5}${font Raleway:size=14}${time %A, %B %d}
|
||||
${offset 34}${voffset 90}${color}${font Bebas Neue:size=18}${cpu cpu0}%${goto 104}${memperc}%${goto 180}${battery_percent BAT0}%${goto 230}${execi 2 ~/.config/conky/qtile/01/scripts/cputemp.sh}
|
||||
${offset 24}${voffset -2}${color}${font Raleway:size=10}/ :${goto 170}${font Raleway:size=10}/home :
|
||||
${offset 24}${color3}${font Raleway:size=9}${fs_bar 10,111}${goto 170}${color3}${font Raleway:size=9}${fs_bar 10,111 /home}
|
||||
${offset 24}${color}${font Raleway:size=9}${fs_used} / ${fs_size}${goto 170}${color}${font Raleway:size=8}${fs_used /home} / ${fs_size /home}${font}
|
||||
${voffset 32}${color5}${alignc}${font Raleway:bold:size=12}QTILE KEYBINDINGS${font}${color}
|
||||
${alignc}${color4}----------------------------------------------------------------------------${color}
|
||||
${offset 24}${color1}SUPER + [RET]${alignr}${offset -24}${color2}open terminal${color}
|
||||
${offset 24}${color1}SUPER + b${alignr}${offset -24}${color2}open browser${color}
|
||||
${offset 24}${color1}SUPER + SHIFT + [RET]${alignr}${offset -24}${color2}run prompt${color}
|
||||
${offset 24}${color1}SUPER + SHIFT + c${alignr}${offset -24}${color2}close window${color}
|
||||
${offset 24}${color1}SUPER + h/j/k/l${alignr}${offset -24}${color2}move win focus${color}
|
||||
${offset 24}${color1}SUPER + SHIFT + h/j/k/l${alignr}${offset -24}${color2}move window${color}
|
||||
${offset 24}${color1}SUPER + [1-9]${alignr}${offset -24}${color2}switch workspace${color}
|
||||
${offset 24}${color1}SUPER + SHIFT + [1-9]${alignr}${offset -24}${color2}send window${color}
|
||||
${offset 24}${color1}SUPER + =/-${alignr}${offset -24}${color2}shrink/expand${color}
|
||||
${alignc}${color4}----------------------------------------------------------------------------${color}
|
||||
${offset 24}${color1}SUPER + e, e${alignr}${offset -24}${color2}launch emacs${color}
|
||||
${offset 24}${color1}SUPER + e, b${alignr}${offset -24}${color2}ibuffer${color}
|
||||
${offset 24}${color1}SUPER + e, d${alignr}${offset -24}${color2}dired${color}
|
||||
${offset 24}${color1}SUPER + e, s${alignr}${offset -24}${color2}eshell${color}
|
||||
${offset 24}${color1}SUPER + e, v${alignr}${offset -24}${color2}vterm${color}
|
||||
${alignc}${color4}----------------------------------------------------------------------------${color}
|
||||
${offset 24}${color1}SUPER + p, h${alignr}${offset -24}${color2}dm-hub${color}
|
||||
${offset 24}${color1}SUPER + p, b${alignr}${offset -24}${color2}dm-setbg${color}
|
||||
${offset 24}${color1}SUPER + p, m${alignr}${offset -24}${color2}dm-man${color}
|
||||
${offset 24}${color1}SUPER + p, o${alignr}${offset -24}${color2}dm-bookman${color}
|
||||
${offset 24}${color1}SUPER + p, s${alignr}${offset -24}${color2}dm-websearch${color}
|
||||
${alignc}${color4}----------------------------------------------------------------------------${color}
|
||||
${offset 24}${color1}SUPER + SHIFT + r${alignr}${offset -24}${color2}restart qtile${color}
|
||||
${offset 24}${color1}SUPER + SHIFT + q${alignr}${offset -24}${color2}quit qtile${color}
|
||||
]]
|
||||
BIN
.config/conky/qtile/03/bg/DoomOne.png
Normal file
|
After Width: | Height: | Size: 33 KiB |
BIN
.config/conky/qtile/03/bg/Dracula.png
Normal file
|
After Width: | Height: | Size: 32 KiB |
BIN
.config/conky/qtile/03/bg/GruvboxDark.png
Normal file
|
After Width: | Height: | Size: 32 KiB |
BIN
.config/conky/qtile/03/bg/MonokaiPro.png
Normal file
|
After Width: | Height: | Size: 32 KiB |
BIN
.config/conky/qtile/03/bg/Nord.png
Normal file
|
After Width: | Height: | Size: 32 KiB |
BIN
.config/conky/qtile/03/bg/OceanicNext.png
Normal file
|
After Width: | Height: | Size: 32 KiB |
BIN
.config/conky/qtile/03/bg/Palenight.png
Normal file
|
After Width: | Height: | Size: 32 KiB |
BIN
.config/conky/qtile/03/bg/SolarizedDark.png
Normal file
|
After Width: | Height: | Size: 32 KiB |
BIN
.config/conky/qtile/03/bg/SolarizedLight.png
Normal file
|
After Width: | Height: | Size: 31 KiB |
BIN
.config/conky/qtile/03/bg/TomorrowNight.png
Normal file
|
After Width: | Height: | Size: 32 KiB |
BIN
.config/conky/qtile/03/bg/bg.png
Normal file
|
After Width: | Height: | Size: 28 KiB |
BIN
.config/conky/qtile/03/fonts/Abel.zip
Normal file
BIN
.config/conky/qtile/03/fonts/BebasNeue-Regular.ttf
Normal file
BIN
.config/conky/qtile/03/fonts/Material.ttf
Executable file
BIN
.config/conky/qtile/03/fonts/feather.ttf
Normal file
141
.config/conky/qtile/03/scripts/DoomOne.lua
Normal file
@@ -0,0 +1,141 @@
|
||||
--[[
|
||||
Ring Meters by londonali1010 (2009)
|
||||
|
||||
This script draws percentage meters as rings. It is fully customisable; all options are described in the script.
|
||||
|
||||
IMPORTANT: if you are using the 'cpu' function, it will cause a segmentation fault if it tries to draw a ring straight away. The if statement near the end of the script uses a delay to make sure that this doesn't happen. It calculates the length of the delay by the number of updates since Conky started. Generally, a value of 5s is long enough, so if you update Conky every 1s, use update_num > 5 in that if statement (the default). If you only update Conky every 2s, you should change it to update_num > 3; conversely if you update Conky every 0.5s, you should use update_num > 10. ALSO, if you change your Conky, is it best to use "killall conky; conky" to update it, otherwise the update_num will not be reset and you will get an error.
|
||||
|
||||
To call this script in Conky, use the following (assuming that you save this script to ~/scripts/rings.lua):
|
||||
lua_load ~/scripts/rings-v1.2.1.lua
|
||||
lua_draw_hook_pre ring_stats
|
||||
|
||||
Changelog:
|
||||
+ v1.2.1 -- Fixed minor bug that caused script to crash if conky_parse() returns a nil value (20.10.2009)
|
||||
+ v1.2 -- Added option for the ending angle of the rings (07.10.2009)
|
||||
+ v1.1 -- Added options for the starting angle of the rings, and added the "max" variable, to allow for variables that output a numerical value rather than a percentage (29.09.2009)
|
||||
+ v1.0 -- Original release (28.09.2009)
|
||||
]]
|
||||
|
||||
settings_table = {
|
||||
|
||||
{
|
||||
name='cpu',
|
||||
arg='cpu0',
|
||||
max=100,
|
||||
bg_colour=0xffffff,
|
||||
bg_alpha=0.2,
|
||||
fg_colour=0xc678dd,
|
||||
fg_alpha=1,
|
||||
x=49.5, y=182.3,
|
||||
radius=25,
|
||||
thickness=7,
|
||||
start_angle=0,
|
||||
end_angle=360,
|
||||
},
|
||||
{
|
||||
name='memperc',
|
||||
arg='',
|
||||
max=100,
|
||||
bg_colour=0xffffff,
|
||||
bg_alpha=0.2,
|
||||
fg_colour=0x98be65,
|
||||
fg_alpha=1,
|
||||
x=119.5, y=182.3,
|
||||
radius=25,
|
||||
thickness=7,
|
||||
start_angle=0,
|
||||
end_angle=360
|
||||
},
|
||||
{
|
||||
name='battery_percent',
|
||||
arg='BAT0',
|
||||
max=100,
|
||||
bg_colour=0xffffff,
|
||||
bg_alpha=0.2,
|
||||
fg_colour=0xda8548,
|
||||
fg_alpha=1,
|
||||
x=190, y=182.3,
|
||||
radius=25,
|
||||
thickness=7,
|
||||
start_angle=0,
|
||||
end_angle=360
|
||||
},
|
||||
{
|
||||
name='hwmon temp 1',
|
||||
arg='',
|
||||
max=100,
|
||||
bg_colour=0xffffff,
|
||||
bg_alpha=0.2,
|
||||
fg_colour=0xff6c6b,
|
||||
fg_alpha=1,
|
||||
x=259.5, y=182.3,
|
||||
radius=25,
|
||||
thickness=7,
|
||||
start_angle=0,
|
||||
end_angle=360,
|
||||
},
|
||||
|
||||
|
||||
}
|
||||
|
||||
require 'cairo'
|
||||
|
||||
function rgb_to_r_g_b(colour,alpha)
|
||||
return ((colour / 0x10000) % 0x100) / 255., ((colour / 0x100) % 0x100) / 255., (colour % 0x100) / 255., alpha
|
||||
end
|
||||
|
||||
function draw_ring(cr,t,pt)
|
||||
local w,h=conky_window.width,conky_window.height
|
||||
|
||||
local xc,yc,ring_r,ring_w,sa,ea=pt['x'],pt['y'],pt['radius'],pt['thickness'],pt['start_angle'],pt['end_angle']
|
||||
local bgc, bga, fgc, fga=pt['bg_colour'], pt['bg_alpha'], pt['fg_colour'], pt['fg_alpha']
|
||||
|
||||
local angle_0=sa*(2*math.pi/360)-math.pi/2
|
||||
local angle_f=ea*(2*math.pi/360)-math.pi/2
|
||||
local t_arc=t*(angle_f-angle_0)
|
||||
|
||||
-- Draw background ring
|
||||
|
||||
cairo_arc(cr,xc,yc,ring_r,angle_0,angle_f)
|
||||
cairo_set_source_rgba(cr,rgb_to_r_g_b(bgc,bga))
|
||||
cairo_set_line_width(cr,ring_w)
|
||||
cairo_stroke(cr)
|
||||
|
||||
-- Draw indicator ring
|
||||
|
||||
cairo_arc(cr,xc,yc,ring_r,angle_0,angle_0+t_arc)
|
||||
cairo_set_source_rgba(cr,rgb_to_r_g_b(fgc,fga))
|
||||
cairo_stroke(cr)
|
||||
end
|
||||
|
||||
function conky_ring_stats()
|
||||
local function setup_rings(cr,pt)
|
||||
local str=''
|
||||
local value=0
|
||||
|
||||
str=string.format('${%s %s}',pt['name'],pt['arg'])
|
||||
str=conky_parse(str)
|
||||
|
||||
value=tonumber(str)
|
||||
if value == nil then value = 0 end
|
||||
pct=value/pt['max']
|
||||
|
||||
draw_ring(cr,pct,pt)
|
||||
end
|
||||
|
||||
if conky_window==nil then return end
|
||||
local cs=cairo_xlib_surface_create(conky_window.display,conky_window.drawable,conky_window.visual, conky_window.width,conky_window.height)
|
||||
|
||||
local cr=cairo_create(cs)
|
||||
|
||||
local updates=conky_parse('${updates}')
|
||||
update_num=tonumber(updates)
|
||||
|
||||
if update_num>5 then
|
||||
for i in pairs(settings_table) do
|
||||
setup_rings(cr,settings_table[i])
|
||||
end
|
||||
end
|
||||
cairo_surface_destroy(cs)
|
||||
cairo_destroy(cr)
|
||||
end
|
||||
141
.config/conky/qtile/03/scripts/Dracula.lua
Normal file
@@ -0,0 +1,141 @@
|
||||
--[[
|
||||
Ring Meters by londonali1010 (2009)
|
||||
|
||||
This script draws percentage meters as rings. It is fully customisable; all options are described in the script.
|
||||
|
||||
IMPORTANT: if you are using the 'cpu' function, it will cause a segmentation fault if it tries to draw a ring straight away. The if statement near the end of the script uses a delay to make sure that this doesn't happen. It calculates the length of the delay by the number of updates since Conky started. Generally, a value of 5s is long enough, so if you update Conky every 1s, use update_num > 5 in that if statement (the default). If you only update Conky every 2s, you should change it to update_num > 3; conversely if you update Conky every 0.5s, you should use update_num > 10. ALSO, if you change your Conky, is it best to use "killall conky; conky" to update it, otherwise the update_num will not be reset and you will get an error.
|
||||
|
||||
To call this script in Conky, use the following (assuming that you save this script to ~/scripts/rings.lua):
|
||||
lua_load ~/scripts/rings-v1.2.1.lua
|
||||
lua_draw_hook_pre ring_stats
|
||||
|
||||
Changelog:
|
||||
+ v1.2.1 -- Fixed minor bug that caused script to crash if conky_parse() returns a nil value (20.10.2009)
|
||||
+ v1.2 -- Added option for the ending angle of the rings (07.10.2009)
|
||||
+ v1.1 -- Added options for the starting angle of the rings, and added the "max" variable, to allow for variables that output a numerical value rather than a percentage (29.09.2009)
|
||||
+ v1.0 -- Original release (28.09.2009)
|
||||
]]
|
||||
|
||||
settings_table = {
|
||||
|
||||
{
|
||||
name='cpu',
|
||||
arg='cpu0',
|
||||
max=100,
|
||||
bg_colour=0xffffff,
|
||||
bg_alpha=0.2,
|
||||
fg_colour=0xbd93f9,
|
||||
fg_alpha=1,
|
||||
x=49.5, y=182.3,
|
||||
radius=25,
|
||||
thickness=7,
|
||||
start_angle=0,
|
||||
end_angle=360,
|
||||
},
|
||||
{
|
||||
name='memperc',
|
||||
arg='',
|
||||
max=100,
|
||||
bg_colour=0xffffff,
|
||||
bg_alpha=0.2,
|
||||
fg_colour=0x50fa7b,
|
||||
fg_alpha=1,
|
||||
x=119.5, y=182.3,
|
||||
radius=25,
|
||||
thickness=7,
|
||||
start_angle=0,
|
||||
end_angle=360
|
||||
},
|
||||
{
|
||||
name='battery_percent',
|
||||
arg='BAT0',
|
||||
max=100,
|
||||
bg_colour=0xffffff,
|
||||
bg_alpha=0.2,
|
||||
fg_colour=0xf1fa8c,
|
||||
fg_alpha=1,
|
||||
x=190, y=182.3,
|
||||
radius=25,
|
||||
thickness=7,
|
||||
start_angle=0,
|
||||
end_angle=360
|
||||
},
|
||||
{
|
||||
name='hwmon temp 1',
|
||||
arg='',
|
||||
max=100,
|
||||
bg_colour=0xffffff,
|
||||
bg_alpha=0.2,
|
||||
fg_colour=0xff79c6,
|
||||
fg_alpha=1,
|
||||
x=259.5, y=182.3,
|
||||
radius=25,
|
||||
thickness=7,
|
||||
start_angle=0,
|
||||
end_angle=360,
|
||||
},
|
||||
|
||||
|
||||
}
|
||||
|
||||
require 'cairo'
|
||||
|
||||
function rgb_to_r_g_b(colour,alpha)
|
||||
return ((colour / 0x10000) % 0x100) / 255., ((colour / 0x100) % 0x100) / 255., (colour % 0x100) / 255., alpha
|
||||
end
|
||||
|
||||
function draw_ring(cr,t,pt)
|
||||
local w,h=conky_window.width,conky_window.height
|
||||
|
||||
local xc,yc,ring_r,ring_w,sa,ea=pt['x'],pt['y'],pt['radius'],pt['thickness'],pt['start_angle'],pt['end_angle']
|
||||
local bgc, bga, fgc, fga=pt['bg_colour'], pt['bg_alpha'], pt['fg_colour'], pt['fg_alpha']
|
||||
|
||||
local angle_0=sa*(2*math.pi/360)-math.pi/2
|
||||
local angle_f=ea*(2*math.pi/360)-math.pi/2
|
||||
local t_arc=t*(angle_f-angle_0)
|
||||
|
||||
-- Draw background ring
|
||||
|
||||
cairo_arc(cr,xc,yc,ring_r,angle_0,angle_f)
|
||||
cairo_set_source_rgba(cr,rgb_to_r_g_b(bgc,bga))
|
||||
cairo_set_line_width(cr,ring_w)
|
||||
cairo_stroke(cr)
|
||||
|
||||
-- Draw indicator ring
|
||||
|
||||
cairo_arc(cr,xc,yc,ring_r,angle_0,angle_0+t_arc)
|
||||
cairo_set_source_rgba(cr,rgb_to_r_g_b(fgc,fga))
|
||||
cairo_stroke(cr)
|
||||
end
|
||||
|
||||
function conky_ring_stats()
|
||||
local function setup_rings(cr,pt)
|
||||
local str=''
|
||||
local value=0
|
||||
|
||||
str=string.format('${%s %s}',pt['name'],pt['arg'])
|
||||
str=conky_parse(str)
|
||||
|
||||
value=tonumber(str)
|
||||
if value == nil then value = 0 end
|
||||
pct=value/pt['max']
|
||||
|
||||
draw_ring(cr,pct,pt)
|
||||
end
|
||||
|
||||
if conky_window==nil then return end
|
||||
local cs=cairo_xlib_surface_create(conky_window.display,conky_window.drawable,conky_window.visual, conky_window.width,conky_window.height)
|
||||
|
||||
local cr=cairo_create(cs)
|
||||
|
||||
local updates=conky_parse('${updates}')
|
||||
update_num=tonumber(updates)
|
||||
|
||||
if update_num>5 then
|
||||
for i in pairs(settings_table) do
|
||||
setup_rings(cr,settings_table[i])
|
||||
end
|
||||
end
|
||||
cairo_surface_destroy(cs)
|
||||
cairo_destroy(cr)
|
||||
end
|
||||
141
.config/conky/qtile/03/scripts/GruvboxDark.lua
Normal file
@@ -0,0 +1,141 @@
|
||||
--[[
|
||||
Ring Meters by londonali1010 (2009)
|
||||
|
||||
This script draws percentage meters as rings. It is fully customisable; all options are described in the script.
|
||||
|
||||
IMPORTANT: if you are using the 'cpu' function, it will cause a segmentation fault if it tries to draw a ring straight away. The if statement near the end of the script uses a delay to make sure that this doesn't happen. It calculates the length of the delay by the number of updates since Conky started. Generally, a value of 5s is long enough, so if you update Conky every 1s, use update_num > 5 in that if statement (the default). If you only update Conky every 2s, you should change it to update_num > 3; conversely if you update Conky every 0.5s, you should use update_num > 10. ALSO, if you change your Conky, is it best to use "killall conky; conky" to update it, otherwise the update_num will not be reset and you will get an error.
|
||||
|
||||
To call this script in Conky, use the following (assuming that you save this script to ~/scripts/rings.lua):
|
||||
lua_load ~/scripts/rings-v1.2.1.lua
|
||||
lua_draw_hook_pre ring_stats
|
||||
|
||||
Changelog:
|
||||
+ v1.2.1 -- Fixed minor bug that caused script to crash if conky_parse() returns a nil value (20.10.2009)
|
||||
+ v1.2 -- Added option for the ending angle of the rings (07.10.2009)
|
||||
+ v1.1 -- Added options for the starting angle of the rings, and added the "max" variable, to allow for variables that output a numerical value rather than a percentage (29.09.2009)
|
||||
+ v1.0 -- Original release (28.09.2009)
|
||||
]]
|
||||
|
||||
settings_table = {
|
||||
|
||||
{
|
||||
name='cpu',
|
||||
arg='cpu0',
|
||||
max=100,
|
||||
bg_colour=0xffffff,
|
||||
bg_alpha=0.2,
|
||||
fg_colour=0x83a598,
|
||||
fg_alpha=1,
|
||||
x=49.5, y=182.3,
|
||||
radius=25,
|
||||
thickness=7,
|
||||
start_angle=0,
|
||||
end_angle=360,
|
||||
},
|
||||
{
|
||||
name='memperc',
|
||||
arg='',
|
||||
max=100,
|
||||
bg_colour=0xffffff,
|
||||
bg_alpha=0.2,
|
||||
fg_colour=0x98971a,
|
||||
fg_alpha=1,
|
||||
x=119.5, y=182.3,
|
||||
radius=25,
|
||||
thickness=7,
|
||||
start_angle=0,
|
||||
end_angle=360
|
||||
},
|
||||
{
|
||||
name='battery_percent',
|
||||
arg='BAT0',
|
||||
max=100,
|
||||
bg_colour=0xffffff,
|
||||
bg_alpha=0.2,
|
||||
fg_colour=0xd79921,
|
||||
fg_alpha=1,
|
||||
x=190, y=182.3,
|
||||
radius=25,
|
||||
thickness=7,
|
||||
start_angle=0,
|
||||
end_angle=360
|
||||
},
|
||||
{
|
||||
name='hwmon temp 1',
|
||||
arg='',
|
||||
max=100,
|
||||
bg_colour=0xffffff,
|
||||
bg_alpha=0.2,
|
||||
fg_colour=0xfb4934,
|
||||
fg_alpha=1,
|
||||
x=259.5, y=182.3,
|
||||
radius=25,
|
||||
thickness=7,
|
||||
start_angle=0,
|
||||
end_angle=360,
|
||||
},
|
||||
|
||||
|
||||
}
|
||||
|
||||
require 'cairo'
|
||||
|
||||
function rgb_to_r_g_b(colour,alpha)
|
||||
return ((colour / 0x10000) % 0x100) / 255., ((colour / 0x100) % 0x100) / 255., (colour % 0x100) / 255., alpha
|
||||
end
|
||||
|
||||
function draw_ring(cr,t,pt)
|
||||
local w,h=conky_window.width,conky_window.height
|
||||
|
||||
local xc,yc,ring_r,ring_w,sa,ea=pt['x'],pt['y'],pt['radius'],pt['thickness'],pt['start_angle'],pt['end_angle']
|
||||
local bgc, bga, fgc, fga=pt['bg_colour'], pt['bg_alpha'], pt['fg_colour'], pt['fg_alpha']
|
||||
|
||||
local angle_0=sa*(2*math.pi/360)-math.pi/2
|
||||
local angle_f=ea*(2*math.pi/360)-math.pi/2
|
||||
local t_arc=t*(angle_f-angle_0)
|
||||
|
||||
-- Draw background ring
|
||||
|
||||
cairo_arc(cr,xc,yc,ring_r,angle_0,angle_f)
|
||||
cairo_set_source_rgba(cr,rgb_to_r_g_b(bgc,bga))
|
||||
cairo_set_line_width(cr,ring_w)
|
||||
cairo_stroke(cr)
|
||||
|
||||
-- Draw indicator ring
|
||||
|
||||
cairo_arc(cr,xc,yc,ring_r,angle_0,angle_0+t_arc)
|
||||
cairo_set_source_rgba(cr,rgb_to_r_g_b(fgc,fga))
|
||||
cairo_stroke(cr)
|
||||
end
|
||||
|
||||
function conky_ring_stats()
|
||||
local function setup_rings(cr,pt)
|
||||
local str=''
|
||||
local value=0
|
||||
|
||||
str=string.format('${%s %s}',pt['name'],pt['arg'])
|
||||
str=conky_parse(str)
|
||||
|
||||
value=tonumber(str)
|
||||
if value == nil then value = 0 end
|
||||
pct=value/pt['max']
|
||||
|
||||
draw_ring(cr,pct,pt)
|
||||
end
|
||||
|
||||
if conky_window==nil then return end
|
||||
local cs=cairo_xlib_surface_create(conky_window.display,conky_window.drawable,conky_window.visual, conky_window.width,conky_window.height)
|
||||
|
||||
local cr=cairo_create(cs)
|
||||
|
||||
local updates=conky_parse('${updates}')
|
||||
update_num=tonumber(updates)
|
||||
|
||||
if update_num>5 then
|
||||
for i in pairs(settings_table) do
|
||||
setup_rings(cr,settings_table[i])
|
||||
end
|
||||
end
|
||||
cairo_surface_destroy(cs)
|
||||
cairo_destroy(cr)
|
||||
end
|
||||
141
.config/conky/qtile/03/scripts/MonokaiPro.lua
Normal file
@@ -0,0 +1,141 @@
|
||||
--[[
|
||||
Ring Meters by londonali1010 (2009)
|
||||
|
||||
This script draws percentage meters as rings. It is fully customisable; all options are described in the script.
|
||||
|
||||
IMPORTANT: if you are using the 'cpu' function, it will cause a segmentation fault if it tries to draw a ring straight away. The if statement near the end of the script uses a delay to make sure that this doesn't happen. It calculates the length of the delay by the number of updates since Conky started. Generally, a value of 5s is long enough, so if you update Conky every 1s, use update_num > 5 in that if statement (the default). If you only update Conky every 2s, you should change it to update_num > 3; conversely if you update Conky every 0.5s, you should use update_num > 10. ALSO, if you change your Conky, is it best to use "killall conky; conky" to update it, otherwise the update_num will not be reset and you will get an error.
|
||||
|
||||
To call this script in Conky, use the following (assuming that you save this script to ~/scripts/rings.lua):
|
||||
lua_load ~/scripts/rings-v1.2.1.lua
|
||||
lua_draw_hook_pre ring_stats
|
||||
|
||||
Changelog:
|
||||
+ v1.2.1 -- Fixed minor bug that caused script to crash if conky_parse() returns a nil value (20.10.2009)
|
||||
+ v1.2 -- Added option for the ending angle of the rings (07.10.2009)
|
||||
+ v1.1 -- Added options for the starting angle of the rings, and added the "max" variable, to allow for variables that output a numerical value rather than a percentage (29.09.2009)
|
||||
+ v1.0 -- Original release (28.09.2009)
|
||||
]]
|
||||
|
||||
settings_table = {
|
||||
|
||||
{
|
||||
name='cpu',
|
||||
arg='cpu0',
|
||||
max=100,
|
||||
bg_colour=0xffffff,
|
||||
bg_alpha=0.2,
|
||||
fg_colour=0x78dce8,
|
||||
fg_alpha=1,
|
||||
x=49.5, y=182.3,
|
||||
radius=25,
|
||||
thickness=7,
|
||||
start_angle=0,
|
||||
end_angle=360,
|
||||
},
|
||||
{
|
||||
name='memperc',
|
||||
arg='',
|
||||
max=100,
|
||||
bg_colour=0xffffff,
|
||||
bg_alpha=0.2,
|
||||
fg_colour=0xa9dc76,
|
||||
fg_alpha=1,
|
||||
x=119.5, y=182.3,
|
||||
radius=25,
|
||||
thickness=7,
|
||||
start_angle=0,
|
||||
end_angle=360
|
||||
},
|
||||
{
|
||||
name='battery_percent',
|
||||
arg='BAT0',
|
||||
max=100,
|
||||
bg_colour=0xffffff,
|
||||
bg_alpha=0.2,
|
||||
fg_colour=0xfc9867,
|
||||
fg_alpha=1,
|
||||
x=190, y=182.3,
|
||||
radius=25,
|
||||
thickness=7,
|
||||
start_angle=0,
|
||||
end_angle=360
|
||||
},
|
||||
{
|
||||
name='hwmon temp 1',
|
||||
arg='',
|
||||
max=100,
|
||||
bg_colour=0xffffff,
|
||||
bg_alpha=0.2,
|
||||
fg_colour=0xff6188,
|
||||
fg_alpha=1,
|
||||
x=259.5, y=182.3,
|
||||
radius=25,
|
||||
thickness=7,
|
||||
start_angle=0,
|
||||
end_angle=360,
|
||||
},
|
||||
|
||||
|
||||
}
|
||||
|
||||
require 'cairo'
|
||||
|
||||
function rgb_to_r_g_b(colour,alpha)
|
||||
return ((colour / 0x10000) % 0x100) / 255., ((colour / 0x100) % 0x100) / 255., (colour % 0x100) / 255., alpha
|
||||
end
|
||||
|
||||
function draw_ring(cr,t,pt)
|
||||
local w,h=conky_window.width,conky_window.height
|
||||
|
||||
local xc,yc,ring_r,ring_w,sa,ea=pt['x'],pt['y'],pt['radius'],pt['thickness'],pt['start_angle'],pt['end_angle']
|
||||
local bgc, bga, fgc, fga=pt['bg_colour'], pt['bg_alpha'], pt['fg_colour'], pt['fg_alpha']
|
||||
|
||||
local angle_0=sa*(2*math.pi/360)-math.pi/2
|
||||
local angle_f=ea*(2*math.pi/360)-math.pi/2
|
||||
local t_arc=t*(angle_f-angle_0)
|
||||
|
||||
-- Draw background ring
|
||||
|
||||
cairo_arc(cr,xc,yc,ring_r,angle_0,angle_f)
|
||||
cairo_set_source_rgba(cr,rgb_to_r_g_b(bgc,bga))
|
||||
cairo_set_line_width(cr,ring_w)
|
||||
cairo_stroke(cr)
|
||||
|
||||
-- Draw indicator ring
|
||||
|
||||
cairo_arc(cr,xc,yc,ring_r,angle_0,angle_0+t_arc)
|
||||
cairo_set_source_rgba(cr,rgb_to_r_g_b(fgc,fga))
|
||||
cairo_stroke(cr)
|
||||
end
|
||||
|
||||
function conky_ring_stats()
|
||||
local function setup_rings(cr,pt)
|
||||
local str=''
|
||||
local value=0
|
||||
|
||||
str=string.format('${%s %s}',pt['name'],pt['arg'])
|
||||
str=conky_parse(str)
|
||||
|
||||
value=tonumber(str)
|
||||
if value == nil then value = 0 end
|
||||
pct=value/pt['max']
|
||||
|
||||
draw_ring(cr,pct,pt)
|
||||
end
|
||||
|
||||
if conky_window==nil then return end
|
||||
local cs=cairo_xlib_surface_create(conky_window.display,conky_window.drawable,conky_window.visual, conky_window.width,conky_window.height)
|
||||
|
||||
local cr=cairo_create(cs)
|
||||
|
||||
local updates=conky_parse('${updates}')
|
||||
update_num=tonumber(updates)
|
||||
|
||||
if update_num>5 then
|
||||
for i in pairs(settings_table) do
|
||||
setup_rings(cr,settings_table[i])
|
||||
end
|
||||
end
|
||||
cairo_surface_destroy(cs)
|
||||
cairo_destroy(cr)
|
||||
end
|
||||
141
.config/conky/qtile/03/scripts/Nord.lua
Normal file
@@ -0,0 +1,141 @@
|
||||
--[[
|
||||
Ring Meters by londonali1010 (2009)
|
||||
|
||||
This script draws percentage meters as rings. It is fully customisable; all options are described in the script.
|
||||
|
||||
IMPORTANT: if you are using the 'cpu' function, it will cause a segmentation fault if it tries to draw a ring straight away. The if statement near the end of the script uses a delay to make sure that this doesn't happen. It calculates the length of the delay by the number of updates since Conky started. Generally, a value of 5s is long enough, so if you update Conky every 1s, use update_num > 5 in that if statement (the default). If you only update Conky every 2s, you should change it to update_num > 3; conversely if you update Conky every 0.5s, you should use update_num > 10. ALSO, if you change your Conky, is it best to use "killall conky; conky" to update it, otherwise the update_num will not be reset and you will get an error.
|
||||
|
||||
To call this script in Conky, use the following (assuming that you save this script to ~/scripts/rings.lua):
|
||||
lua_load ~/scripts/rings-v1.2.1.lua
|
||||
lua_draw_hook_pre ring_stats
|
||||
|
||||
Changelog:
|
||||
+ v1.2.1 -- Fixed minor bug that caused script to crash if conky_parse() returns a nil value (20.10.2009)
|
||||
+ v1.2 -- Added option for the ending angle of the rings (07.10.2009)
|
||||
+ v1.1 -- Added options for the starting angle of the rings, and added the "max" variable, to allow for variables that output a numerical value rather than a percentage (29.09.2009)
|
||||
+ v1.0 -- Original release (28.09.2009)
|
||||
]]
|
||||
|
||||
settings_table = {
|
||||
|
||||
{
|
||||
name='cpu',
|
||||
arg='cpu0',
|
||||
max=100,
|
||||
bg_colour=0xffffff,
|
||||
bg_alpha=0.2,
|
||||
fg_colour=0x88c0d0,
|
||||
fg_alpha=1,
|
||||
x=49.5, y=182.3,
|
||||
radius=25,
|
||||
thickness=7,
|
||||
start_angle=0,
|
||||
end_angle=360,
|
||||
},
|
||||
{
|
||||
name='memperc',
|
||||
arg='',
|
||||
max=100,
|
||||
bg_colour=0xffffff,
|
||||
bg_alpha=0.2,
|
||||
fg_colour=0xa3be8c,
|
||||
fg_alpha=1,
|
||||
x=119.5, y=182.3,
|
||||
radius=25,
|
||||
thickness=7,
|
||||
start_angle=0,
|
||||
end_angle=360
|
||||
},
|
||||
{
|
||||
name='battery_percent',
|
||||
arg='BAT0',
|
||||
max=100,
|
||||
bg_colour=0xffffff,
|
||||
bg_alpha=0.2,
|
||||
fg_colour=0xebcb8b,
|
||||
fg_alpha=1,
|
||||
x=190, y=182.3,
|
||||
radius=25,
|
||||
thickness=7,
|
||||
start_angle=0,
|
||||
end_angle=360
|
||||
},
|
||||
{
|
||||
name='hwmon temp 1',
|
||||
arg='',
|
||||
max=100,
|
||||
bg_colour=0xffffff,
|
||||
bg_alpha=0.2,
|
||||
fg_colour=0xbf616a,
|
||||
fg_alpha=1,
|
||||
x=259.5, y=182.3,
|
||||
radius=25,
|
||||
thickness=7,
|
||||
start_angle=0,
|
||||
end_angle=360,
|
||||
},
|
||||
|
||||
|
||||
}
|
||||
|
||||
require 'cairo'
|
||||
|
||||
function rgb_to_r_g_b(colour,alpha)
|
||||
return ((colour / 0x10000) % 0x100) / 255., ((colour / 0x100) % 0x100) / 255., (colour % 0x100) / 255., alpha
|
||||
end
|
||||
|
||||
function draw_ring(cr,t,pt)
|
||||
local w,h=conky_window.width,conky_window.height
|
||||
|
||||
local xc,yc,ring_r,ring_w,sa,ea=pt['x'],pt['y'],pt['radius'],pt['thickness'],pt['start_angle'],pt['end_angle']
|
||||
local bgc, bga, fgc, fga=pt['bg_colour'], pt['bg_alpha'], pt['fg_colour'], pt['fg_alpha']
|
||||
|
||||
local angle_0=sa*(2*math.pi/360)-math.pi/2
|
||||
local angle_f=ea*(2*math.pi/360)-math.pi/2
|
||||
local t_arc=t*(angle_f-angle_0)
|
||||
|
||||
-- Draw background ring
|
||||
|
||||
cairo_arc(cr,xc,yc,ring_r,angle_0,angle_f)
|
||||
cairo_set_source_rgba(cr,rgb_to_r_g_b(bgc,bga))
|
||||
cairo_set_line_width(cr,ring_w)
|
||||
cairo_stroke(cr)
|
||||
|
||||
-- Draw indicator ring
|
||||
|
||||
cairo_arc(cr,xc,yc,ring_r,angle_0,angle_0+t_arc)
|
||||
cairo_set_source_rgba(cr,rgb_to_r_g_b(fgc,fga))
|
||||
cairo_stroke(cr)
|
||||
end
|
||||
|
||||
function conky_ring_stats()
|
||||
local function setup_rings(cr,pt)
|
||||
local str=''
|
||||
local value=0
|
||||
|
||||
str=string.format('${%s %s}',pt['name'],pt['arg'])
|
||||
str=conky_parse(str)
|
||||
|
||||
value=tonumber(str)
|
||||
if value == nil then value = 0 end
|
||||
pct=value/pt['max']
|
||||
|
||||
draw_ring(cr,pct,pt)
|
||||
end
|
||||
|
||||
if conky_window==nil then return end
|
||||
local cs=cairo_xlib_surface_create(conky_window.display,conky_window.drawable,conky_window.visual, conky_window.width,conky_window.height)
|
||||
|
||||
local cr=cairo_create(cs)
|
||||
|
||||
local updates=conky_parse('${updates}')
|
||||
update_num=tonumber(updates)
|
||||
|
||||
if update_num>5 then
|
||||
for i in pairs(settings_table) do
|
||||
setup_rings(cr,settings_table[i])
|
||||
end
|
||||
end
|
||||
cairo_surface_destroy(cs)
|
||||
cairo_destroy(cr)
|
||||
end
|
||||
141
.config/conky/qtile/03/scripts/OceanicNext.lua
Normal file
@@ -0,0 +1,141 @@
|
||||
--[[
|
||||
Ring Meters by londonali1010 (2009)
|
||||
|
||||
This script draws percentage meters as rings. It is fully customisable; all options are described in the script.
|
||||
|
||||
IMPORTANT: if you are using the 'cpu' function, it will cause a segmentation fault if it tries to draw a ring straight away. The if statement near the end of the script uses a delay to make sure that this doesn't happen. It calculates the length of the delay by the number of updates since Conky started. Generally, a value of 5s is long enough, so if you update Conky every 1s, use update_num > 5 in that if statement (the default). If you only update Conky every 2s, you should change it to update_num > 3; conversely if you update Conky every 0.5s, you should use update_num > 10. ALSO, if you change your Conky, is it best to use "killall conky; conky" to update it, otherwise the update_num will not be reset and you will get an error.
|
||||
|
||||
To call this script in Conky, use the following (assuming that you save this script to ~/scripts/rings.lua):
|
||||
lua_load ~/scripts/rings-v1.2.1.lua
|
||||
lua_draw_hook_pre ring_stats
|
||||
|
||||
Changelog:
|
||||
+ v1.2.1 -- Fixed minor bug that caused script to crash if conky_parse() returns a nil value (20.10.2009)
|
||||
+ v1.2 -- Added option for the ending angle of the rings (07.10.2009)
|
||||
+ v1.1 -- Added options for the starting angle of the rings, and added the "max" variable, to allow for variables that output a numerical value rather than a percentage (29.09.2009)
|
||||
+ v1.0 -- Original release (28.09.2009)
|
||||
]]
|
||||
|
||||
settings_table = {
|
||||
|
||||
{
|
||||
name='cpu',
|
||||
arg='cpu0',
|
||||
max=100,
|
||||
bg_colour=0xffffff,
|
||||
bg_alpha=0.2,
|
||||
fg_colour=0x5fb3b3,
|
||||
fg_alpha=1,
|
||||
x=49.5, y=182.3,
|
||||
radius=25,
|
||||
thickness=7,
|
||||
start_angle=0,
|
||||
end_angle=360,
|
||||
},
|
||||
{
|
||||
name='memperc',
|
||||
arg='',
|
||||
max=100,
|
||||
bg_colour=0xffffff,
|
||||
bg_alpha=0.2,
|
||||
fg_colour=0x99c794,
|
||||
fg_alpha=1,
|
||||
x=119.5, y=182.3,
|
||||
radius=25,
|
||||
thickness=7,
|
||||
start_angle=0,
|
||||
end_angle=360
|
||||
},
|
||||
{
|
||||
name='battery_percent',
|
||||
arg='BAT0',
|
||||
max=100,
|
||||
bg_colour=0xffffff,
|
||||
bg_alpha=0.2,
|
||||
fg_colour=0xfac863,
|
||||
fg_alpha=1,
|
||||
x=190, y=182.3,
|
||||
radius=25,
|
||||
thickness=7,
|
||||
start_angle=0,
|
||||
end_angle=360
|
||||
},
|
||||
{
|
||||
name='hwmon temp 1',
|
||||
arg='',
|
||||
max=100,
|
||||
bg_colour=0xffffff,
|
||||
bg_alpha=0.2,
|
||||
fg_colour=0xec5f67,
|
||||
fg_alpha=1,
|
||||
x=259.5, y=182.3,
|
||||
radius=25,
|
||||
thickness=7,
|
||||
start_angle=0,
|
||||
end_angle=360,
|
||||
},
|
||||
|
||||
|
||||
}
|
||||
|
||||
require 'cairo'
|
||||
|
||||
function rgb_to_r_g_b(colour,alpha)
|
||||
return ((colour / 0x10000) % 0x100) / 255., ((colour / 0x100) % 0x100) / 255., (colour % 0x100) / 255., alpha
|
||||
end
|
||||
|
||||
function draw_ring(cr,t,pt)
|
||||
local w,h=conky_window.width,conky_window.height
|
||||
|
||||
local xc,yc,ring_r,ring_w,sa,ea=pt['x'],pt['y'],pt['radius'],pt['thickness'],pt['start_angle'],pt['end_angle']
|
||||
local bgc, bga, fgc, fga=pt['bg_colour'], pt['bg_alpha'], pt['fg_colour'], pt['fg_alpha']
|
||||
|
||||
local angle_0=sa*(2*math.pi/360)-math.pi/2
|
||||
local angle_f=ea*(2*math.pi/360)-math.pi/2
|
||||
local t_arc=t*(angle_f-angle_0)
|
||||
|
||||
-- Draw background ring
|
||||
|
||||
cairo_arc(cr,xc,yc,ring_r,angle_0,angle_f)
|
||||
cairo_set_source_rgba(cr,rgb_to_r_g_b(bgc,bga))
|
||||
cairo_set_line_width(cr,ring_w)
|
||||
cairo_stroke(cr)
|
||||
|
||||
-- Draw indicator ring
|
||||
|
||||
cairo_arc(cr,xc,yc,ring_r,angle_0,angle_0+t_arc)
|
||||
cairo_set_source_rgba(cr,rgb_to_r_g_b(fgc,fga))
|
||||
cairo_stroke(cr)
|
||||
end
|
||||
|
||||
function conky_ring_stats()
|
||||
local function setup_rings(cr,pt)
|
||||
local str=''
|
||||
local value=0
|
||||
|
||||
str=string.format('${%s %s}',pt['name'],pt['arg'])
|
||||
str=conky_parse(str)
|
||||
|
||||
value=tonumber(str)
|
||||
if value == nil then value = 0 end
|
||||
pct=value/pt['max']
|
||||
|
||||
draw_ring(cr,pct,pt)
|
||||
end
|
||||
|
||||
if conky_window==nil then return end
|
||||
local cs=cairo_xlib_surface_create(conky_window.display,conky_window.drawable,conky_window.visual, conky_window.width,conky_window.height)
|
||||
|
||||
local cr=cairo_create(cs)
|
||||
|
||||
local updates=conky_parse('${updates}')
|
||||
update_num=tonumber(updates)
|
||||
|
||||
if update_num>5 then
|
||||
for i in pairs(settings_table) do
|
||||
setup_rings(cr,settings_table[i])
|
||||
end
|
||||
end
|
||||
cairo_surface_destroy(cs)
|
||||
cairo_destroy(cr)
|
||||
end
|
||||
141
.config/conky/qtile/03/scripts/Palenight.lua
Normal file
@@ -0,0 +1,141 @@
|
||||
--[[
|
||||
Ring Meters by londonali1010 (2009)
|
||||
|
||||
This script draws percentage meters as rings. It is fully customisable; all options are described in the script.
|
||||
|
||||
IMPORTANT: if you are using the 'cpu' function, it will cause a segmentation fault if it tries to draw a ring straight away. The if statement near the end of the script uses a delay to make sure that this doesn't happen. It calculates the length of the delay by the number of updates since Conky started. Generally, a value of 5s is long enough, so if you update Conky every 1s, use update_num > 5 in that if statement (the default). If you only update Conky every 2s, you should change it to update_num > 3; conversely if you update Conky every 0.5s, you should use update_num > 10. ALSO, if you change your Conky, is it best to use "killall conky; conky" to update it, otherwise the update_num will not be reset and you will get an error.
|
||||
|
||||
To call this script in Conky, use the following (assuming that you save this script to ~/scripts/rings.lua):
|
||||
lua_load ~/scripts/rings-v1.2.1.lua
|
||||
lua_draw_hook_pre ring_stats
|
||||
|
||||
Changelog:
|
||||
+ v1.2.1 -- Fixed minor bug that caused script to crash if conky_parse() returns a nil value (20.10.2009)
|
||||
+ v1.2 -- Added option for the ending angle of the rings (07.10.2009)
|
||||
+ v1.1 -- Added options for the starting angle of the rings, and added the "max" variable, to allow for variables that output a numerical value rather than a percentage (29.09.2009)
|
||||
+ v1.0 -- Original release (28.09.2009)
|
||||
]]
|
||||
|
||||
settings_table = {
|
||||
|
||||
{
|
||||
name='cpu',
|
||||
arg='cpu0',
|
||||
max=100,
|
||||
bg_colour=0xffffff,
|
||||
bg_alpha=0.2,
|
||||
fg_colour=0x89ddff,
|
||||
fg_alpha=1,
|
||||
x=49.5, y=182.3,
|
||||
radius=25,
|
||||
thickness=7,
|
||||
start_angle=0,
|
||||
end_angle=360,
|
||||
},
|
||||
{
|
||||
name='memperc',
|
||||
arg='',
|
||||
max=100,
|
||||
bg_colour=0xffffff,
|
||||
bg_alpha=0.2,
|
||||
fg_colour=0xc3e88d,
|
||||
fg_alpha=1,
|
||||
x=119.5, y=182.3,
|
||||
radius=25,
|
||||
thickness=7,
|
||||
start_angle=0,
|
||||
end_angle=360
|
||||
},
|
||||
{
|
||||
name='battery_percent',
|
||||
arg='BAT0',
|
||||
max=100,
|
||||
bg_colour=0xffffff,
|
||||
bg_alpha=0.2,
|
||||
fg_colour=0xffcb6b,
|
||||
fg_alpha=1,
|
||||
x=190, y=182.3,
|
||||
radius=25,
|
||||
thickness=7,
|
||||
start_angle=0,
|
||||
end_angle=360
|
||||
},
|
||||
{
|
||||
name='hwmon temp 1',
|
||||
arg='',
|
||||
max=100,
|
||||
bg_colour=0xffffff,
|
||||
bg_alpha=0.2,
|
||||
fg_colour=0xf07178,
|
||||
fg_alpha=1,
|
||||
x=259.5, y=182.3,
|
||||
radius=25,
|
||||
thickness=7,
|
||||
start_angle=0,
|
||||
end_angle=360,
|
||||
},
|
||||
|
||||
|
||||
}
|
||||
|
||||
require 'cairo'
|
||||
|
||||
function rgb_to_r_g_b(colour,alpha)
|
||||
return ((colour / 0x10000) % 0x100) / 255., ((colour / 0x100) % 0x100) / 255., (colour % 0x100) / 255., alpha
|
||||
end
|
||||
|
||||
function draw_ring(cr,t,pt)
|
||||
local w,h=conky_window.width,conky_window.height
|
||||
|
||||
local xc,yc,ring_r,ring_w,sa,ea=pt['x'],pt['y'],pt['radius'],pt['thickness'],pt['start_angle'],pt['end_angle']
|
||||
local bgc, bga, fgc, fga=pt['bg_colour'], pt['bg_alpha'], pt['fg_colour'], pt['fg_alpha']
|
||||
|
||||
local angle_0=sa*(2*math.pi/360)-math.pi/2
|
||||
local angle_f=ea*(2*math.pi/360)-math.pi/2
|
||||
local t_arc=t*(angle_f-angle_0)
|
||||
|
||||
-- Draw background ring
|
||||
|
||||
cairo_arc(cr,xc,yc,ring_r,angle_0,angle_f)
|
||||
cairo_set_source_rgba(cr,rgb_to_r_g_b(bgc,bga))
|
||||
cairo_set_line_width(cr,ring_w)
|
||||
cairo_stroke(cr)
|
||||
|
||||
-- Draw indicator ring
|
||||
|
||||
cairo_arc(cr,xc,yc,ring_r,angle_0,angle_0+t_arc)
|
||||
cairo_set_source_rgba(cr,rgb_to_r_g_b(fgc,fga))
|
||||
cairo_stroke(cr)
|
||||
end
|
||||
|
||||
function conky_ring_stats()
|
||||
local function setup_rings(cr,pt)
|
||||
local str=''
|
||||
local value=0
|
||||
|
||||
str=string.format('${%s %s}',pt['name'],pt['arg'])
|
||||
str=conky_parse(str)
|
||||
|
||||
value=tonumber(str)
|
||||
if value == nil then value = 0 end
|
||||
pct=value/pt['max']
|
||||
|
||||
draw_ring(cr,pct,pt)
|
||||
end
|
||||
|
||||
if conky_window==nil then return end
|
||||
local cs=cairo_xlib_surface_create(conky_window.display,conky_window.drawable,conky_window.visual, conky_window.width,conky_window.height)
|
||||
|
||||
local cr=cairo_create(cs)
|
||||
|
||||
local updates=conky_parse('${updates}')
|
||||
update_num=tonumber(updates)
|
||||
|
||||
if update_num>5 then
|
||||
for i in pairs(settings_table) do
|
||||
setup_rings(cr,settings_table[i])
|
||||
end
|
||||
end
|
||||
cairo_surface_destroy(cs)
|
||||
cairo_destroy(cr)
|
||||
end
|
||||
141
.config/conky/qtile/03/scripts/SolarizedDark.lua
Normal file
@@ -0,0 +1,141 @@
|
||||
--[[
|
||||
Ring Meters by londonali1010 (2009)
|
||||
|
||||
This script draws percentage meters as rings. It is fully customisable; all options are described in the script.
|
||||
|
||||
IMPORTANT: if you are using the 'cpu' function, it will cause a segmentation fault if it tries to draw a ring straight away. The if statement near the end of the script uses a delay to make sure that this doesn't happen. It calculates the length of the delay by the number of updates since Conky started. Generally, a value of 5s is long enough, so if you update Conky every 1s, use update_num > 5 in that if statement (the default). If you only update Conky every 2s, you should change it to update_num > 3; conversely if you update Conky every 0.5s, you should use update_num > 10. ALSO, if you change your Conky, is it best to use "killall conky; conky" to update it, otherwise the update_num will not be reset and you will get an error.
|
||||
|
||||
To call this script in Conky, use the following (assuming that you save this script to ~/scripts/rings.lua):
|
||||
lua_load ~/scripts/rings-v1.2.1.lua
|
||||
lua_draw_hook_pre ring_stats
|
||||
|
||||
Changelog:
|
||||
+ v1.2.1 -- Fixed minor bug that caused script to crash if conky_parse() returns a nil value (20.10.2009)
|
||||
+ v1.2 -- Added option for the ending angle of the rings (07.10.2009)
|
||||
+ v1.1 -- Added options for the starting angle of the rings, and added the "max" variable, to allow for variables that output a numerical value rather than a percentage (29.09.2009)
|
||||
+ v1.0 -- Original release (28.09.2009)
|
||||
]]
|
||||
|
||||
settings_table = {
|
||||
|
||||
{
|
||||
name='cpu',
|
||||
arg='cpu0',
|
||||
max=100,
|
||||
bg_colour=0xffffff,
|
||||
bg_alpha=0.2,
|
||||
fg_colour=0x2aa198,
|
||||
fg_alpha=1,
|
||||
x=49.5, y=182.3,
|
||||
radius=25,
|
||||
thickness=7,
|
||||
start_angle=0,
|
||||
end_angle=360,
|
||||
},
|
||||
{
|
||||
name='memperc',
|
||||
arg='',
|
||||
max=100,
|
||||
bg_colour=0xffffff,
|
||||
bg_alpha=0.2,
|
||||
fg_colour=0x859900,
|
||||
fg_alpha=1,
|
||||
x=119.5, y=182.3,
|
||||
radius=25,
|
||||
thickness=7,
|
||||
start_angle=0,
|
||||
end_angle=360
|
||||
},
|
||||
{
|
||||
name='battery_percent',
|
||||
arg='BAT0',
|
||||
max=100,
|
||||
bg_colour=0xffffff,
|
||||
bg_alpha=0.2,
|
||||
fg_colour=0xb58900,
|
||||
fg_alpha=1,
|
||||
x=190, y=182.3,
|
||||
radius=25,
|
||||
thickness=7,
|
||||
start_angle=0,
|
||||
end_angle=360
|
||||
},
|
||||
{
|
||||
name='hwmon temp 1',
|
||||
arg='',
|
||||
max=100,
|
||||
bg_colour=0xffffff,
|
||||
bg_alpha=0.2,
|
||||
fg_colour=0xdc322f,
|
||||
fg_alpha=1,
|
||||
x=259.5, y=182.3,
|
||||
radius=25,
|
||||
thickness=7,
|
||||
start_angle=0,
|
||||
end_angle=360,
|
||||
},
|
||||
|
||||
|
||||
}
|
||||
|
||||
require 'cairo'
|
||||
|
||||
function rgb_to_r_g_b(colour,alpha)
|
||||
return ((colour / 0x10000) % 0x100) / 255., ((colour / 0x100) % 0x100) / 255., (colour % 0x100) / 255., alpha
|
||||
end
|
||||
|
||||
function draw_ring(cr,t,pt)
|
||||
local w,h=conky_window.width,conky_window.height
|
||||
|
||||
local xc,yc,ring_r,ring_w,sa,ea=pt['x'],pt['y'],pt['radius'],pt['thickness'],pt['start_angle'],pt['end_angle']
|
||||
local bgc, bga, fgc, fga=pt['bg_colour'], pt['bg_alpha'], pt['fg_colour'], pt['fg_alpha']
|
||||
|
||||
local angle_0=sa*(2*math.pi/360)-math.pi/2
|
||||
local angle_f=ea*(2*math.pi/360)-math.pi/2
|
||||
local t_arc=t*(angle_f-angle_0)
|
||||
|
||||
-- Draw background ring
|
||||
|
||||
cairo_arc(cr,xc,yc,ring_r,angle_0,angle_f)
|
||||
cairo_set_source_rgba(cr,rgb_to_r_g_b(bgc,bga))
|
||||
cairo_set_line_width(cr,ring_w)
|
||||
cairo_stroke(cr)
|
||||
|
||||
-- Draw indicator ring
|
||||
|
||||
cairo_arc(cr,xc,yc,ring_r,angle_0,angle_0+t_arc)
|
||||
cairo_set_source_rgba(cr,rgb_to_r_g_b(fgc,fga))
|
||||
cairo_stroke(cr)
|
||||
end
|
||||
|
||||
function conky_ring_stats()
|
||||
local function setup_rings(cr,pt)
|
||||
local str=''
|
||||
local value=0
|
||||
|
||||
str=string.format('${%s %s}',pt['name'],pt['arg'])
|
||||
str=conky_parse(str)
|
||||
|
||||
value=tonumber(str)
|
||||
if value == nil then value = 0 end
|
||||
pct=value/pt['max']
|
||||
|
||||
draw_ring(cr,pct,pt)
|
||||
end
|
||||
|
||||
if conky_window==nil then return end
|
||||
local cs=cairo_xlib_surface_create(conky_window.display,conky_window.drawable,conky_window.visual, conky_window.width,conky_window.height)
|
||||
|
||||
local cr=cairo_create(cs)
|
||||
|
||||
local updates=conky_parse('${updates}')
|
||||
update_num=tonumber(updates)
|
||||
|
||||
if update_num>5 then
|
||||
for i in pairs(settings_table) do
|
||||
setup_rings(cr,settings_table[i])
|
||||
end
|
||||
end
|
||||
cairo_surface_destroy(cs)
|
||||
cairo_destroy(cr)
|
||||
end
|
||||
141
.config/conky/qtile/03/scripts/SolarizedLight.lua
Normal file
@@ -0,0 +1,141 @@
|
||||
--[[
|
||||
Ring Meters by londonali1010 (2009)
|
||||
|
||||
This script draws percentage meters as rings. It is fully customisable; all options are described in the script.
|
||||
|
||||
IMPORTANT: if you are using the 'cpu' function, it will cause a segmentation fault if it tries to draw a ring straight away. The if statement near the end of the script uses a delay to make sure that this doesn't happen. It calculates the length of the delay by the number of updates since Conky started. Generally, a value of 5s is long enough, so if you update Conky every 1s, use update_num > 5 in that if statement (the default). If you only update Conky every 2s, you should change it to update_num > 3; conversely if you update Conky every 0.5s, you should use update_num > 10. ALSO, if you change your Conky, is it best to use "killall conky; conky" to update it, otherwise the update_num will not be reset and you will get an error.
|
||||
|
||||
To call this script in Conky, use the following (assuming that you save this script to ~/scripts/rings.lua):
|
||||
lua_load ~/scripts/rings-v1.2.1.lua
|
||||
lua_draw_hook_pre ring_stats
|
||||
|
||||
Changelog:
|
||||
+ v1.2.1 -- Fixed minor bug that caused script to crash if conky_parse() returns a nil value (20.10.2009)
|
||||
+ v1.2 -- Added option for the ending angle of the rings (07.10.2009)
|
||||
+ v1.1 -- Added options for the starting angle of the rings, and added the "max" variable, to allow for variables that output a numerical value rather than a percentage (29.09.2009)
|
||||
+ v1.0 -- Original release (28.09.2009)
|
||||
]]
|
||||
|
||||
settings_table = {
|
||||
|
||||
{
|
||||
name='cpu',
|
||||
arg='cpu0',
|
||||
max=100,
|
||||
bg_colour=0x000000,
|
||||
bg_alpha=0.2,
|
||||
fg_colour=0x2aa198,
|
||||
fg_alpha=1,
|
||||
x=49.5, y=182.3,
|
||||
radius=25,
|
||||
thickness=7,
|
||||
start_angle=0,
|
||||
end_angle=360,
|
||||
},
|
||||
{
|
||||
name='memperc',
|
||||
arg='',
|
||||
max=100,
|
||||
bg_colour=0x000000,
|
||||
bg_alpha=0.2,
|
||||
fg_colour=0x859900,
|
||||
fg_alpha=1,
|
||||
x=119.5, y=182.3,
|
||||
radius=25,
|
||||
thickness=7,
|
||||
start_angle=0,
|
||||
end_angle=360
|
||||
},
|
||||
{
|
||||
name='battery_percent',
|
||||
arg='BAT0',
|
||||
max=100,
|
||||
bg_colour=0x000000,
|
||||
bg_alpha=0.2,
|
||||
fg_colour=0xb58900,
|
||||
fg_alpha=1,
|
||||
x=190, y=182.3,
|
||||
radius=25,
|
||||
thickness=7,
|
||||
start_angle=0,
|
||||
end_angle=360
|
||||
},
|
||||
{
|
||||
name='hwmon temp 1',
|
||||
arg='',
|
||||
max=100,
|
||||
bg_colour=0x000000,
|
||||
bg_alpha=0.2,
|
||||
fg_colour=0xdc322f,
|
||||
fg_alpha=1,
|
||||
x=259.5, y=182.3,
|
||||
radius=25,
|
||||
thickness=7,
|
||||
start_angle=0,
|
||||
end_angle=360,
|
||||
},
|
||||
|
||||
|
||||
}
|
||||
|
||||
require 'cairo'
|
||||
|
||||
function rgb_to_r_g_b(colour,alpha)
|
||||
return ((colour / 0x10000) % 0x100) / 255., ((colour / 0x100) % 0x100) / 255., (colour % 0x100) / 255., alpha
|
||||
end
|
||||
|
||||
function draw_ring(cr,t,pt)
|
||||
local w,h=conky_window.width,conky_window.height
|
||||
|
||||
local xc,yc,ring_r,ring_w,sa,ea=pt['x'],pt['y'],pt['radius'],pt['thickness'],pt['start_angle'],pt['end_angle']
|
||||
local bgc, bga, fgc, fga=pt['bg_colour'], pt['bg_alpha'], pt['fg_colour'], pt['fg_alpha']
|
||||
|
||||
local angle_0=sa*(2*math.pi/360)-math.pi/2
|
||||
local angle_f=ea*(2*math.pi/360)-math.pi/2
|
||||
local t_arc=t*(angle_f-angle_0)
|
||||
|
||||
-- Draw background ring
|
||||
|
||||
cairo_arc(cr,xc,yc,ring_r,angle_0,angle_f)
|
||||
cairo_set_source_rgba(cr,rgb_to_r_g_b(bgc,bga))
|
||||
cairo_set_line_width(cr,ring_w)
|
||||
cairo_stroke(cr)
|
||||
|
||||
-- Draw indicator ring
|
||||
|
||||
cairo_arc(cr,xc,yc,ring_r,angle_0,angle_0+t_arc)
|
||||
cairo_set_source_rgba(cr,rgb_to_r_g_b(fgc,fga))
|
||||
cairo_stroke(cr)
|
||||
end
|
||||
|
||||
function conky_ring_stats()
|
||||
local function setup_rings(cr,pt)
|
||||
local str=''
|
||||
local value=0
|
||||
|
||||
str=string.format('${%s %s}',pt['name'],pt['arg'])
|
||||
str=conky_parse(str)
|
||||
|
||||
value=tonumber(str)
|
||||
if value == nil then value = 0 end
|
||||
pct=value/pt['max']
|
||||
|
||||
draw_ring(cr,pct,pt)
|
||||
end
|
||||
|
||||
if conky_window==nil then return end
|
||||
local cs=cairo_xlib_surface_create(conky_window.display,conky_window.drawable,conky_window.visual, conky_window.width,conky_window.height)
|
||||
|
||||
local cr=cairo_create(cs)
|
||||
|
||||
local updates=conky_parse('${updates}')
|
||||
update_num=tonumber(updates)
|
||||
|
||||
if update_num>5 then
|
||||
for i in pairs(settings_table) do
|
||||
setup_rings(cr,settings_table[i])
|
||||
end
|
||||
end
|
||||
cairo_surface_destroy(cs)
|
||||
cairo_destroy(cr)
|
||||
end
|
||||
141
.config/conky/qtile/03/scripts/TomorrowNight.lua
Normal file
@@ -0,0 +1,141 @@
|
||||
--[[
|
||||
Ring Meters by londonali1010 (2009)
|
||||
|
||||
This script draws percentage meters as rings. It is fully customisable; all options are described in the script.
|
||||
|
||||
IMPORTANT: if you are using the 'cpu' function, it will cause a segmentation fault if it tries to draw a ring straight away. The if statement near the end of the script uses a delay to make sure that this doesn't happen. It calculates the length of the delay by the number of updates since Conky started. Generally, a value of 5s is long enough, so if you update Conky every 1s, use update_num > 5 in that if statement (the default). If you only update Conky every 2s, you should change it to update_num > 3; conversely if you update Conky every 0.5s, you should use update_num > 10. ALSO, if you change your Conky, is it best to use "killall conky; conky" to update it, otherwise the update_num will not be reset and you will get an error.
|
||||
|
||||
To call this script in Conky, use the following (assuming that you save this script to ~/scripts/rings.lua):
|
||||
lua_load ~/scripts/rings-v1.2.1.lua
|
||||
lua_draw_hook_pre ring_stats
|
||||
|
||||
Changelog:
|
||||
+ v1.2.1 -- Fixed minor bug that caused script to crash if conky_parse() returns a nil value (20.10.2009)
|
||||
+ v1.2 -- Added option for the ending angle of the rings (07.10.2009)
|
||||
+ v1.1 -- Added options for the starting angle of the rings, and added the "max" variable, to allow for variables that output a numerical value rather than a percentage (29.09.2009)
|
||||
+ v1.0 -- Original release (28.09.2009)
|
||||
]]
|
||||
|
||||
settings_table = {
|
||||
|
||||
{
|
||||
name='cpu',
|
||||
arg='cpu0',
|
||||
max=100,
|
||||
bg_colour=0xffffff,
|
||||
bg_alpha=0.2,
|
||||
fg_colour=0x81a2be,
|
||||
fg_alpha=1,
|
||||
x=49.5, y=182.3,
|
||||
radius=25,
|
||||
thickness=7,
|
||||
start_angle=0,
|
||||
end_angle=360,
|
||||
},
|
||||
{
|
||||
name='memperc',
|
||||
arg='',
|
||||
max=100,
|
||||
bg_colour=0xffffff,
|
||||
bg_alpha=0.2,
|
||||
fg_colour=0xb5bd68,
|
||||
fg_alpha=1,
|
||||
x=119.5, y=182.3,
|
||||
radius=25,
|
||||
thickness=7,
|
||||
start_angle=0,
|
||||
end_angle=360
|
||||
},
|
||||
{
|
||||
name='battery_percent',
|
||||
arg='BAT0',
|
||||
max=100,
|
||||
bg_colour=0xffffff,
|
||||
bg_alpha=0.2,
|
||||
fg_colour=0xe6c547,
|
||||
fg_alpha=1,
|
||||
x=190, y=182.3,
|
||||
radius=25,
|
||||
thickness=7,
|
||||
start_angle=0,
|
||||
end_angle=360
|
||||
},
|
||||
{
|
||||
name='hwmon temp 1',
|
||||
arg='',
|
||||
max=100,
|
||||
bg_colour=0xffffff,
|
||||
bg_alpha=0.2,
|
||||
fg_colour=0xcc6666,
|
||||
fg_alpha=1,
|
||||
x=259.5, y=182.3,
|
||||
radius=25,
|
||||
thickness=7,
|
||||
start_angle=0,
|
||||
end_angle=360,
|
||||
},
|
||||
|
||||
|
||||
}
|
||||
|
||||
require 'cairo'
|
||||
|
||||
function rgb_to_r_g_b(colour,alpha)
|
||||
return ((colour / 0x10000) % 0x100) / 255., ((colour / 0x100) % 0x100) / 255., (colour % 0x100) / 255., alpha
|
||||
end
|
||||
|
||||
function draw_ring(cr,t,pt)
|
||||
local w,h=conky_window.width,conky_window.height
|
||||
|
||||
local xc,yc,ring_r,ring_w,sa,ea=pt['x'],pt['y'],pt['radius'],pt['thickness'],pt['start_angle'],pt['end_angle']
|
||||
local bgc, bga, fgc, fga=pt['bg_colour'], pt['bg_alpha'], pt['fg_colour'], pt['fg_alpha']
|
||||
|
||||
local angle_0=sa*(2*math.pi/360)-math.pi/2
|
||||
local angle_f=ea*(2*math.pi/360)-math.pi/2
|
||||
local t_arc=t*(angle_f-angle_0)
|
||||
|
||||
-- Draw background ring
|
||||
|
||||
cairo_arc(cr,xc,yc,ring_r,angle_0,angle_f)
|
||||
cairo_set_source_rgba(cr,rgb_to_r_g_b(bgc,bga))
|
||||
cairo_set_line_width(cr,ring_w)
|
||||
cairo_stroke(cr)
|
||||
|
||||
-- Draw indicator ring
|
||||
|
||||
cairo_arc(cr,xc,yc,ring_r,angle_0,angle_0+t_arc)
|
||||
cairo_set_source_rgba(cr,rgb_to_r_g_b(fgc,fga))
|
||||
cairo_stroke(cr)
|
||||
end
|
||||
|
||||
function conky_ring_stats()
|
||||
local function setup_rings(cr,pt)
|
||||
local str=''
|
||||
local value=0
|
||||
|
||||
str=string.format('${%s %s}',pt['name'],pt['arg'])
|
||||
str=conky_parse(str)
|
||||
|
||||
value=tonumber(str)
|
||||
if value == nil then value = 0 end
|
||||
pct=value/pt['max']
|
||||
|
||||
draw_ring(cr,pct,pt)
|
||||
end
|
||||
|
||||
if conky_window==nil then return end
|
||||
local cs=cairo_xlib_surface_create(conky_window.display,conky_window.drawable,conky_window.visual, conky_window.width,conky_window.height)
|
||||
|
||||
local cr=cairo_create(cs)
|
||||
|
||||
local updates=conky_parse('${updates}')
|
||||
update_num=tonumber(updates)
|
||||
|
||||
if update_num>5 then
|
||||
for i in pairs(settings_table) do
|
||||
setup_rings(cr,settings_table[i])
|
||||
end
|
||||
end
|
||||
cairo_surface_destroy(cs)
|
||||
cairo_destroy(cr)
|
||||
end
|
||||
12
.config/conky/qtile/03/scripts/cputemp.sh
Executable file
@@ -0,0 +1,12 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Main
|
||||
cpuTemp=$(sensors | grep Tctl | awk -F '+' '{print $2}')
|
||||
|
||||
if [[ -n $cpuTemp ]]; then
|
||||
echo "$cpuTemp";
|
||||
else
|
||||
echo "n/a";
|
||||
fi
|
||||
|
||||
exit
|
||||
11
.config/conky/qtile/03/start.sh
Executable file
@@ -0,0 +1,11 @@
|
||||
#!/bin/bash
|
||||
|
||||
# This command will close all active conky
|
||||
killall conky
|
||||
sleep 2s
|
||||
|
||||
# Only the config listed below will be avtivated
|
||||
# if you want to combine with another theme, write the command here
|
||||
conky -c $HOME/.config/conky/Mimosa/Mimosa.conf &> /dev/null &
|
||||
|
||||
exit
|
||||
100
.config/conky/qtile/04/DoomOne.conf
Normal file
@@ -0,0 +1,100 @@
|
||||
conky.config = {
|
||||
--==============================================================================
|
||||
|
||||
-- DTOS 02 CONKY
|
||||
-- This conky theme was originally based on the Mimosa Dark theme created by
|
||||
-- author "Closebox73". I have removed many of the original widgets that theme
|
||||
-- Mimosa theme used, and I added the DTOS keybinding information.
|
||||
|
||||
--==============================================================================
|
||||
|
||||
-- Size and Position settings --
|
||||
alignment = 'top_right',
|
||||
gap_x = 30,
|
||||
gap_y = 30,
|
||||
maximum_width = 300,
|
||||
minimum_height = 705,
|
||||
minimum_width = 300,
|
||||
|
||||
-- Text settings --
|
||||
use_xft = true,
|
||||
override_utf8_locale = true,
|
||||
font = 'Roboto:normal:size=9',
|
||||
|
||||
|
||||
border_inner_margin = 4, -- margin between border and text
|
||||
border_outer_margin = 0, -- margin between border and edge of window
|
||||
border_width = 0, -- border width in pixels
|
||||
|
||||
-- Color Settings --
|
||||
default_color = 'ededed',
|
||||
default_outline_color = 'white',
|
||||
default_shade_color = 'white',
|
||||
color1 = 'bbc2cf',
|
||||
color2 = 'c678dd',
|
||||
color3 = '51afef',
|
||||
color4 = '4d4d4d',
|
||||
color5 = '98be65',
|
||||
|
||||
-- Window Settings --
|
||||
background = false,
|
||||
border_width = 1,
|
||||
draw_borders = false,
|
||||
draw_graph_borders = false,
|
||||
draw_outline = false,
|
||||
draw_shades = false,
|
||||
own_window = true,
|
||||
own_window_colour = '000000',
|
||||
own_window_class = 'Conky',
|
||||
own_window_argb_visual = false,
|
||||
own_window_type = 'override',
|
||||
own_window_transparent = true,
|
||||
own_window_hints = 'undecorated,below,sticky,skip_taskbar,skip_pager',
|
||||
stippled_borders = 0,
|
||||
|
||||
-- Others --
|
||||
cpu_avg_samples = 2,
|
||||
net_avg_samples = 2,
|
||||
double_buffer = true,
|
||||
out_to_console = false,
|
||||
out_to_stderr = false,
|
||||
extra_newline = false,
|
||||
update_interval = 1,
|
||||
uppercase = false,
|
||||
use_spacer = 'none',
|
||||
show_graph_scale = false,
|
||||
show_graph_range = false,
|
||||
lua_load = '~/.config/conky/qtile/02/scripts/DoomOne.lua',
|
||||
lua_draw_hook_pre = 'ring_stats',
|
||||
}
|
||||
|
||||
conky.text = [[
|
||||
${image ~/.config/conky/qtile/02/bg/DoomOne.png -s 300x673 -p 0,35}
|
||||
${alignc}${voffset 26}${color3}${font Raleway:bold:size=40}${time %H:%M}${font}${color}
|
||||
${alignc}${voffset 5}${font Raleway:size=14}${time %A, %B %d}
|
||||
${offset 34}${voffset 90}${color}${font Bebas Neue:size=18}${cpu cpu0}%${goto 104}${memperc}%${goto 180}${battery_percent BAT0}%${goto 230}${execi 2 ~/.config/conky/qtile/02/scripts/cputemp.sh}
|
||||
${offset 24}${voffset -2}${color}${font Raleway:size=10}/ :${goto 170}${font Raleway:size=10}/home :
|
||||
${offset 24}${color3}${font Raleway:size=9}${fs_bar 10,111}${goto 170}${color3}${font Raleway:size=9}${fs_bar 10,111 /home}
|
||||
${offset 24}${color}${font Raleway:size=9}${fs_used} / ${fs_size}${goto 170}${color}${font Raleway:size=8}${fs_used /home} / ${fs_size /home}${font}
|
||||
${voffset 32}${color5}${alignc}${font Raleway:bold:size=12}QTILE KEYBINDINGS${font}${color}
|
||||
${alignc}${color4}----------------------------------------------------------------------------${color}
|
||||
${offset 24}${color1}SUPER + [RET]${alignr}${offset -24}${color2}open terminal${color}
|
||||
${offset 24}${color1}SUPER + b${alignr}${offset -24}${color2}open browser${color}
|
||||
${offset 24}${color1}SUPER + SHIFT + [RET]${alignr}${offset -24}${color2}run prompt${color}
|
||||
${offset 24}${color1}SUPER + SHIFT + c${alignr}${offset -24}${color2}close window${color}
|
||||
${offset 24}${color1}SUPER + h/j/k/l${alignr}${offset -24}${color2}move win focus${color}
|
||||
${offset 24}${color1}SUPER + SHIFT + h/j/k/l${alignr}${offset -24}${color2}move window${color}
|
||||
${offset 24}${color1}SUPER + [1-9]${alignr}${offset -24}${color2}switch workspace${color}
|
||||
${offset 24}${color1}SUPER + SHIFT + [1-9]${alignr}${offset -24}${color2}send window${color}
|
||||
${offset 24}${color1}SUPER + =/-${alignr}${offset -24}${color2}shrink/expand${color}
|
||||
${offset 24}${color1}SUPER + SHIFT + r${alignr}${offset -24}${color2}restart qtile${color}
|
||||
${offset 24}${color1}SUPER + SHIFT + q${alignr}${offset -24}${color2}quit qtile${color}
|
||||
${alignc}${color4}----------------------------------------------------------------------------${color}
|
||||
${offset 24}${color1}SUPER + e, e${alignr}${offset -24}${color2}launch emacs${color}
|
||||
${offset 24}${color1}SUPER + e, b${alignr}${offset -24}${color2}ibuffer${color}
|
||||
${offset 24}${color1}SUPER + e, d${alignr}${offset -24}${color2}dired${color}
|
||||
${alignc}${color4}----------------------------------------------------------------------------${color}
|
||||
${offset 24}${color1}SUPER + p, h${alignr}${offset -24}${color2}dm-hub${color}
|
||||
${offset 24}${color1}SUPER + p, b${alignr}${offset -24}${color2}dm-setbg${color}
|
||||
${offset 24}${color1}SUPER + p, s${alignr}${offset -24}${color2}dm-websearch${color}
|
||||
]]
|
||||
100
.config/conky/qtile/04/Dracula.conf
Normal file
@@ -0,0 +1,100 @@
|
||||
conky.config = {
|
||||
--==============================================================================
|
||||
|
||||
-- DTOS 02 CONKY
|
||||
-- This conky theme was originally based on the Mimosa Dark theme created by
|
||||
-- author "Closebox73". I have removed many of the original widgets that theme
|
||||
-- Mimosa theme used, and I added the DTOS keybinding information.
|
||||
|
||||
--==============================================================================
|
||||
|
||||
-- Size and Position settings --
|
||||
alignment = 'top_right',
|
||||
gap_x = 30,
|
||||
gap_y = 30,
|
||||
maximum_width = 300,
|
||||
minimum_height = 705,
|
||||
minimum_width = 300,
|
||||
|
||||
-- Text settings --
|
||||
use_xft = true,
|
||||
override_utf8_locale = true,
|
||||
font = 'Roboto:normal:size=9',
|
||||
|
||||
|
||||
border_inner_margin = 4, -- margin between border and text
|
||||
border_outer_margin = 0, -- margin between border and edge of window
|
||||
border_width = 0, -- border width in pixels
|
||||
|
||||
-- Color Settings --
|
||||
default_color = 'ededed',
|
||||
default_outline_color = 'white',
|
||||
default_shade_color = 'white',
|
||||
color1 = 'f8f8f2',
|
||||
color2 = 'bd93f9',
|
||||
color3 = '9aedfe',
|
||||
color4 = '4d4d4d',
|
||||
color5 = 'ff79c6',
|
||||
|
||||
-- Window Settings --
|
||||
background = false,
|
||||
border_width = 1,
|
||||
draw_borders = false,
|
||||
draw_graph_borders = false,
|
||||
draw_outline = false,
|
||||
draw_shades = false,
|
||||
own_window = true,
|
||||
own_window_colour = '000000',
|
||||
own_window_class = 'Conky',
|
||||
own_window_argb_visual = false,
|
||||
own_window_type = 'override',
|
||||
own_window_transparent = true,
|
||||
own_window_hints = 'undecorated,below,sticky,skip_taskbar,skip_pager',
|
||||
stippled_borders = 0,
|
||||
|
||||
-- Others --
|
||||
cpu_avg_samples = 2,
|
||||
net_avg_samples = 2,
|
||||
double_buffer = true,
|
||||
out_to_console = false,
|
||||
out_to_stderr = false,
|
||||
extra_newline = false,
|
||||
update_interval = 1,
|
||||
uppercase = false,
|
||||
use_spacer = 'none',
|
||||
show_graph_scale = false,
|
||||
show_graph_range = false,
|
||||
lua_load = '~/.config/conky/qtile/02/scripts/Dracula.lua',
|
||||
lua_draw_hook_pre = 'ring_stats',
|
||||
}
|
||||
|
||||
conky.text = [[
|
||||
${image ~/.config/conky/qtile/02/bg/Dracula.png -s 300x673 -p 0,35}
|
||||
${alignc}${voffset 26}${color3}${font Raleway:bold:size=40}${time %H:%M}${font}${color}
|
||||
${alignc}${voffset 5}${font Raleway:size=14}${time %A, %B %d}
|
||||
${offset 34}${voffset 90}${color}${font Bebas Neue:size=18}${cpu cpu0}%${goto 104}${memperc}%${goto 180}${battery_percent BAT0}%${goto 230}${execi 2 ~/.config/conky/qtile/02/scripts/cputemp.sh}
|
||||
${offset 24}${voffset -2}${color}${font Raleway:size=10}/ :${goto 170}${font Raleway:size=10}/home :
|
||||
${offset 24}${color3}${font Raleway:size=9}${fs_bar 10,111}${goto 170}${color3}${font Raleway:size=9}${fs_bar 10,111 /home}
|
||||
${offset 24}${color}${font Raleway:size=9}${fs_used} / ${fs_size}${goto 170}${color}${font Raleway:size=8}${fs_used /home} / ${fs_size /home}${font}
|
||||
${voffset 32}${color5}${alignc}${font Raleway:bold:size=12}QTILE KEYBINDINGS${font}${color}
|
||||
${alignc}${color4}----------------------------------------------------------------------------${color}
|
||||
${offset 24}${color1}SUPER + [RET]${alignr}${offset -24}${color2}open terminal${color}
|
||||
${offset 24}${color1}SUPER + b${alignr}${offset -24}${color2}open browser${color}
|
||||
${offset 24}${color1}SUPER + SHIFT + [RET]${alignr}${offset -24}${color2}run prompt${color}
|
||||
${offset 24}${color1}SUPER + SHIFT + c${alignr}${offset -24}${color2}close window${color}
|
||||
${offset 24}${color1}SUPER + h/j/k/l${alignr}${offset -24}${color2}move win focus${color}
|
||||
${offset 24}${color1}SUPER + SHIFT + h/j/k/l${alignr}${offset -24}${color2}move window${color}
|
||||
${offset 24}${color1}SUPER + [1-9]${alignr}${offset -24}${color2}switch workspace${color}
|
||||
${offset 24}${color1}SUPER + SHIFT + [1-9]${alignr}${offset -24}${color2}send window${color}
|
||||
${offset 24}${color1}SUPER + =/-${alignr}${offset -24}${color2}shrink/expand${color}
|
||||
${offset 24}${color1}SUPER + SHIFT + r${alignr}${offset -24}${color2}restart qtile${color}
|
||||
${offset 24}${color1}SUPER + SHIFT + q${alignr}${offset -24}${color2}quit qtile${color}
|
||||
${alignc}${color4}----------------------------------------------------------------------------${color}
|
||||
${offset 24}${color1}SUPER + e, e${alignr}${offset -24}${color2}launch emacs${color}
|
||||
${offset 24}${color1}SUPER + e, b${alignr}${offset -24}${color2}ibuffer${color}
|
||||
${offset 24}${color1}SUPER + e, d${alignr}${offset -24}${color2}dired${color}
|
||||
${alignc}${color4}----------------------------------------------------------------------------${color}
|
||||
${offset 24}${color1}SUPER + p, h${alignr}${offset -24}${color2}dm-hub${color}
|
||||
${offset 24}${color1}SUPER + p, b${alignr}${offset -24}${color2}dm-setbg${color}
|
||||
${offset 24}${color1}SUPER + p, s${alignr}${offset -24}${color2}dm-websearch${color}
|
||||
]]
|
||||
100
.config/conky/qtile/04/GruvboxDark.conf
Normal file
@@ -0,0 +1,100 @@
|
||||
conky.config = {
|
||||
--==============================================================================
|
||||
|
||||
-- DTOS 02 CONKY
|
||||
-- This conky theme was originally based on the Mimosa Dark theme created by
|
||||
-- author "Closebox73". I have removed many of the original widgets that theme
|
||||
-- Mimosa theme used, and I added the DTOS keybinding information.
|
||||
|
||||
--==============================================================================
|
||||
|
||||
-- Size and Position settings --
|
||||
alignment = 'top_right',
|
||||
gap_x = 30,
|
||||
gap_y = 30,
|
||||
maximum_width = 300,
|
||||
minimum_height = 705,
|
||||
minimum_width = 300,
|
||||
|
||||
-- Text settings --
|
||||
use_xft = true,
|
||||
override_utf8_locale = true,
|
||||
font = 'Roboto:normal:size=9',
|
||||
|
||||
|
||||
border_inner_margin = 4, -- margin between border and text
|
||||
border_outer_margin = 0, -- margin between border and edge of window
|
||||
border_width = 0, -- border width in pixels
|
||||
|
||||
-- Color Settings --
|
||||
default_color = 'ededed',
|
||||
default_outline_color = 'white',
|
||||
default_shade_color = 'white',
|
||||
color1 = 'ebdbb2',
|
||||
color2 = '98971a',
|
||||
color3 = '83a598',
|
||||
color4 = '4d4d4d',
|
||||
color5 = 'd3869b',
|
||||
|
||||
-- Window Settings --
|
||||
background = false,
|
||||
border_width = 1,
|
||||
draw_borders = false,
|
||||
draw_graph_borders = false,
|
||||
draw_outline = false,
|
||||
draw_shades = false,
|
||||
own_window = true,
|
||||
own_window_colour = '000000',
|
||||
own_window_class = 'Conky',
|
||||
own_window_argb_visual = false,
|
||||
own_window_type = 'override',
|
||||
own_window_transparent = true,
|
||||
own_window_hints = 'undecorated,below,sticky,skip_taskbar,skip_pager',
|
||||
stippled_borders = 0,
|
||||
|
||||
-- Others --
|
||||
cpu_avg_samples = 2,
|
||||
net_avg_samples = 2,
|
||||
double_buffer = true,
|
||||
out_to_console = false,
|
||||
out_to_stderr = false,
|
||||
extra_newline = false,
|
||||
update_interval = 1,
|
||||
uppercase = false,
|
||||
use_spacer = 'none',
|
||||
show_graph_scale = false,
|
||||
show_graph_range = false,
|
||||
lua_load = '~/.config/conky/qtile/02/scripts/GruvboxDark.lua',
|
||||
lua_draw_hook_pre = 'ring_stats',
|
||||
}
|
||||
|
||||
conky.text = [[
|
||||
${image ~/.config/conky/qtile/02/bg/GruvboxDark.png -s 300x673 -p 0,35}
|
||||
${alignc}${voffset 26}${color3}${font Raleway:bold:size=40}${time %H:%M}${font}${color}
|
||||
${alignc}${voffset 5}${font Raleway:size=14}${time %A, %B %d}
|
||||
${offset 34}${voffset 90}${color}${font Bebas Neue:size=18}${cpu cpu0}%${goto 104}${memperc}%${goto 180}${battery_percent BAT0}%${goto 230}${execi 2 ~/.config/conky/qtile/02/scripts/cputemp.sh}
|
||||
${offset 24}${voffset -2}${color}${font Raleway:size=10}/ :${goto 170}${font Raleway:size=10}/home :
|
||||
${offset 24}${color3}${font Raleway:size=9}${fs_bar 10,111}${goto 170}${color3}${font Raleway:size=9}${fs_bar 10,111 /home}
|
||||
${offset 24}${color}${font Raleway:size=9}${fs_used} / ${fs_size}${goto 170}${color}${font Raleway:size=8}${fs_used /home} / ${fs_size /home}${font}
|
||||
${voffset 32}${color5}${alignc}${font Raleway:bold:size=12}QTILE KEYBINDINGS${font}${color}
|
||||
${alignc}${color4}----------------------------------------------------------------------------${color}
|
||||
${offset 24}${color1}SUPER + [RET]${alignr}${offset -24}${color2}open terminal${color}
|
||||
${offset 24}${color1}SUPER + b${alignr}${offset -24}${color2}open browser${color}
|
||||
${offset 24}${color1}SUPER + SHIFT + [RET]${alignr}${offset -24}${color2}run prompt${color}
|
||||
${offset 24}${color1}SUPER + SHIFT + c${alignr}${offset -24}${color2}close window${color}
|
||||
${offset 24}${color1}SUPER + h/j/k/l${alignr}${offset -24}${color2}move win focus${color}
|
||||
${offset 24}${color1}SUPER + SHIFT + h/j/k/l${alignr}${offset -24}${color2}move window${color}
|
||||
${offset 24}${color1}SUPER + [1-9]${alignr}${offset -24}${color2}switch workspace${color}
|
||||
${offset 24}${color1}SUPER + SHIFT + [1-9]${alignr}${offset -24}${color2}send window${color}
|
||||
${offset 24}${color1}SUPER + =/-${alignr}${offset -24}${color2}shrink/expand${color}
|
||||
${offset 24}${color1}SUPER + SHIFT + r${alignr}${offset -24}${color2}restart qtile${color}
|
||||
${offset 24}${color1}SUPER + SHIFT + q${alignr}${offset -24}${color2}quit qtile${color}
|
||||
${alignc}${color4}----------------------------------------------------------------------------${color}
|
||||
${offset 24}${color1}SUPER + e, e${alignr}${offset -24}${color2}launch emacs${color}
|
||||
${offset 24}${color1}SUPER + e, b${alignr}${offset -24}${color2}ibuffer${color}
|
||||
${offset 24}${color1}SUPER + e, d${alignr}${offset -24}${color2}dired${color}
|
||||
${alignc}${color4}----------------------------------------------------------------------------${color}
|
||||
${offset 24}${color1}SUPER + p, h${alignr}${offset -24}${color2}dm-hub${color}
|
||||
${offset 24}${color1}SUPER + p, b${alignr}${offset -24}${color2}dm-setbg${color}
|
||||
${offset 24}${color1}SUPER + p, s${alignr}${offset -24}${color2}dm-websearch${color}
|
||||
]]
|
||||
100
.config/conky/qtile/04/MonokaiPro.conf
Normal file
@@ -0,0 +1,100 @@
|
||||
conky.config = {
|
||||
--==============================================================================
|
||||
|
||||
-- DTOS 02 CONKY
|
||||
-- This conky theme was originally based on the Mimosa Dark theme created by
|
||||
-- author "Closebox73". I have removed many of the original widgets that theme
|
||||
-- Mimosa theme used, and I added the DTOS keybinding information.
|
||||
|
||||
--==============================================================================
|
||||
|
||||
-- Size and Position settings --
|
||||
alignment = 'top_right',
|
||||
gap_x = 30,
|
||||
gap_y = 30,
|
||||
maximum_width = 300,
|
||||
minimum_height = 705,
|
||||
minimum_width = 300,
|
||||
|
||||
-- Text settings --
|
||||
use_xft = true,
|
||||
override_utf8_locale = true,
|
||||
font = 'Roboto:normal:size=9',
|
||||
|
||||
|
||||
border_inner_margin = 4, -- margin between border and text
|
||||
border_outer_margin = 0, -- margin between border and edge of window
|
||||
border_width = 0, -- border width in pixels
|
||||
|
||||
-- Color Settings --
|
||||
default_color = 'ededed',
|
||||
default_outline_color = 'white',
|
||||
default_shade_color = 'white',
|
||||
color1 = 'fcfcfa',
|
||||
color2 = 'ab9df2',
|
||||
color3 = '78dce8',
|
||||
color4 = '4d4d4d',
|
||||
color5 = 'ff6188',
|
||||
|
||||
-- Window Settings --
|
||||
background = false,
|
||||
border_width = 1,
|
||||
draw_borders = false,
|
||||
draw_graph_borders = false,
|
||||
draw_outline = false,
|
||||
draw_shades = false,
|
||||
own_window = true,
|
||||
own_window_colour = '000000',
|
||||
own_window_class = 'Conky',
|
||||
own_window_argb_visual = false,
|
||||
own_window_type = 'override',
|
||||
own_window_transparent = true,
|
||||
own_window_hints = 'undecorated,below,sticky,skip_taskbar,skip_pager',
|
||||
stippled_borders = 0,
|
||||
|
||||
-- Others --
|
||||
cpu_avg_samples = 2,
|
||||
net_avg_samples = 2,
|
||||
double_buffer = true,
|
||||
out_to_console = false,
|
||||
out_to_stderr = false,
|
||||
extra_newline = false,
|
||||
update_interval = 1,
|
||||
uppercase = false,
|
||||
use_spacer = 'none',
|
||||
show_graph_scale = false,
|
||||
show_graph_range = false,
|
||||
lua_load = '~/.config/conky/qtile/02/scripts/MonokaiPro.lua',
|
||||
lua_draw_hook_pre = 'ring_stats',
|
||||
}
|
||||
|
||||
conky.text = [[
|
||||
${image ~/.config/conky/qtile/02/bg/MonokaiPro.png -s 300x673 -p 0,35}
|
||||
${alignc}${voffset 26}${color3}${font Raleway:bold:size=40}${time %H:%M}${font}${color}
|
||||
${alignc}${voffset 5}${font Raleway:size=14}${time %A, %B %d}
|
||||
${offset 34}${voffset 90}${color}${font Bebas Neue:size=18}${cpu cpu0}%${goto 104}${memperc}%${goto 180}${battery_percent BAT0}%${goto 230}${execi 2 ~/.config/conky/qtile/02/scripts/cputemp.sh}
|
||||
${offset 24}${voffset -2}${color}${font Raleway:size=10}/ :${goto 170}${font Raleway:size=10}/home :
|
||||
${offset 24}${color3}${font Raleway:size=9}${fs_bar 10,111}${goto 170}${color3}${font Raleway:size=9}${fs_bar 10,111 /home}
|
||||
${offset 24}${color}${font Raleway:size=9}${fs_used} / ${fs_size}${goto 170}${color}${font Raleway:size=8}${fs_used /home} / ${fs_size /home}${font}
|
||||
${voffset 32}${color5}${alignc}${font Raleway:bold:size=12}QTILE KEYBINDINGS${font}${color}
|
||||
${alignc}${color4}----------------------------------------------------------------------------${color}
|
||||
${offset 24}${color1}SUPER + [RET]${alignr}${offset -24}${color2}open terminal${color}
|
||||
${offset 24}${color1}SUPER + b${alignr}${offset -24}${color2}open browser${color}
|
||||
${offset 24}${color1}SUPER + SHIFT + [RET]${alignr}${offset -24}${color2}run prompt${color}
|
||||
${offset 24}${color1}SUPER + SHIFT + c${alignr}${offset -24}${color2}close window${color}
|
||||
${offset 24}${color1}SUPER + h/j/k/l${alignr}${offset -24}${color2}move win focus${color}
|
||||
${offset 24}${color1}SUPER + SHIFT + h/j/k/l${alignr}${offset -24}${color2}move window${color}
|
||||
${offset 24}${color1}SUPER + [1-9]${alignr}${offset -24}${color2}switch workspace${color}
|
||||
${offset 24}${color1}SUPER + SHIFT + [1-9]${alignr}${offset -24}${color2}send window${color}
|
||||
${offset 24}${color1}SUPER + =/-${alignr}${offset -24}${color2}shrink/expand${color}
|
||||
${offset 24}${color1}SUPER + SHIFT + r${alignr}${offset -24}${color2}restart qtile${color}
|
||||
${offset 24}${color1}SUPER + SHIFT + q${alignr}${offset -24}${color2}quit qtile${color}
|
||||
${alignc}${color4}----------------------------------------------------------------------------${color}
|
||||
${offset 24}${color1}SUPER + e, e${alignr}${offset -24}${color2}launch emacs${color}
|
||||
${offset 24}${color1}SUPER + e, b${alignr}${offset -24}${color2}ibuffer${color}
|
||||
${offset 24}${color1}SUPER + e, d${alignr}${offset -24}${color2}dired${color}
|
||||
${alignc}${color4}----------------------------------------------------------------------------${color}
|
||||
${offset 24}${color1}SUPER + p, h${alignr}${offset -24}${color2}dm-hub${color}
|
||||
${offset 24}${color1}SUPER + p, b${alignr}${offset -24}${color2}dm-setbg${color}
|
||||
${offset 24}${color1}SUPER + p, s${alignr}${offset -24}${color2}dm-websearch${color}
|
||||
]]
|
||||
100
.config/conky/qtile/04/Nord.conf
Normal file
@@ -0,0 +1,100 @@
|
||||
conky.config = {
|
||||
--==============================================================================
|
||||
|
||||
-- DTOS 02 CONKY
|
||||
-- This conky theme was originally based on the Mimosa Dark theme created by
|
||||
-- author "Closebox73". I have removed many of the original widgets that theme
|
||||
-- Mimosa theme used, and I added the DTOS keybinding information.
|
||||
|
||||
--==============================================================================
|
||||
|
||||
-- Size and Position settings --
|
||||
alignment = 'top_right',
|
||||
gap_x = 30,
|
||||
gap_y = 30,
|
||||
maximum_width = 300,
|
||||
minimum_height = 705,
|
||||
minimum_width = 300,
|
||||
|
||||
-- Text settings --
|
||||
use_xft = true,
|
||||
override_utf8_locale = true,
|
||||
font = 'Roboto:normal:size=9',
|
||||
|
||||
|
||||
border_inner_margin = 4, -- margin between border and text
|
||||
border_outer_margin = 0, -- margin between border and edge of window
|
||||
border_width = 0, -- border width in pixels
|
||||
|
||||
-- Color Settings --
|
||||
default_color = 'ededed',
|
||||
default_outline_color = 'white',
|
||||
default_shade_color = 'white',
|
||||
color1 = 'd8dee9',
|
||||
color2 = 'b48ead',
|
||||
color3 = '88c0d0',
|
||||
color4 = '4d4d4d',
|
||||
color5 = 'a3be8c',
|
||||
|
||||
-- Window Settings --
|
||||
background = false,
|
||||
border_width = 1,
|
||||
draw_borders = false,
|
||||
draw_graph_borders = false,
|
||||
draw_outline = false,
|
||||
draw_shades = false,
|
||||
own_window = true,
|
||||
own_window_colour = '000000',
|
||||
own_window_class = 'Conky',
|
||||
own_window_argb_visual = false,
|
||||
own_window_type = 'override',
|
||||
own_window_transparent = true,
|
||||
own_window_hints = 'undecorated,below,sticky,skip_taskbar,skip_pager',
|
||||
stippled_borders = 0,
|
||||
|
||||
-- Others --
|
||||
cpu_avg_samples = 2,
|
||||
net_avg_samples = 2,
|
||||
double_buffer = true,
|
||||
out_to_console = false,
|
||||
out_to_stderr = false,
|
||||
extra_newline = false,
|
||||
update_interval = 1,
|
||||
uppercase = false,
|
||||
use_spacer = 'none',
|
||||
show_graph_scale = false,
|
||||
show_graph_range = false,
|
||||
lua_load = '~/.config/conky/qtile/02/scripts/Nord.lua',
|
||||
lua_draw_hook_pre = 'ring_stats',
|
||||
}
|
||||
|
||||
conky.text = [[
|
||||
${image ~/.config/conky/qtile/02/bg/Nord.png -s 300x673 -p 0,35}
|
||||
${alignc}${voffset 26}${color3}${font Raleway:bold:size=40}${time %H:%M}${font}${color}
|
||||
${alignc}${voffset 5}${font Raleway:size=14}${time %A, %B %d}
|
||||
${offset 34}${voffset 90}${color}${font Bebas Neue:size=18}${cpu cpu0}%${goto 104}${memperc}%${goto 180}${battery_percent BAT0}%${goto 230}${execi 2 ~/.config/conky/qtile/02/scripts/cputemp.sh}
|
||||
${offset 24}${voffset -2}${color}${font Raleway:size=10}/ :${goto 170}${font Raleway:size=10}/home :
|
||||
${offset 24}${color3}${font Raleway:size=9}${fs_bar 10,111}${goto 170}${color3}${font Raleway:size=9}${fs_bar 10,111 /home}
|
||||
${offset 24}${color}${font Raleway:size=9}${fs_used} / ${fs_size}${goto 170}${color}${font Raleway:size=8}${fs_used /home} / ${fs_size /home}${font}
|
||||
${voffset 32}${color5}${alignc}${font Raleway:bold:size=12}QTILE KEYBINDINGS${font}${color}
|
||||
${alignc}${color4}----------------------------------------------------------------------------${color}
|
||||
${offset 24}${color1}SUPER + [RET]${alignr}${offset -24}${color2}open terminal${color}
|
||||
${offset 24}${color1}SUPER + b${alignr}${offset -24}${color2}open browser${color}
|
||||
${offset 24}${color1}SUPER + SHIFT + [RET]${alignr}${offset -24}${color2}run prompt${color}
|
||||
${offset 24}${color1}SUPER + SHIFT + c${alignr}${offset -24}${color2}close window${color}
|
||||
${offset 24}${color1}SUPER + h/j/k/l${alignr}${offset -24}${color2}move win focus${color}
|
||||
${offset 24}${color1}SUPER + SHIFT + h/j/k/l${alignr}${offset -24}${color2}move window${color}
|
||||
${offset 24}${color1}SUPER + [1-9]${alignr}${offset -24}${color2}switch workspace${color}
|
||||
${offset 24}${color1}SUPER + SHIFT + [1-9]${alignr}${offset -24}${color2}send window${color}
|
||||
${offset 24}${color1}SUPER + =/-${alignr}${offset -24}${color2}shrink/expand${color}
|
||||
${offset 24}${color1}SUPER + SHIFT + r${alignr}${offset -24}${color2}restart qtile${color}
|
||||
${offset 24}${color1}SUPER + SHIFT + q${alignr}${offset -24}${color2}quit qtile${color}
|
||||
${alignc}${color4}----------------------------------------------------------------------------${color}
|
||||
${offset 24}${color1}SUPER + e, e${alignr}${offset -24}${color2}launch emacs${color}
|
||||
${offset 24}${color1}SUPER + e, b${alignr}${offset -24}${color2}ibuffer${color}
|
||||
${offset 24}${color1}SUPER + e, d${alignr}${offset -24}${color2}dired${color}
|
||||
${alignc}${color4}----------------------------------------------------------------------------${color}
|
||||
${offset 24}${color1}SUPER + p, h${alignr}${offset -24}${color2}dm-hub${color}
|
||||
${offset 24}${color1}SUPER + p, b${alignr}${offset -24}${color2}dm-setbg${color}
|
||||
${offset 24}${color1}SUPER + p, s${alignr}${offset -24}${color2}dm-websearch${color}
|
||||
]]
|
||||
100
.config/conky/qtile/04/OceanicNext.conf
Normal file
@@ -0,0 +1,100 @@
|
||||
conky.config = {
|
||||
--==============================================================================
|
||||
|
||||
-- DTOS 02 CONKY
|
||||
-- This conky theme was originally based on the Mimosa Dark theme created by
|
||||
-- author "Closebox73". I have removed many of the original widgets that theme
|
||||
-- Mimosa theme used, and I added the DTOS keybinding information.
|
||||
|
||||
--==============================================================================
|
||||
|
||||
-- Size and Position settings --
|
||||
alignment = 'top_right',
|
||||
gap_x = 30,
|
||||
gap_y = 30,
|
||||
maximum_width = 300,
|
||||
minimum_height = 705,
|
||||
minimum_width = 300,
|
||||
|
||||
-- Text settings --
|
||||
use_xft = true,
|
||||
override_utf8_locale = true,
|
||||
font = 'Roboto:normal:size=9',
|
||||
|
||||
|
||||
border_inner_margin = 4, -- margin between border and text
|
||||
border_outer_margin = 0, -- margin between border and edge of window
|
||||
border_width = 0, -- border width in pixels
|
||||
|
||||
-- Color Settings --
|
||||
default_color = 'ededed',
|
||||
default_outline_color = 'white',
|
||||
default_shade_color = 'white',
|
||||
color1 = 'd8dee9',
|
||||
color2 = 'c594c5',
|
||||
color3 = '6699cc',
|
||||
color4 = '4d4d4d',
|
||||
color5 = '99c794',
|
||||
|
||||
-- Window Settings --
|
||||
background = false,
|
||||
border_width = 1,
|
||||
draw_borders = false,
|
||||
draw_graph_borders = false,
|
||||
draw_outline = false,
|
||||
draw_shades = false,
|
||||
own_window = true,
|
||||
own_window_colour = '000000',
|
||||
own_window_class = 'Conky',
|
||||
own_window_argb_visual = false,
|
||||
own_window_type = 'override',
|
||||
own_window_transparent = true,
|
||||
own_window_hints = 'undecorated,below,sticky,skip_taskbar,skip_pager',
|
||||
stippled_borders = 0,
|
||||
|
||||
-- Others --
|
||||
cpu_avg_samples = 2,
|
||||
net_avg_samples = 2,
|
||||
double_buffer = true,
|
||||
out_to_console = false,
|
||||
out_to_stderr = false,
|
||||
extra_newline = false,
|
||||
update_interval = 1,
|
||||
uppercase = false,
|
||||
use_spacer = 'none',
|
||||
show_graph_scale = false,
|
||||
show_graph_range = false,
|
||||
lua_load = '~/.config/conky/qtile/02/scripts/OceanicNext.lua',
|
||||
lua_draw_hook_pre = 'ring_stats',
|
||||
}
|
||||
|
||||
conky.text = [[
|
||||
${image ~/.config/conky/qtile/02/bg/OceanicNext.png -s 300x673 -p 0,35}
|
||||
${alignc}${voffset 26}${color3}${font Raleway:bold:size=40}${time %H:%M}${font}${color}
|
||||
${alignc}${voffset 5}${font Raleway:size=14}${time %A, %B %d}
|
||||
${offset 34}${voffset 90}${color}${font Bebas Neue:size=18}${cpu cpu0}%${goto 104}${memperc}%${goto 180}${battery_percent BAT0}%${goto 230}${execi 2 ~/.config/conky/qtile/02/scripts/cputemp.sh}
|
||||
${offset 24}${voffset -2}${color}${font Raleway:size=10}/ :${goto 170}${font Raleway:size=10}/home :
|
||||
${offset 24}${color3}${font Raleway:size=9}${fs_bar 10,111}${goto 170}${color3}${font Raleway:size=9}${fs_bar 10,111 /home}
|
||||
${offset 24}${color}${font Raleway:size=9}${fs_used} / ${fs_size}${goto 170}${color}${font Raleway:size=8}${fs_used /home} / ${fs_size /home}${font}
|
||||
${voffset 32}${color5}${alignc}${font Raleway:bold:size=12}QTILE KEYBINDINGS${font}${color}
|
||||
${alignc}${color4}----------------------------------------------------------------------------${color}
|
||||
${offset 24}${color1}SUPER + [RET]${alignr}${offset -24}${color2}open terminal${color}
|
||||
${offset 24}${color1}SUPER + b${alignr}${offset -24}${color2}open browser${color}
|
||||
${offset 24}${color1}SUPER + SHIFT + [RET]${alignr}${offset -24}${color2}run prompt${color}
|
||||
${offset 24}${color1}SUPER + SHIFT + c${alignr}${offset -24}${color2}close window${color}
|
||||
${offset 24}${color1}SUPER + h/j/k/l${alignr}${offset -24}${color2}move win focus${color}
|
||||
${offset 24}${color1}SUPER + SHIFT + h/j/k/l${alignr}${offset -24}${color2}move window${color}
|
||||
${offset 24}${color1}SUPER + [1-9]${alignr}${offset -24}${color2}switch workspace${color}
|
||||
${offset 24}${color1}SUPER + SHIFT + [1-9]${alignr}${offset -24}${color2}send window${color}
|
||||
${offset 24}${color1}SUPER + =/-${alignr}${offset -24}${color2}shrink/expand${color}
|
||||
${offset 24}${color1}SUPER + SHIFT + r${alignr}${offset -24}${color2}restart qtile${color}
|
||||
${offset 24}${color1}SUPER + SHIFT + q${alignr}${offset -24}${color2}quit qtile${color}
|
||||
${alignc}${color4}----------------------------------------------------------------------------${color}
|
||||
${offset 24}${color1}SUPER + e, e${alignr}${offset -24}${color2}launch emacs${color}
|
||||
${offset 24}${color1}SUPER + e, b${alignr}${offset -24}${color2}ibuffer${color}
|
||||
${offset 24}${color1}SUPER + e, d${alignr}${offset -24}${color2}dired${color}
|
||||
${alignc}${color4}----------------------------------------------------------------------------${color}
|
||||
${offset 24}${color1}SUPER + p, h${alignr}${offset -24}${color2}dm-hub${color}
|
||||
${offset 24}${color1}SUPER + p, b${alignr}${offset -24}${color2}dm-setbg${color}
|
||||
${offset 24}${color1}SUPER + p, s${alignr}${offset -24}${color2}dm-websearch${color}
|
||||
]]
|
||||
100
.config/conky/qtile/04/Palenight.conf
Normal file
@@ -0,0 +1,100 @@
|
||||
conky.config = {
|
||||
--==============================================================================
|
||||
|
||||
-- DTOS 02 CONKY
|
||||
-- This conky theme was originally based on the Mimosa Dark theme created by
|
||||
-- author "Closebox73". I have removed many of the original widgets that theme
|
||||
-- Mimosa theme used, and I added the DTOS keybinding information.
|
||||
|
||||
--==============================================================================
|
||||
|
||||
-- Size and Position settings --
|
||||
alignment = 'top_right',
|
||||
gap_x = 30,
|
||||
gap_y = 30,
|
||||
maximum_width = 300,
|
||||
minimum_height = 705,
|
||||
minimum_width = 300,
|
||||
|
||||
-- Text settings --
|
||||
use_xft = true,
|
||||
override_utf8_locale = true,
|
||||
font = 'Roboto:normal:size=9',
|
||||
|
||||
|
||||
border_inner_margin = 4, -- margin between border and text
|
||||
border_outer_margin = 0, -- margin between border and edge of window
|
||||
border_width = 0, -- border width in pixels
|
||||
|
||||
-- Color Settings --
|
||||
default_color = 'ededed',
|
||||
default_outline_color = 'white',
|
||||
default_shade_color = 'white',
|
||||
color1 = 'd0d0d0',
|
||||
color2 = 'c792ea',
|
||||
color3 = '89ddff',
|
||||
color4 = '4d4d4d',
|
||||
color5 = 'c3e88d',
|
||||
|
||||
-- Window Settings --
|
||||
background = false,
|
||||
border_width = 1,
|
||||
draw_borders = false,
|
||||
draw_graph_borders = false,
|
||||
draw_outline = false,
|
||||
draw_shades = false,
|
||||
own_window = true,
|
||||
own_window_colour = '000000',
|
||||
own_window_class = 'Conky',
|
||||
own_window_argb_visual = false,
|
||||
own_window_type = 'override',
|
||||
own_window_transparent = true,
|
||||
own_window_hints = 'undecorated,below,sticky,skip_taskbar,skip_pager',
|
||||
stippled_borders = 0,
|
||||
|
||||
-- Others --
|
||||
cpu_avg_samples = 2,
|
||||
net_avg_samples = 2,
|
||||
double_buffer = true,
|
||||
out_to_console = false,
|
||||
out_to_stderr = false,
|
||||
extra_newline = false,
|
||||
update_interval = 1,
|
||||
uppercase = false,
|
||||
use_spacer = 'none',
|
||||
show_graph_scale = false,
|
||||
show_graph_range = false,
|
||||
lua_load = '~/.config/conky/qtile/02/scripts/Palenight.lua',
|
||||
lua_draw_hook_pre = 'ring_stats',
|
||||
}
|
||||
|
||||
conky.text = [[
|
||||
${image ~/.config/conky/qtile/02/bg/Palenight.png -s 300x673 -p 0,35}
|
||||
${alignc}${voffset 26}${color3}${font Raleway:bold:size=40}${time %H:%M}${font}${color}
|
||||
${alignc}${voffset 5}${font Raleway:size=14}${time %A, %B %d}
|
||||
${offset 34}${voffset 90}${color}${font Bebas Neue:size=18}${cpu cpu0}%${goto 104}${memperc}%${goto 180}${battery_percent BAT0}%${goto 230}${execi 2 ~/.config/conky/qtile/02/scripts/cputemp.sh}
|
||||
${offset 24}${voffset -2}${color}${font Raleway:size=10}/ :${goto 170}${font Raleway:size=10}/home :
|
||||
${offset 24}${color3}${font Raleway:size=9}${fs_bar 10,111}${goto 170}${color3}${font Raleway:size=9}${fs_bar 10,111 /home}
|
||||
${offset 24}${color}${font Raleway:size=9}${fs_used} / ${fs_size}${goto 170}${color}${font Raleway:size=8}${fs_used /home} / ${fs_size /home}${font}
|
||||
${voffset 32}${color5}${alignc}${font Raleway:bold:size=12}QTILE KEYBINDINGS${font}${color}
|
||||
${alignc}${color4}----------------------------------------------------------------------------${color}
|
||||
${offset 24}${color1}SUPER + [RET]${alignr}${offset -24}${color2}open terminal${color}
|
||||
${offset 24}${color1}SUPER + b${alignr}${offset -24}${color2}open browser${color}
|
||||
${offset 24}${color1}SUPER + SHIFT + [RET]${alignr}${offset -24}${color2}run prompt${color}
|
||||
${offset 24}${color1}SUPER + SHIFT + c${alignr}${offset -24}${color2}close window${color}
|
||||
${offset 24}${color1}SUPER + h/j/k/l${alignr}${offset -24}${color2}move win focus${color}
|
||||
${offset 24}${color1}SUPER + SHIFT + h/j/k/l${alignr}${offset -24}${color2}move window${color}
|
||||
${offset 24}${color1}SUPER + [1-9]${alignr}${offset -24}${color2}switch workspace${color}
|
||||
${offset 24}${color1}SUPER + SHIFT + [1-9]${alignr}${offset -24}${color2}send window${color}
|
||||
${offset 24}${color1}SUPER + =/-${alignr}${offset -24}${color2}shrink/expand${color}
|
||||
${offset 24}${color1}SUPER + SHIFT + r${alignr}${offset -24}${color2}restart qtile${color}
|
||||
${offset 24}${color1}SUPER + SHIFT + q${alignr}${offset -24}${color2}quit qtile${color}
|
||||
${alignc}${color4}----------------------------------------------------------------------------${color}
|
||||
${offset 24}${color1}SUPER + e, e${alignr}${offset -24}${color2}launch emacs${color}
|
||||
${offset 24}${color1}SUPER + e, b${alignr}${offset -24}${color2}ibuffer${color}
|
||||
${offset 24}${color1}SUPER + e, d${alignr}${offset -24}${color2}dired${color}
|
||||
${alignc}${color4}----------------------------------------------------------------------------${color}
|
||||
${offset 24}${color1}SUPER + p, h${alignr}${offset -24}${color2}dm-hub${color}
|
||||
${offset 24}${color1}SUPER + p, b${alignr}${offset -24}${color2}dm-setbg${color}
|
||||
${offset 24}${color1}SUPER + p, s${alignr}${offset -24}${color2}dm-websearch${color}
|
||||
]]
|
||||
100
.config/conky/qtile/04/SolarizedDark.conf
Normal file
@@ -0,0 +1,100 @@
|
||||
conky.config = {
|
||||
--==============================================================================
|
||||
|
||||
-- DTOS 02 CONKY
|
||||
-- This conky theme was originally based on the Mimosa Dark theme created by
|
||||
-- author "Closebox73". I have removed many of the original widgets that theme
|
||||
-- Mimosa theme used, and I added the DTOS keybinding information.
|
||||
|
||||
--==============================================================================
|
||||
|
||||
-- Size and Position settings --
|
||||
alignment = 'top_right',
|
||||
gap_x = 30,
|
||||
gap_y = 30,
|
||||
maximum_width = 300,
|
||||
minimum_height = 705,
|
||||
minimum_width = 300,
|
||||
|
||||
-- Text settings --
|
||||
use_xft = true,
|
||||
override_utf8_locale = true,
|
||||
font = 'Roboto:normal:size=9',
|
||||
|
||||
|
||||
border_inner_margin = 4, -- margin between border and text
|
||||
border_outer_margin = 0, -- margin between border and edge of window
|
||||
border_width = 0, -- border width in pixels
|
||||
|
||||
-- Color Settings --
|
||||
default_color = 'ededed',
|
||||
default_outline_color = 'white',
|
||||
default_shade_color = 'white',
|
||||
color1 = '839496',
|
||||
color2 = '859900',
|
||||
color3 = '268bd2',
|
||||
color4 = '4d4d4d',
|
||||
color5 = 'd33682',
|
||||
|
||||
-- Window Settings --
|
||||
background = false,
|
||||
border_width = 1,
|
||||
draw_borders = false,
|
||||
draw_graph_borders = false,
|
||||
draw_outline = false,
|
||||
draw_shades = false,
|
||||
own_window = true,
|
||||
own_window_colour = '000000',
|
||||
own_window_class = 'Conky',
|
||||
own_window_argb_visual = false,
|
||||
own_window_type = 'override',
|
||||
own_window_transparent = true,
|
||||
own_window_hints = 'undecorated,below,sticky,skip_taskbar,skip_pager',
|
||||
stippled_borders = 0,
|
||||
|
||||
-- Others --
|
||||
cpu_avg_samples = 2,
|
||||
net_avg_samples = 2,
|
||||
double_buffer = true,
|
||||
out_to_console = false,
|
||||
out_to_stderr = false,
|
||||
extra_newline = false,
|
||||
update_interval = 1,
|
||||
uppercase = false,
|
||||
use_spacer = 'none',
|
||||
show_graph_scale = false,
|
||||
show_graph_range = false,
|
||||
lua_load = '~/.config/conky/qtile/02/scripts/SolarizedDark.lua',
|
||||
lua_draw_hook_pre = 'ring_stats',
|
||||
}
|
||||
|
||||
conky.text = [[
|
||||
${image ~/.config/conky/qtile/02/bg/SolarizedDark.png -s 300x673 -p 0,35}
|
||||
${alignc}${voffset 26}${color3}${font Raleway:bold:size=40}${time %H:%M}${font}${color}
|
||||
${alignc}${voffset 5}${font Raleway:size=14}${time %A, %B %d}
|
||||
${offset 34}${voffset 90}${color}${font Bebas Neue:size=18}${cpu cpu0}%${goto 104}${memperc}%${goto 180}${battery_percent BAT0}%${goto 230}${execi 2 ~/.config/conky/qtile/02/scripts/cputemp.sh}
|
||||
${offset 24}${voffset -2}${color}${font Raleway:size=10}/ :${goto 170}${font Raleway:size=10}/home :
|
||||
${offset 24}${color3}${font Raleway:size=9}${fs_bar 10,111}${goto 170}${color3}${font Raleway:size=9}${fs_bar 10,111 /home}
|
||||
${offset 24}${color}${font Raleway:size=9}${fs_used} / ${fs_size}${goto 170}${color}${font Raleway:size=8}${fs_used /home} / ${fs_size /home}${font}
|
||||
${voffset 32}${color5}${alignc}${font Raleway:bold:size=12}QTILE KEYBINDINGS${font}${color}
|
||||
${alignc}${color4}----------------------------------------------------------------------------${color}
|
||||
${offset 24}${color1}SUPER + [RET]${alignr}${offset -24}${color2}open terminal${color}
|
||||
${offset 24}${color1}SUPER + b${alignr}${offset -24}${color2}open browser${color}
|
||||
${offset 24}${color1}SUPER + SHIFT + [RET]${alignr}${offset -24}${color2}run prompt${color}
|
||||
${offset 24}${color1}SUPER + SHIFT + c${alignr}${offset -24}${color2}close window${color}
|
||||
${offset 24}${color1}SUPER + h/j/k/l${alignr}${offset -24}${color2}move win focus${color}
|
||||
${offset 24}${color1}SUPER + SHIFT + h/j/k/l${alignr}${offset -24}${color2}move window${color}
|
||||
${offset 24}${color1}SUPER + [1-9]${alignr}${offset -24}${color2}switch workspace${color}
|
||||
${offset 24}${color1}SUPER + SHIFT + [1-9]${alignr}${offset -24}${color2}send window${color}
|
||||
${offset 24}${color1}SUPER + =/-${alignr}${offset -24}${color2}shrink/expand${color}
|
||||
${offset 24}${color1}SUPER + SHIFT + r${alignr}${offset -24}${color2}restart qtile${color}
|
||||
${offset 24}${color1}SUPER + SHIFT + q${alignr}${offset -24}${color2}quit qtile${color}
|
||||
${alignc}${color4}----------------------------------------------------------------------------${color}
|
||||
${offset 24}${color1}SUPER + e, e${alignr}${offset -24}${color2}launch emacs${color}
|
||||
${offset 24}${color1}SUPER + e, b${alignr}${offset -24}${color2}ibuffer${color}
|
||||
${offset 24}${color1}SUPER + e, d${alignr}${offset -24}${color2}dired${color}
|
||||
${alignc}${color4}----------------------------------------------------------------------------${color}
|
||||
${offset 24}${color1}SUPER + p, h${alignr}${offset -24}${color2}dm-hub${color}
|
||||
${offset 24}${color1}SUPER + p, b${alignr}${offset -24}${color2}dm-setbg${color}
|
||||
${offset 24}${color1}SUPER + p, s${alignr}${offset -24}${color2}dm-websearch${color}
|
||||
]]
|
||||
100
.config/conky/qtile/04/SolarizedLight.conf
Normal file
@@ -0,0 +1,100 @@
|
||||
conky.config = {
|
||||
--==============================================================================
|
||||
|
||||
-- DTOS 02 CONKY
|
||||
-- This conky theme was originally based on the Mimosa Dark theme created by
|
||||
-- author "Closebox73". I have removed many of the original widgets that theme
|
||||
-- Mimosa theme used, and I added the DTOS keybinding information.
|
||||
|
||||
--==============================================================================
|
||||
|
||||
-- Size and Position settings --
|
||||
alignment = 'top_right',
|
||||
gap_x = 30,
|
||||
gap_y = 30,
|
||||
maximum_width = 300,
|
||||
minimum_height = 705,
|
||||
minimum_width = 300,
|
||||
|
||||
-- Text settings --
|
||||
use_xft = true,
|
||||
override_utf8_locale = true,
|
||||
font = 'Roboto:normal:size=9',
|
||||
|
||||
|
||||
border_inner_margin = 4, -- margin between border and text
|
||||
border_outer_margin = 0, -- margin between border and edge of window
|
||||
border_width = 0, -- border width in pixels
|
||||
|
||||
-- Color Settings --
|
||||
default_color = '073642',
|
||||
default_outline_color = 'white',
|
||||
default_shade_color = 'white',
|
||||
color1 = '073642',
|
||||
color2 = '859900',
|
||||
color3 = '268bd2',
|
||||
color4 = '4d4d4d',
|
||||
color5 = 'd33682',
|
||||
|
||||
-- Window Settings --
|
||||
background = false,
|
||||
border_width = 1,
|
||||
draw_borders = false,
|
||||
draw_graph_borders = false,
|
||||
draw_outline = false,
|
||||
draw_shades = false,
|
||||
own_window = true,
|
||||
own_window_colour = '000000',
|
||||
own_window_class = 'Conky',
|
||||
own_window_argb_visual = false,
|
||||
own_window_type = 'override',
|
||||
own_window_transparent = true,
|
||||
own_window_hints = 'undecorated,below,sticky,skip_taskbar,skip_pager',
|
||||
stippled_borders = 0,
|
||||
|
||||
-- Others --
|
||||
cpu_avg_samples = 2,
|
||||
net_avg_samples = 2,
|
||||
double_buffer = true,
|
||||
out_to_console = false,
|
||||
out_to_stderr = false,
|
||||
extra_newline = false,
|
||||
update_interval = 1,
|
||||
uppercase = false,
|
||||
use_spacer = 'none',
|
||||
show_graph_scale = false,
|
||||
show_graph_range = false,
|
||||
lua_load = '~/.config/conky/qtile/02/scripts/SolarizedLight.lua',
|
||||
lua_draw_hook_pre = 'ring_stats',
|
||||
}
|
||||
|
||||
conky.text = [[
|
||||
${image ~/.config/conky/qtile/02/bg/SolarizedLight.png -s 300x673 -p 0,35}
|
||||
${alignc}${voffset 26}${color3}${font Raleway:bold:size=40}${time %H:%M}${font}${color}
|
||||
${alignc}${voffset 5}${font Raleway:size=14}${time %A, %B %d}
|
||||
${offset 34}${voffset 90}${color}${font Bebas Neue:size=18}${cpu cpu0}%${goto 104}${memperc}%${goto 180}${battery_percent BAT0}%${goto 230}${execi 2 ~/.config/conky/qtile/02/scripts/cputemp.sh}
|
||||
${offset 24}${voffset -2}${color}${font Raleway:size=10}/ :${goto 170}${font Raleway:size=10}/home :
|
||||
${offset 24}${color3}${font Raleway:size=9}${fs_bar 10,111}${goto 170}${color3}${font Raleway:size=9}${fs_bar 10,111 /home}
|
||||
${offset 24}${color}${font Raleway:size=9}${fs_used} / ${fs_size}${goto 170}${color}${font Raleway:size=8}${fs_used /home} / ${fs_size /home}${font}
|
||||
${voffset 32}${color5}${alignc}${font Raleway:bold:size=12}QTILE KEYBINDINGS${font}${color}
|
||||
${alignc}${color4}----------------------------------------------------------------------------${color}
|
||||
${offset 24}${color1}SUPER + [RET]${alignr}${offset -24}${color2}open terminal${color}
|
||||
${offset 24}${color1}SUPER + b${alignr}${offset -24}${color2}open browser${color}
|
||||
${offset 24}${color1}SUPER + SHIFT + [RET]${alignr}${offset -24}${color2}run prompt${color}
|
||||
${offset 24}${color1}SUPER + SHIFT + c${alignr}${offset -24}${color2}close window${color}
|
||||
${offset 24}${color1}SUPER + h/j/k/l${alignr}${offset -24}${color2}move win focus${color}
|
||||
${offset 24}${color1}SUPER + SHIFT + h/j/k/l${alignr}${offset -24}${color2}move window${color}
|
||||
${offset 24}${color1}SUPER + [1-9]${alignr}${offset -24}${color2}switch workspace${color}
|
||||
${offset 24}${color1}SUPER + SHIFT + [1-9]${alignr}${offset -24}${color2}send window${color}
|
||||
${offset 24}${color1}SUPER + =/-${alignr}${offset -24}${color2}shrink/expand${color}
|
||||
${offset 24}${color1}SUPER + SHIFT + r${alignr}${offset -24}${color2}restart qtile${color}
|
||||
${offset 24}${color1}SUPER + SHIFT + q${alignr}${offset -24}${color2}quit qtile${color}
|
||||
${alignc}${color4}----------------------------------------------------------------------------${color}
|
||||
${offset 24}${color1}SUPER + e, e${alignr}${offset -24}${color2}launch emacs${color}
|
||||
${offset 24}${color1}SUPER + e, b${alignr}${offset -24}${color2}ibuffer${color}
|
||||
${offset 24}${color1}SUPER + e, d${alignr}${offset -24}${color2}dired${color}
|
||||
${alignc}${color4}----------------------------------------------------------------------------${color}
|
||||
${offset 24}${color1}SUPER + p, h${alignr}${offset -24}${color2}dm-hub${color}
|
||||
${offset 24}${color1}SUPER + p, b${alignr}${offset -24}${color2}dm-setbg${color}
|
||||
${offset 24}${color1}SUPER + p, s${alignr}${offset -24}${color2}dm-websearch${color}
|
||||
]]
|
||||
100
.config/conky/qtile/04/TomorrowNight.conf
Normal file
@@ -0,0 +1,100 @@
|
||||
conky.config = {
|
||||
--==============================================================================
|
||||
|
||||
-- DTOS 02 CONKY
|
||||
-- This conky theme was originally based on the Mimosa Dark theme created by
|
||||
-- author "Closebox73". I have removed many of the original widgets that theme
|
||||
-- Mimosa theme used, and I added the DTOS keybinding information.
|
||||
|
||||
--==============================================================================
|
||||
|
||||
-- Size and Position settings --
|
||||
alignment = 'top_right',
|
||||
gap_x = 30,
|
||||
gap_y = 30,
|
||||
maximum_width = 300,
|
||||
minimum_height = 705,
|
||||
minimum_width = 300,
|
||||
|
||||
-- Text settings --
|
||||
use_xft = true,
|
||||
override_utf8_locale = true,
|
||||
font = 'Roboto:normal:size=9',
|
||||
|
||||
|
||||
border_inner_margin = 4, -- margin between border and text
|
||||
border_outer_margin = 0, -- margin between border and edge of window
|
||||
border_width = 0, -- border width in pixels
|
||||
|
||||
-- Color Settings --
|
||||
default_color = 'ededed',
|
||||
default_outline_color = 'white',
|
||||
default_shade_color = 'white',
|
||||
color1 = 'c5c8c6',
|
||||
color2 = 'b294bb',
|
||||
color3 = '70c0ba',
|
||||
color4 = '4d4d4d',
|
||||
color5 = 'b5bd68',
|
||||
|
||||
-- Window Settings --
|
||||
background = false,
|
||||
border_width = 1,
|
||||
draw_borders = false,
|
||||
draw_graph_borders = false,
|
||||
draw_outline = false,
|
||||
draw_shades = false,
|
||||
own_window = true,
|
||||
own_window_colour = '000000',
|
||||
own_window_class = 'Conky',
|
||||
own_window_argb_visual = false,
|
||||
own_window_type = 'override',
|
||||
own_window_transparent = true,
|
||||
own_window_hints = 'undecorated,below,sticky,skip_taskbar,skip_pager',
|
||||
stippled_borders = 0,
|
||||
|
||||
-- Others --
|
||||
cpu_avg_samples = 2,
|
||||
net_avg_samples = 2,
|
||||
double_buffer = true,
|
||||
out_to_console = false,
|
||||
out_to_stderr = false,
|
||||
extra_newline = false,
|
||||
update_interval = 1,
|
||||
uppercase = false,
|
||||
use_spacer = 'none',
|
||||
show_graph_scale = false,
|
||||
show_graph_range = false,
|
||||
lua_load = '~/.config/conky/qtile/02/scripts/TomorrowNight.lua',
|
||||
lua_draw_hook_pre = 'ring_stats',
|
||||
}
|
||||
|
||||
conky.text = [[
|
||||
${image ~/.config/conky/qtile/02/bg/TomorrowNight.png -s 300x673 -p 0,35}
|
||||
${alignc}${voffset 26}${color3}${font Raleway:bold:size=40}${time %H:%M}${font}${color}
|
||||
${alignc}${voffset 5}${font Raleway:size=14}${time %A, %B %d}
|
||||
${offset 34}${voffset 90}${color}${font Bebas Neue:size=18}${cpu cpu0}%${goto 104}${memperc}%${goto 180}${battery_percent BAT0}%${goto 230}${execi 2 ~/.config/conky/qtile/02/scripts/cputemp.sh}
|
||||
${offset 24}${voffset -2}${color}${font Raleway:size=10}/ :${goto 170}${font Raleway:size=10}/home :
|
||||
${offset 24}${color3}${font Raleway:size=9}${fs_bar 10,111}${goto 170}${color3}${font Raleway:size=9}${fs_bar 10,111 /home}
|
||||
${offset 24}${color}${font Raleway:size=9}${fs_used} / ${fs_size}${goto 170}${color}${font Raleway:size=8}${fs_used /home} / ${fs_size /home}${font}
|
||||
${voffset 32}${color5}${alignc}${font Raleway:bold:size=12}QTILE KEYBINDINGS${font}${color}
|
||||
${alignc}${color4}----------------------------------------------------------------------------${color}
|
||||
${offset 24}${color1}SUPER + [RET]${alignr}${offset -24}${color2}open terminal${color}
|
||||
${offset 24}${color1}SUPER + b${alignr}${offset -24}${color2}open browser${color}
|
||||
${offset 24}${color1}SUPER + SHIFT + [RET]${alignr}${offset -24}${color2}run prompt${color}
|
||||
${offset 24}${color1}SUPER + SHIFT + c${alignr}${offset -24}${color2}close window${color}
|
||||
${offset 24}${color1}SUPER + h/j/k/l${alignr}${offset -24}${color2}move win focus${color}
|
||||
${offset 24}${color1}SUPER + SHIFT + h/j/k/l${alignr}${offset -24}${color2}move window${color}
|
||||
${offset 24}${color1}SUPER + [1-9]${alignr}${offset -24}${color2}switch workspace${color}
|
||||
${offset 24}${color1}SUPER + SHIFT + [1-9]${alignr}${offset -24}${color2}send window${color}
|
||||
${offset 24}${color1}SUPER + =/-${alignr}${offset -24}${color2}shrink/expand${color}
|
||||
${offset 24}${color1}SUPER + SHIFT + r${alignr}${offset -24}${color2}restart qtile${color}
|
||||
${offset 24}${color1}SUPER + SHIFT + q${alignr}${offset -24}${color2}quit qtile${color}
|
||||
${alignc}${color4}----------------------------------------------------------------------------${color}
|
||||
${offset 24}${color1}SUPER + e, e${alignr}${offset -24}${color2}launch emacs${color}
|
||||
${offset 24}${color1}SUPER + e, b${alignr}${offset -24}${color2}ibuffer${color}
|
||||
${offset 24}${color1}SUPER + e, d${alignr}${offset -24}${color2}dired${color}
|
||||
${alignc}${color4}----------------------------------------------------------------------------${color}
|
||||
${offset 24}${color1}SUPER + p, h${alignr}${offset -24}${color2}dm-hub${color}
|
||||
${offset 24}${color1}SUPER + p, b${alignr}${offset -24}${color2}dm-setbg${color}
|
||||
${offset 24}${color1}SUPER + p, s${alignr}${offset -24}${color2}dm-websearch${color}
|
||||
]]
|
||||
BIN
.config/conky/qtile/04/bg/DoomOne.png
Normal file
|
After Width: | Height: | Size: 27 KiB |
BIN
.config/conky/qtile/04/bg/Dracula.png
Normal file
|
After Width: | Height: | Size: 26 KiB |
BIN
.config/conky/qtile/04/bg/GruvboxDark.png
Normal file
|
After Width: | Height: | Size: 26 KiB |
BIN
.config/conky/qtile/04/bg/MonokaiPro.png
Normal file
|
After Width: | Height: | Size: 26 KiB |
BIN
.config/conky/qtile/04/bg/Nord.png
Normal file
|
After Width: | Height: | Size: 26 KiB |
BIN
.config/conky/qtile/04/bg/OceanicNext.png
Normal file
|
After Width: | Height: | Size: 26 KiB |
BIN
.config/conky/qtile/04/bg/Palenight.png
Normal file
|
After Width: | Height: | Size: 26 KiB |
BIN
.config/conky/qtile/04/bg/SolarizedDark.png
Normal file
|
After Width: | Height: | Size: 26 KiB |
BIN
.config/conky/qtile/04/bg/SolarizedLight.png
Normal file
|
After Width: | Height: | Size: 25 KiB |
BIN
.config/conky/qtile/04/bg/TomorrowNight.png
Normal file
|
After Width: | Height: | Size: 26 KiB |
BIN
.config/conky/qtile/04/bg/bg.png
Normal file
|
After Width: | Height: | Size: 28 KiB |
BIN
.config/conky/qtile/04/fonts/Abel.zip
Normal file
BIN
.config/conky/qtile/04/fonts/BebasNeue-Regular.ttf
Normal file
BIN
.config/conky/qtile/04/fonts/Material.ttf
Executable file
BIN
.config/conky/qtile/04/fonts/feather.ttf
Normal file
141
.config/conky/qtile/04/scripts/DoomOne.lua
Normal file
@@ -0,0 +1,141 @@
|
||||
--[[
|
||||
Ring Meters by londonali1010 (2009)
|
||||
|
||||
This script draws percentage meters as rings. It is fully customisable; all options are described in the script.
|
||||
|
||||
IMPORTANT: if you are using the 'cpu' function, it will cause a segmentation fault if it tries to draw a ring straight away. The if statement near the end of the script uses a delay to make sure that this doesn't happen. It calculates the length of the delay by the number of updates since Conky started. Generally, a value of 5s is long enough, so if you update Conky every 1s, use update_num > 5 in that if statement (the default). If you only update Conky every 2s, you should change it to update_num > 3; conversely if you update Conky every 0.5s, you should use update_num > 10. ALSO, if you change your Conky, is it best to use "killall conky; conky" to update it, otherwise the update_num will not be reset and you will get an error.
|
||||
|
||||
To call this script in Conky, use the following (assuming that you save this script to ~/scripts/rings.lua):
|
||||
lua_load ~/scripts/rings-v1.2.1.lua
|
||||
lua_draw_hook_pre ring_stats
|
||||
|
||||
Changelog:
|
||||
+ v1.2.1 -- Fixed minor bug that caused script to crash if conky_parse() returns a nil value (20.10.2009)
|
||||
+ v1.2 -- Added option for the ending angle of the rings (07.10.2009)
|
||||
+ v1.1 -- Added options for the starting angle of the rings, and added the "max" variable, to allow for variables that output a numerical value rather than a percentage (29.09.2009)
|
||||
+ v1.0 -- Original release (28.09.2009)
|
||||
]]
|
||||
|
||||
settings_table = {
|
||||
|
||||
{
|
||||
name='cpu',
|
||||
arg='cpu0',
|
||||
max=100,
|
||||
bg_colour=0xffffff,
|
||||
bg_alpha=0.2,
|
||||
fg_colour=0xc678dd,
|
||||
fg_alpha=1,
|
||||
x=49.5, y=182.3,
|
||||
radius=25,
|
||||
thickness=7,
|
||||
start_angle=0,
|
||||
end_angle=360,
|
||||
},
|
||||
{
|
||||
name='memperc',
|
||||
arg='',
|
||||
max=100,
|
||||
bg_colour=0xffffff,
|
||||
bg_alpha=0.2,
|
||||
fg_colour=0x98be65,
|
||||
fg_alpha=1,
|
||||
x=119.5, y=182.3,
|
||||
radius=25,
|
||||
thickness=7,
|
||||
start_angle=0,
|
||||
end_angle=360
|
||||
},
|
||||
{
|
||||
name='battery_percent',
|
||||
arg='BAT0',
|
||||
max=100,
|
||||
bg_colour=0xffffff,
|
||||
bg_alpha=0.2,
|
||||
fg_colour=0xda8548,
|
||||
fg_alpha=1,
|
||||
x=190, y=182.3,
|
||||
radius=25,
|
||||
thickness=7,
|
||||
start_angle=0,
|
||||
end_angle=360
|
||||
},
|
||||
{
|
||||
name='hwmon temp 1',
|
||||
arg='',
|
||||
max=100,
|
||||
bg_colour=0xffffff,
|
||||
bg_alpha=0.2,
|
||||
fg_colour=0xff6c6b,
|
||||
fg_alpha=1,
|
||||
x=259.5, y=182.3,
|
||||
radius=25,
|
||||
thickness=7,
|
||||
start_angle=0,
|
||||
end_angle=360,
|
||||
},
|
||||
|
||||
|
||||
}
|
||||
|
||||
require 'cairo'
|
||||
|
||||
function rgb_to_r_g_b(colour,alpha)
|
||||
return ((colour / 0x10000) % 0x100) / 255., ((colour / 0x100) % 0x100) / 255., (colour % 0x100) / 255., alpha
|
||||
end
|
||||
|
||||
function draw_ring(cr,t,pt)
|
||||
local w,h=conky_window.width,conky_window.height
|
||||
|
||||
local xc,yc,ring_r,ring_w,sa,ea=pt['x'],pt['y'],pt['radius'],pt['thickness'],pt['start_angle'],pt['end_angle']
|
||||
local bgc, bga, fgc, fga=pt['bg_colour'], pt['bg_alpha'], pt['fg_colour'], pt['fg_alpha']
|
||||
|
||||
local angle_0=sa*(2*math.pi/360)-math.pi/2
|
||||
local angle_f=ea*(2*math.pi/360)-math.pi/2
|
||||
local t_arc=t*(angle_f-angle_0)
|
||||
|
||||
-- Draw background ring
|
||||
|
||||
cairo_arc(cr,xc,yc,ring_r,angle_0,angle_f)
|
||||
cairo_set_source_rgba(cr,rgb_to_r_g_b(bgc,bga))
|
||||
cairo_set_line_width(cr,ring_w)
|
||||
cairo_stroke(cr)
|
||||
|
||||
-- Draw indicator ring
|
||||
|
||||
cairo_arc(cr,xc,yc,ring_r,angle_0,angle_0+t_arc)
|
||||
cairo_set_source_rgba(cr,rgb_to_r_g_b(fgc,fga))
|
||||
cairo_stroke(cr)
|
||||
end
|
||||
|
||||
function conky_ring_stats()
|
||||
local function setup_rings(cr,pt)
|
||||
local str=''
|
||||
local value=0
|
||||
|
||||
str=string.format('${%s %s}',pt['name'],pt['arg'])
|
||||
str=conky_parse(str)
|
||||
|
||||
value=tonumber(str)
|
||||
if value == nil then value = 0 end
|
||||
pct=value/pt['max']
|
||||
|
||||
draw_ring(cr,pct,pt)
|
||||
end
|
||||
|
||||
if conky_window==nil then return end
|
||||
local cs=cairo_xlib_surface_create(conky_window.display,conky_window.drawable,conky_window.visual, conky_window.width,conky_window.height)
|
||||
|
||||
local cr=cairo_create(cs)
|
||||
|
||||
local updates=conky_parse('${updates}')
|
||||
update_num=tonumber(updates)
|
||||
|
||||
if update_num>5 then
|
||||
for i in pairs(settings_table) do
|
||||
setup_rings(cr,settings_table[i])
|
||||
end
|
||||
end
|
||||
cairo_surface_destroy(cs)
|
||||
cairo_destroy(cr)
|
||||
end
|
||||
141
.config/conky/qtile/04/scripts/Dracula.lua
Normal file
@@ -0,0 +1,141 @@
|
||||
--[[
|
||||
Ring Meters by londonali1010 (2009)
|
||||
|
||||
This script draws percentage meters as rings. It is fully customisable; all options are described in the script.
|
||||
|
||||
IMPORTANT: if you are using the 'cpu' function, it will cause a segmentation fault if it tries to draw a ring straight away. The if statement near the end of the script uses a delay to make sure that this doesn't happen. It calculates the length of the delay by the number of updates since Conky started. Generally, a value of 5s is long enough, so if you update Conky every 1s, use update_num > 5 in that if statement (the default). If you only update Conky every 2s, you should change it to update_num > 3; conversely if you update Conky every 0.5s, you should use update_num > 10. ALSO, if you change your Conky, is it best to use "killall conky; conky" to update it, otherwise the update_num will not be reset and you will get an error.
|
||||
|
||||
To call this script in Conky, use the following (assuming that you save this script to ~/scripts/rings.lua):
|
||||
lua_load ~/scripts/rings-v1.2.1.lua
|
||||
lua_draw_hook_pre ring_stats
|
||||
|
||||
Changelog:
|
||||
+ v1.2.1 -- Fixed minor bug that caused script to crash if conky_parse() returns a nil value (20.10.2009)
|
||||
+ v1.2 -- Added option for the ending angle of the rings (07.10.2009)
|
||||
+ v1.1 -- Added options for the starting angle of the rings, and added the "max" variable, to allow for variables that output a numerical value rather than a percentage (29.09.2009)
|
||||
+ v1.0 -- Original release (28.09.2009)
|
||||
]]
|
||||
|
||||
settings_table = {
|
||||
|
||||
{
|
||||
name='cpu',
|
||||
arg='cpu0',
|
||||
max=100,
|
||||
bg_colour=0xffffff,
|
||||
bg_alpha=0.2,
|
||||
fg_colour=0xbd93f9,
|
||||
fg_alpha=1,
|
||||
x=49.5, y=182.3,
|
||||
radius=25,
|
||||
thickness=7,
|
||||
start_angle=0,
|
||||
end_angle=360,
|
||||
},
|
||||
{
|
||||
name='memperc',
|
||||
arg='',
|
||||
max=100,
|
||||
bg_colour=0xffffff,
|
||||
bg_alpha=0.2,
|
||||
fg_colour=0x50fa7b,
|
||||
fg_alpha=1,
|
||||
x=119.5, y=182.3,
|
||||
radius=25,
|
||||
thickness=7,
|
||||
start_angle=0,
|
||||
end_angle=360
|
||||
},
|
||||
{
|
||||
name='battery_percent',
|
||||
arg='BAT0',
|
||||
max=100,
|
||||
bg_colour=0xffffff,
|
||||
bg_alpha=0.2,
|
||||
fg_colour=0xf1fa8c,
|
||||
fg_alpha=1,
|
||||
x=190, y=182.3,
|
||||
radius=25,
|
||||
thickness=7,
|
||||
start_angle=0,
|
||||
end_angle=360
|
||||
},
|
||||
{
|
||||
name='hwmon temp 1',
|
||||
arg='',
|
||||
max=100,
|
||||
bg_colour=0xffffff,
|
||||
bg_alpha=0.2,
|
||||
fg_colour=0xff79c6,
|
||||
fg_alpha=1,
|
||||
x=259.5, y=182.3,
|
||||
radius=25,
|
||||
thickness=7,
|
||||
start_angle=0,
|
||||
end_angle=360,
|
||||
},
|
||||
|
||||
|
||||
}
|
||||
|
||||
require 'cairo'
|
||||
|
||||
function rgb_to_r_g_b(colour,alpha)
|
||||
return ((colour / 0x10000) % 0x100) / 255., ((colour / 0x100) % 0x100) / 255., (colour % 0x100) / 255., alpha
|
||||
end
|
||||
|
||||
function draw_ring(cr,t,pt)
|
||||
local w,h=conky_window.width,conky_window.height
|
||||
|
||||
local xc,yc,ring_r,ring_w,sa,ea=pt['x'],pt['y'],pt['radius'],pt['thickness'],pt['start_angle'],pt['end_angle']
|
||||
local bgc, bga, fgc, fga=pt['bg_colour'], pt['bg_alpha'], pt['fg_colour'], pt['fg_alpha']
|
||||
|
||||
local angle_0=sa*(2*math.pi/360)-math.pi/2
|
||||
local angle_f=ea*(2*math.pi/360)-math.pi/2
|
||||
local t_arc=t*(angle_f-angle_0)
|
||||
|
||||
-- Draw background ring
|
||||
|
||||
cairo_arc(cr,xc,yc,ring_r,angle_0,angle_f)
|
||||
cairo_set_source_rgba(cr,rgb_to_r_g_b(bgc,bga))
|
||||
cairo_set_line_width(cr,ring_w)
|
||||
cairo_stroke(cr)
|
||||
|
||||
-- Draw indicator ring
|
||||
|
||||
cairo_arc(cr,xc,yc,ring_r,angle_0,angle_0+t_arc)
|
||||
cairo_set_source_rgba(cr,rgb_to_r_g_b(fgc,fga))
|
||||
cairo_stroke(cr)
|
||||
end
|
||||
|
||||
function conky_ring_stats()
|
||||
local function setup_rings(cr,pt)
|
||||
local str=''
|
||||
local value=0
|
||||
|
||||
str=string.format('${%s %s}',pt['name'],pt['arg'])
|
||||
str=conky_parse(str)
|
||||
|
||||
value=tonumber(str)
|
||||
if value == nil then value = 0 end
|
||||
pct=value/pt['max']
|
||||
|
||||
draw_ring(cr,pct,pt)
|
||||
end
|
||||
|
||||
if conky_window==nil then return end
|
||||
local cs=cairo_xlib_surface_create(conky_window.display,conky_window.drawable,conky_window.visual, conky_window.width,conky_window.height)
|
||||
|
||||
local cr=cairo_create(cs)
|
||||
|
||||
local updates=conky_parse('${updates}')
|
||||
update_num=tonumber(updates)
|
||||
|
||||
if update_num>5 then
|
||||
for i in pairs(settings_table) do
|
||||
setup_rings(cr,settings_table[i])
|
||||
end
|
||||
end
|
||||
cairo_surface_destroy(cs)
|
||||
cairo_destroy(cr)
|
||||
end
|
||||
141
.config/conky/qtile/04/scripts/GruvboxDark.lua
Normal file
@@ -0,0 +1,141 @@
|
||||
--[[
|
||||
Ring Meters by londonali1010 (2009)
|
||||
|
||||
This script draws percentage meters as rings. It is fully customisable; all options are described in the script.
|
||||
|
||||
IMPORTANT: if you are using the 'cpu' function, it will cause a segmentation fault if it tries to draw a ring straight away. The if statement near the end of the script uses a delay to make sure that this doesn't happen. It calculates the length of the delay by the number of updates since Conky started. Generally, a value of 5s is long enough, so if you update Conky every 1s, use update_num > 5 in that if statement (the default). If you only update Conky every 2s, you should change it to update_num > 3; conversely if you update Conky every 0.5s, you should use update_num > 10. ALSO, if you change your Conky, is it best to use "killall conky; conky" to update it, otherwise the update_num will not be reset and you will get an error.
|
||||
|
||||
To call this script in Conky, use the following (assuming that you save this script to ~/scripts/rings.lua):
|
||||
lua_load ~/scripts/rings-v1.2.1.lua
|
||||
lua_draw_hook_pre ring_stats
|
||||
|
||||
Changelog:
|
||||
+ v1.2.1 -- Fixed minor bug that caused script to crash if conky_parse() returns a nil value (20.10.2009)
|
||||
+ v1.2 -- Added option for the ending angle of the rings (07.10.2009)
|
||||
+ v1.1 -- Added options for the starting angle of the rings, and added the "max" variable, to allow for variables that output a numerical value rather than a percentage (29.09.2009)
|
||||
+ v1.0 -- Original release (28.09.2009)
|
||||
]]
|
||||
|
||||
settings_table = {
|
||||
|
||||
{
|
||||
name='cpu',
|
||||
arg='cpu0',
|
||||
max=100,
|
||||
bg_colour=0xffffff,
|
||||
bg_alpha=0.2,
|
||||
fg_colour=0x83a598,
|
||||
fg_alpha=1,
|
||||
x=49.5, y=182.3,
|
||||
radius=25,
|
||||
thickness=7,
|
||||
start_angle=0,
|
||||
end_angle=360,
|
||||
},
|
||||
{
|
||||
name='memperc',
|
||||
arg='',
|
||||
max=100,
|
||||
bg_colour=0xffffff,
|
||||
bg_alpha=0.2,
|
||||
fg_colour=0x98971a,
|
||||
fg_alpha=1,
|
||||
x=119.5, y=182.3,
|
||||
radius=25,
|
||||
thickness=7,
|
||||
start_angle=0,
|
||||
end_angle=360
|
||||
},
|
||||
{
|
||||
name='battery_percent',
|
||||
arg='BAT0',
|
||||
max=100,
|
||||
bg_colour=0xffffff,
|
||||
bg_alpha=0.2,
|
||||
fg_colour=0xd79921,
|
||||
fg_alpha=1,
|
||||
x=190, y=182.3,
|
||||
radius=25,
|
||||
thickness=7,
|
||||
start_angle=0,
|
||||
end_angle=360
|
||||
},
|
||||
{
|
||||
name='hwmon temp 1',
|
||||
arg='',
|
||||
max=100,
|
||||
bg_colour=0xffffff,
|
||||
bg_alpha=0.2,
|
||||
fg_colour=0xfb4934,
|
||||
fg_alpha=1,
|
||||
x=259.5, y=182.3,
|
||||
radius=25,
|
||||
thickness=7,
|
||||
start_angle=0,
|
||||
end_angle=360,
|
||||
},
|
||||
|
||||
|
||||
}
|
||||
|
||||
require 'cairo'
|
||||
|
||||
function rgb_to_r_g_b(colour,alpha)
|
||||
return ((colour / 0x10000) % 0x100) / 255., ((colour / 0x100) % 0x100) / 255., (colour % 0x100) / 255., alpha
|
||||
end
|
||||
|
||||
function draw_ring(cr,t,pt)
|
||||
local w,h=conky_window.width,conky_window.height
|
||||
|
||||
local xc,yc,ring_r,ring_w,sa,ea=pt['x'],pt['y'],pt['radius'],pt['thickness'],pt['start_angle'],pt['end_angle']
|
||||
local bgc, bga, fgc, fga=pt['bg_colour'], pt['bg_alpha'], pt['fg_colour'], pt['fg_alpha']
|
||||
|
||||
local angle_0=sa*(2*math.pi/360)-math.pi/2
|
||||
local angle_f=ea*(2*math.pi/360)-math.pi/2
|
||||
local t_arc=t*(angle_f-angle_0)
|
||||
|
||||
-- Draw background ring
|
||||
|
||||
cairo_arc(cr,xc,yc,ring_r,angle_0,angle_f)
|
||||
cairo_set_source_rgba(cr,rgb_to_r_g_b(bgc,bga))
|
||||
cairo_set_line_width(cr,ring_w)
|
||||
cairo_stroke(cr)
|
||||
|
||||
-- Draw indicator ring
|
||||
|
||||
cairo_arc(cr,xc,yc,ring_r,angle_0,angle_0+t_arc)
|
||||
cairo_set_source_rgba(cr,rgb_to_r_g_b(fgc,fga))
|
||||
cairo_stroke(cr)
|
||||
end
|
||||
|
||||
function conky_ring_stats()
|
||||
local function setup_rings(cr,pt)
|
||||
local str=''
|
||||
local value=0
|
||||
|
||||
str=string.format('${%s %s}',pt['name'],pt['arg'])
|
||||
str=conky_parse(str)
|
||||
|
||||
value=tonumber(str)
|
||||
if value == nil then value = 0 end
|
||||
pct=value/pt['max']
|
||||
|
||||
draw_ring(cr,pct,pt)
|
||||
end
|
||||
|
||||
if conky_window==nil then return end
|
||||
local cs=cairo_xlib_surface_create(conky_window.display,conky_window.drawable,conky_window.visual, conky_window.width,conky_window.height)
|
||||
|
||||
local cr=cairo_create(cs)
|
||||
|
||||
local updates=conky_parse('${updates}')
|
||||
update_num=tonumber(updates)
|
||||
|
||||
if update_num>5 then
|
||||
for i in pairs(settings_table) do
|
||||
setup_rings(cr,settings_table[i])
|
||||
end
|
||||
end
|
||||
cairo_surface_destroy(cs)
|
||||
cairo_destroy(cr)
|
||||
end
|
||||
141
.config/conky/qtile/04/scripts/MonokaiPro.lua
Normal file
@@ -0,0 +1,141 @@
|
||||
--[[
|
||||
Ring Meters by londonali1010 (2009)
|
||||
|
||||
This script draws percentage meters as rings. It is fully customisable; all options are described in the script.
|
||||
|
||||
IMPORTANT: if you are using the 'cpu' function, it will cause a segmentation fault if it tries to draw a ring straight away. The if statement near the end of the script uses a delay to make sure that this doesn't happen. It calculates the length of the delay by the number of updates since Conky started. Generally, a value of 5s is long enough, so if you update Conky every 1s, use update_num > 5 in that if statement (the default). If you only update Conky every 2s, you should change it to update_num > 3; conversely if you update Conky every 0.5s, you should use update_num > 10. ALSO, if you change your Conky, is it best to use "killall conky; conky" to update it, otherwise the update_num will not be reset and you will get an error.
|
||||
|
||||
To call this script in Conky, use the following (assuming that you save this script to ~/scripts/rings.lua):
|
||||
lua_load ~/scripts/rings-v1.2.1.lua
|
||||
lua_draw_hook_pre ring_stats
|
||||
|
||||
Changelog:
|
||||
+ v1.2.1 -- Fixed minor bug that caused script to crash if conky_parse() returns a nil value (20.10.2009)
|
||||
+ v1.2 -- Added option for the ending angle of the rings (07.10.2009)
|
||||
+ v1.1 -- Added options for the starting angle of the rings, and added the "max" variable, to allow for variables that output a numerical value rather than a percentage (29.09.2009)
|
||||
+ v1.0 -- Original release (28.09.2009)
|
||||
]]
|
||||
|
||||
settings_table = {
|
||||
|
||||
{
|
||||
name='cpu',
|
||||
arg='cpu0',
|
||||
max=100,
|
||||
bg_colour=0xffffff,
|
||||
bg_alpha=0.2,
|
||||
fg_colour=0x78dce8,
|
||||
fg_alpha=1,
|
||||
x=49.5, y=182.3,
|
||||
radius=25,
|
||||
thickness=7,
|
||||
start_angle=0,
|
||||
end_angle=360,
|
||||
},
|
||||
{
|
||||
name='memperc',
|
||||
arg='',
|
||||
max=100,
|
||||
bg_colour=0xffffff,
|
||||
bg_alpha=0.2,
|
||||
fg_colour=0xa9dc76,
|
||||
fg_alpha=1,
|
||||
x=119.5, y=182.3,
|
||||
radius=25,
|
||||
thickness=7,
|
||||
start_angle=0,
|
||||
end_angle=360
|
||||
},
|
||||
{
|
||||
name='battery_percent',
|
||||
arg='BAT0',
|
||||
max=100,
|
||||
bg_colour=0xffffff,
|
||||
bg_alpha=0.2,
|
||||
fg_colour=0xfc9867,
|
||||
fg_alpha=1,
|
||||
x=190, y=182.3,
|
||||
radius=25,
|
||||
thickness=7,
|
||||
start_angle=0,
|
||||
end_angle=360
|
||||
},
|
||||
{
|
||||
name='hwmon temp 1',
|
||||
arg='',
|
||||
max=100,
|
||||
bg_colour=0xffffff,
|
||||
bg_alpha=0.2,
|
||||
fg_colour=0xff6188,
|
||||
fg_alpha=1,
|
||||
x=259.5, y=182.3,
|
||||
radius=25,
|
||||
thickness=7,
|
||||
start_angle=0,
|
||||
end_angle=360,
|
||||
},
|
||||
|
||||
|
||||
}
|
||||
|
||||
require 'cairo'
|
||||
|
||||
function rgb_to_r_g_b(colour,alpha)
|
||||
return ((colour / 0x10000) % 0x100) / 255., ((colour / 0x100) % 0x100) / 255., (colour % 0x100) / 255., alpha
|
||||
end
|
||||
|
||||
function draw_ring(cr,t,pt)
|
||||
local w,h=conky_window.width,conky_window.height
|
||||
|
||||
local xc,yc,ring_r,ring_w,sa,ea=pt['x'],pt['y'],pt['radius'],pt['thickness'],pt['start_angle'],pt['end_angle']
|
||||
local bgc, bga, fgc, fga=pt['bg_colour'], pt['bg_alpha'], pt['fg_colour'], pt['fg_alpha']
|
||||
|
||||
local angle_0=sa*(2*math.pi/360)-math.pi/2
|
||||
local angle_f=ea*(2*math.pi/360)-math.pi/2
|
||||
local t_arc=t*(angle_f-angle_0)
|
||||
|
||||
-- Draw background ring
|
||||
|
||||
cairo_arc(cr,xc,yc,ring_r,angle_0,angle_f)
|
||||
cairo_set_source_rgba(cr,rgb_to_r_g_b(bgc,bga))
|
||||
cairo_set_line_width(cr,ring_w)
|
||||
cairo_stroke(cr)
|
||||
|
||||
-- Draw indicator ring
|
||||
|
||||
cairo_arc(cr,xc,yc,ring_r,angle_0,angle_0+t_arc)
|
||||
cairo_set_source_rgba(cr,rgb_to_r_g_b(fgc,fga))
|
||||
cairo_stroke(cr)
|
||||
end
|
||||
|
||||
function conky_ring_stats()
|
||||
local function setup_rings(cr,pt)
|
||||
local str=''
|
||||
local value=0
|
||||
|
||||
str=string.format('${%s %s}',pt['name'],pt['arg'])
|
||||
str=conky_parse(str)
|
||||
|
||||
value=tonumber(str)
|
||||
if value == nil then value = 0 end
|
||||
pct=value/pt['max']
|
||||
|
||||
draw_ring(cr,pct,pt)
|
||||
end
|
||||
|
||||
if conky_window==nil then return end
|
||||
local cs=cairo_xlib_surface_create(conky_window.display,conky_window.drawable,conky_window.visual, conky_window.width,conky_window.height)
|
||||
|
||||
local cr=cairo_create(cs)
|
||||
|
||||
local updates=conky_parse('${updates}')
|
||||
update_num=tonumber(updates)
|
||||
|
||||
if update_num>5 then
|
||||
for i in pairs(settings_table) do
|
||||
setup_rings(cr,settings_table[i])
|
||||
end
|
||||
end
|
||||
cairo_surface_destroy(cs)
|
||||
cairo_destroy(cr)
|
||||
end
|
||||
141
.config/conky/qtile/04/scripts/Nord.lua
Normal file
@@ -0,0 +1,141 @@
|
||||
--[[
|
||||
Ring Meters by londonali1010 (2009)
|
||||
|
||||
This script draws percentage meters as rings. It is fully customisable; all options are described in the script.
|
||||
|
||||
IMPORTANT: if you are using the 'cpu' function, it will cause a segmentation fault if it tries to draw a ring straight away. The if statement near the end of the script uses a delay to make sure that this doesn't happen. It calculates the length of the delay by the number of updates since Conky started. Generally, a value of 5s is long enough, so if you update Conky every 1s, use update_num > 5 in that if statement (the default). If you only update Conky every 2s, you should change it to update_num > 3; conversely if you update Conky every 0.5s, you should use update_num > 10. ALSO, if you change your Conky, is it best to use "killall conky; conky" to update it, otherwise the update_num will not be reset and you will get an error.
|
||||
|
||||
To call this script in Conky, use the following (assuming that you save this script to ~/scripts/rings.lua):
|
||||
lua_load ~/scripts/rings-v1.2.1.lua
|
||||
lua_draw_hook_pre ring_stats
|
||||
|
||||
Changelog:
|
||||
+ v1.2.1 -- Fixed minor bug that caused script to crash if conky_parse() returns a nil value (20.10.2009)
|
||||
+ v1.2 -- Added option for the ending angle of the rings (07.10.2009)
|
||||
+ v1.1 -- Added options for the starting angle of the rings, and added the "max" variable, to allow for variables that output a numerical value rather than a percentage (29.09.2009)
|
||||
+ v1.0 -- Original release (28.09.2009)
|
||||
]]
|
||||
|
||||
settings_table = {
|
||||
|
||||
{
|
||||
name='cpu',
|
||||
arg='cpu0',
|
||||
max=100,
|
||||
bg_colour=0xffffff,
|
||||
bg_alpha=0.2,
|
||||
fg_colour=0x88c0d0,
|
||||
fg_alpha=1,
|
||||
x=49.5, y=182.3,
|
||||
radius=25,
|
||||
thickness=7,
|
||||
start_angle=0,
|
||||
end_angle=360,
|
||||
},
|
||||
{
|
||||
name='memperc',
|
||||
arg='',
|
||||
max=100,
|
||||
bg_colour=0xffffff,
|
||||
bg_alpha=0.2,
|
||||
fg_colour=0xa3be8c,
|
||||
fg_alpha=1,
|
||||
x=119.5, y=182.3,
|
||||
radius=25,
|
||||
thickness=7,
|
||||
start_angle=0,
|
||||
end_angle=360
|
||||
},
|
||||
{
|
||||
name='battery_percent',
|
||||
arg='BAT0',
|
||||
max=100,
|
||||
bg_colour=0xffffff,
|
||||
bg_alpha=0.2,
|
||||
fg_colour=0xebcb8b,
|
||||
fg_alpha=1,
|
||||
x=190, y=182.3,
|
||||
radius=25,
|
||||
thickness=7,
|
||||
start_angle=0,
|
||||
end_angle=360
|
||||
},
|
||||
{
|
||||
name='hwmon temp 1',
|
||||
arg='',
|
||||
max=100,
|
||||
bg_colour=0xffffff,
|
||||
bg_alpha=0.2,
|
||||
fg_colour=0xbf616a,
|
||||
fg_alpha=1,
|
||||
x=259.5, y=182.3,
|
||||
radius=25,
|
||||
thickness=7,
|
||||
start_angle=0,
|
||||
end_angle=360,
|
||||
},
|
||||
|
||||
|
||||
}
|
||||
|
||||
require 'cairo'
|
||||
|
||||
function rgb_to_r_g_b(colour,alpha)
|
||||
return ((colour / 0x10000) % 0x100) / 255., ((colour / 0x100) % 0x100) / 255., (colour % 0x100) / 255., alpha
|
||||
end
|
||||
|
||||
function draw_ring(cr,t,pt)
|
||||
local w,h=conky_window.width,conky_window.height
|
||||
|
||||
local xc,yc,ring_r,ring_w,sa,ea=pt['x'],pt['y'],pt['radius'],pt['thickness'],pt['start_angle'],pt['end_angle']
|
||||
local bgc, bga, fgc, fga=pt['bg_colour'], pt['bg_alpha'], pt['fg_colour'], pt['fg_alpha']
|
||||
|
||||
local angle_0=sa*(2*math.pi/360)-math.pi/2
|
||||
local angle_f=ea*(2*math.pi/360)-math.pi/2
|
||||
local t_arc=t*(angle_f-angle_0)
|
||||
|
||||
-- Draw background ring
|
||||
|
||||
cairo_arc(cr,xc,yc,ring_r,angle_0,angle_f)
|
||||
cairo_set_source_rgba(cr,rgb_to_r_g_b(bgc,bga))
|
||||
cairo_set_line_width(cr,ring_w)
|
||||
cairo_stroke(cr)
|
||||
|
||||
-- Draw indicator ring
|
||||
|
||||
cairo_arc(cr,xc,yc,ring_r,angle_0,angle_0+t_arc)
|
||||
cairo_set_source_rgba(cr,rgb_to_r_g_b(fgc,fga))
|
||||
cairo_stroke(cr)
|
||||
end
|
||||
|
||||
function conky_ring_stats()
|
||||
local function setup_rings(cr,pt)
|
||||
local str=''
|
||||
local value=0
|
||||
|
||||
str=string.format('${%s %s}',pt['name'],pt['arg'])
|
||||
str=conky_parse(str)
|
||||
|
||||
value=tonumber(str)
|
||||
if value == nil then value = 0 end
|
||||
pct=value/pt['max']
|
||||
|
||||
draw_ring(cr,pct,pt)
|
||||
end
|
||||
|
||||
if conky_window==nil then return end
|
||||
local cs=cairo_xlib_surface_create(conky_window.display,conky_window.drawable,conky_window.visual, conky_window.width,conky_window.height)
|
||||
|
||||
local cr=cairo_create(cs)
|
||||
|
||||
local updates=conky_parse('${updates}')
|
||||
update_num=tonumber(updates)
|
||||
|
||||
if update_num>5 then
|
||||
for i in pairs(settings_table) do
|
||||
setup_rings(cr,settings_table[i])
|
||||
end
|
||||
end
|
||||
cairo_surface_destroy(cs)
|
||||
cairo_destroy(cr)
|
||||
end
|
||||
141
.config/conky/qtile/04/scripts/OceanicNext.lua
Normal file
@@ -0,0 +1,141 @@
|
||||
--[[
|
||||
Ring Meters by londonali1010 (2009)
|
||||
|
||||
This script draws percentage meters as rings. It is fully customisable; all options are described in the script.
|
||||
|
||||
IMPORTANT: if you are using the 'cpu' function, it will cause a segmentation fault if it tries to draw a ring straight away. The if statement near the end of the script uses a delay to make sure that this doesn't happen. It calculates the length of the delay by the number of updates since Conky started. Generally, a value of 5s is long enough, so if you update Conky every 1s, use update_num > 5 in that if statement (the default). If you only update Conky every 2s, you should change it to update_num > 3; conversely if you update Conky every 0.5s, you should use update_num > 10. ALSO, if you change your Conky, is it best to use "killall conky; conky" to update it, otherwise the update_num will not be reset and you will get an error.
|
||||
|
||||
To call this script in Conky, use the following (assuming that you save this script to ~/scripts/rings.lua):
|
||||
lua_load ~/scripts/rings-v1.2.1.lua
|
||||
lua_draw_hook_pre ring_stats
|
||||
|
||||
Changelog:
|
||||
+ v1.2.1 -- Fixed minor bug that caused script to crash if conky_parse() returns a nil value (20.10.2009)
|
||||
+ v1.2 -- Added option for the ending angle of the rings (07.10.2009)
|
||||
+ v1.1 -- Added options for the starting angle of the rings, and added the "max" variable, to allow for variables that output a numerical value rather than a percentage (29.09.2009)
|
||||
+ v1.0 -- Original release (28.09.2009)
|
||||
]]
|
||||
|
||||
settings_table = {
|
||||
|
||||
{
|
||||
name='cpu',
|
||||
arg='cpu0',
|
||||
max=100,
|
||||
bg_colour=0xffffff,
|
||||
bg_alpha=0.2,
|
||||
fg_colour=0x5fb3b3,
|
||||
fg_alpha=1,
|
||||
x=49.5, y=182.3,
|
||||
radius=25,
|
||||
thickness=7,
|
||||
start_angle=0,
|
||||
end_angle=360,
|
||||
},
|
||||
{
|
||||
name='memperc',
|
||||
arg='',
|
||||
max=100,
|
||||
bg_colour=0xffffff,
|
||||
bg_alpha=0.2,
|
||||
fg_colour=0x99c794,
|
||||
fg_alpha=1,
|
||||
x=119.5, y=182.3,
|
||||
radius=25,
|
||||
thickness=7,
|
||||
start_angle=0,
|
||||
end_angle=360
|
||||
},
|
||||
{
|
||||
name='battery_percent',
|
||||
arg='BAT0',
|
||||
max=100,
|
||||
bg_colour=0xffffff,
|
||||
bg_alpha=0.2,
|
||||
fg_colour=0xfac863,
|
||||
fg_alpha=1,
|
||||
x=190, y=182.3,
|
||||
radius=25,
|
||||
thickness=7,
|
||||
start_angle=0,
|
||||
end_angle=360
|
||||
},
|
||||
{
|
||||
name='hwmon temp 1',
|
||||
arg='',
|
||||
max=100,
|
||||
bg_colour=0xffffff,
|
||||
bg_alpha=0.2,
|
||||
fg_colour=0xec5f67,
|
||||
fg_alpha=1,
|
||||
x=259.5, y=182.3,
|
||||
radius=25,
|
||||
thickness=7,
|
||||
start_angle=0,
|
||||
end_angle=360,
|
||||
},
|
||||
|
||||
|
||||
}
|
||||
|
||||
require 'cairo'
|
||||
|
||||
function rgb_to_r_g_b(colour,alpha)
|
||||
return ((colour / 0x10000) % 0x100) / 255., ((colour / 0x100) % 0x100) / 255., (colour % 0x100) / 255., alpha
|
||||
end
|
||||
|
||||
function draw_ring(cr,t,pt)
|
||||
local w,h=conky_window.width,conky_window.height
|
||||
|
||||
local xc,yc,ring_r,ring_w,sa,ea=pt['x'],pt['y'],pt['radius'],pt['thickness'],pt['start_angle'],pt['end_angle']
|
||||
local bgc, bga, fgc, fga=pt['bg_colour'], pt['bg_alpha'], pt['fg_colour'], pt['fg_alpha']
|
||||
|
||||
local angle_0=sa*(2*math.pi/360)-math.pi/2
|
||||
local angle_f=ea*(2*math.pi/360)-math.pi/2
|
||||
local t_arc=t*(angle_f-angle_0)
|
||||
|
||||
-- Draw background ring
|
||||
|
||||
cairo_arc(cr,xc,yc,ring_r,angle_0,angle_f)
|
||||
cairo_set_source_rgba(cr,rgb_to_r_g_b(bgc,bga))
|
||||
cairo_set_line_width(cr,ring_w)
|
||||
cairo_stroke(cr)
|
||||
|
||||
-- Draw indicator ring
|
||||
|
||||
cairo_arc(cr,xc,yc,ring_r,angle_0,angle_0+t_arc)
|
||||
cairo_set_source_rgba(cr,rgb_to_r_g_b(fgc,fga))
|
||||
cairo_stroke(cr)
|
||||
end
|
||||
|
||||
function conky_ring_stats()
|
||||
local function setup_rings(cr,pt)
|
||||
local str=''
|
||||
local value=0
|
||||
|
||||
str=string.format('${%s %s}',pt['name'],pt['arg'])
|
||||
str=conky_parse(str)
|
||||
|
||||
value=tonumber(str)
|
||||
if value == nil then value = 0 end
|
||||
pct=value/pt['max']
|
||||
|
||||
draw_ring(cr,pct,pt)
|
||||
end
|
||||
|
||||
if conky_window==nil then return end
|
||||
local cs=cairo_xlib_surface_create(conky_window.display,conky_window.drawable,conky_window.visual, conky_window.width,conky_window.height)
|
||||
|
||||
local cr=cairo_create(cs)
|
||||
|
||||
local updates=conky_parse('${updates}')
|
||||
update_num=tonumber(updates)
|
||||
|
||||
if update_num>5 then
|
||||
for i in pairs(settings_table) do
|
||||
setup_rings(cr,settings_table[i])
|
||||
end
|
||||
end
|
||||
cairo_surface_destroy(cs)
|
||||
cairo_destroy(cr)
|
||||
end
|
||||
141
.config/conky/qtile/04/scripts/Palenight.lua
Normal file
@@ -0,0 +1,141 @@
|
||||
--[[
|
||||
Ring Meters by londonali1010 (2009)
|
||||
|
||||
This script draws percentage meters as rings. It is fully customisable; all options are described in the script.
|
||||
|
||||
IMPORTANT: if you are using the 'cpu' function, it will cause a segmentation fault if it tries to draw a ring straight away. The if statement near the end of the script uses a delay to make sure that this doesn't happen. It calculates the length of the delay by the number of updates since Conky started. Generally, a value of 5s is long enough, so if you update Conky every 1s, use update_num > 5 in that if statement (the default). If you only update Conky every 2s, you should change it to update_num > 3; conversely if you update Conky every 0.5s, you should use update_num > 10. ALSO, if you change your Conky, is it best to use "killall conky; conky" to update it, otherwise the update_num will not be reset and you will get an error.
|
||||
|
||||
To call this script in Conky, use the following (assuming that you save this script to ~/scripts/rings.lua):
|
||||
lua_load ~/scripts/rings-v1.2.1.lua
|
||||
lua_draw_hook_pre ring_stats
|
||||
|
||||
Changelog:
|
||||
+ v1.2.1 -- Fixed minor bug that caused script to crash if conky_parse() returns a nil value (20.10.2009)
|
||||
+ v1.2 -- Added option for the ending angle of the rings (07.10.2009)
|
||||
+ v1.1 -- Added options for the starting angle of the rings, and added the "max" variable, to allow for variables that output a numerical value rather than a percentage (29.09.2009)
|
||||
+ v1.0 -- Original release (28.09.2009)
|
||||
]]
|
||||
|
||||
settings_table = {
|
||||
|
||||
{
|
||||
name='cpu',
|
||||
arg='cpu0',
|
||||
max=100,
|
||||
bg_colour=0xffffff,
|
||||
bg_alpha=0.2,
|
||||
fg_colour=0x89ddff,
|
||||
fg_alpha=1,
|
||||
x=49.5, y=182.3,
|
||||
radius=25,
|
||||
thickness=7,
|
||||
start_angle=0,
|
||||
end_angle=360,
|
||||
},
|
||||
{
|
||||
name='memperc',
|
||||
arg='',
|
||||
max=100,
|
||||
bg_colour=0xffffff,
|
||||
bg_alpha=0.2,
|
||||
fg_colour=0xc3e88d,
|
||||
fg_alpha=1,
|
||||
x=119.5, y=182.3,
|
||||
radius=25,
|
||||
thickness=7,
|
||||
start_angle=0,
|
||||
end_angle=360
|
||||
},
|
||||
{
|
||||
name='battery_percent',
|
||||
arg='BAT0',
|
||||
max=100,
|
||||
bg_colour=0xffffff,
|
||||
bg_alpha=0.2,
|
||||
fg_colour=0xffcb6b,
|
||||
fg_alpha=1,
|
||||
x=190, y=182.3,
|
||||
radius=25,
|
||||
thickness=7,
|
||||
start_angle=0,
|
||||
end_angle=360
|
||||
},
|
||||
{
|
||||
name='hwmon temp 1',
|
||||
arg='',
|
||||
max=100,
|
||||
bg_colour=0xffffff,
|
||||
bg_alpha=0.2,
|
||||
fg_colour=0xf07178,
|
||||
fg_alpha=1,
|
||||
x=259.5, y=182.3,
|
||||
radius=25,
|
||||
thickness=7,
|
||||
start_angle=0,
|
||||
end_angle=360,
|
||||
},
|
||||
|
||||
|
||||
}
|
||||
|
||||
require 'cairo'
|
||||
|
||||
function rgb_to_r_g_b(colour,alpha)
|
||||
return ((colour / 0x10000) % 0x100) / 255., ((colour / 0x100) % 0x100) / 255., (colour % 0x100) / 255., alpha
|
||||
end
|
||||
|
||||
function draw_ring(cr,t,pt)
|
||||
local w,h=conky_window.width,conky_window.height
|
||||
|
||||
local xc,yc,ring_r,ring_w,sa,ea=pt['x'],pt['y'],pt['radius'],pt['thickness'],pt['start_angle'],pt['end_angle']
|
||||
local bgc, bga, fgc, fga=pt['bg_colour'], pt['bg_alpha'], pt['fg_colour'], pt['fg_alpha']
|
||||
|
||||
local angle_0=sa*(2*math.pi/360)-math.pi/2
|
||||
local angle_f=ea*(2*math.pi/360)-math.pi/2
|
||||
local t_arc=t*(angle_f-angle_0)
|
||||
|
||||
-- Draw background ring
|
||||
|
||||
cairo_arc(cr,xc,yc,ring_r,angle_0,angle_f)
|
||||
cairo_set_source_rgba(cr,rgb_to_r_g_b(bgc,bga))
|
||||
cairo_set_line_width(cr,ring_w)
|
||||
cairo_stroke(cr)
|
||||
|
||||
-- Draw indicator ring
|
||||
|
||||
cairo_arc(cr,xc,yc,ring_r,angle_0,angle_0+t_arc)
|
||||
cairo_set_source_rgba(cr,rgb_to_r_g_b(fgc,fga))
|
||||
cairo_stroke(cr)
|
||||
end
|
||||
|
||||
function conky_ring_stats()
|
||||
local function setup_rings(cr,pt)
|
||||
local str=''
|
||||
local value=0
|
||||
|
||||
str=string.format('${%s %s}',pt['name'],pt['arg'])
|
||||
str=conky_parse(str)
|
||||
|
||||
value=tonumber(str)
|
||||
if value == nil then value = 0 end
|
||||
pct=value/pt['max']
|
||||
|
||||
draw_ring(cr,pct,pt)
|
||||
end
|
||||
|
||||
if conky_window==nil then return end
|
||||
local cs=cairo_xlib_surface_create(conky_window.display,conky_window.drawable,conky_window.visual, conky_window.width,conky_window.height)
|
||||
|
||||
local cr=cairo_create(cs)
|
||||
|
||||
local updates=conky_parse('${updates}')
|
||||
update_num=tonumber(updates)
|
||||
|
||||
if update_num>5 then
|
||||
for i in pairs(settings_table) do
|
||||
setup_rings(cr,settings_table[i])
|
||||
end
|
||||
end
|
||||
cairo_surface_destroy(cs)
|
||||
cairo_destroy(cr)
|
||||
end
|
||||
141
.config/conky/qtile/04/scripts/SolarizedDark.lua
Normal file
@@ -0,0 +1,141 @@
|
||||
--[[
|
||||
Ring Meters by londonali1010 (2009)
|
||||
|
||||
This script draws percentage meters as rings. It is fully customisable; all options are described in the script.
|
||||
|
||||
IMPORTANT: if you are using the 'cpu' function, it will cause a segmentation fault if it tries to draw a ring straight away. The if statement near the end of the script uses a delay to make sure that this doesn't happen. It calculates the length of the delay by the number of updates since Conky started. Generally, a value of 5s is long enough, so if you update Conky every 1s, use update_num > 5 in that if statement (the default). If you only update Conky every 2s, you should change it to update_num > 3; conversely if you update Conky every 0.5s, you should use update_num > 10. ALSO, if you change your Conky, is it best to use "killall conky; conky" to update it, otherwise the update_num will not be reset and you will get an error.
|
||||
|
||||
To call this script in Conky, use the following (assuming that you save this script to ~/scripts/rings.lua):
|
||||
lua_load ~/scripts/rings-v1.2.1.lua
|
||||
lua_draw_hook_pre ring_stats
|
||||
|
||||
Changelog:
|
||||
+ v1.2.1 -- Fixed minor bug that caused script to crash if conky_parse() returns a nil value (20.10.2009)
|
||||
+ v1.2 -- Added option for the ending angle of the rings (07.10.2009)
|
||||
+ v1.1 -- Added options for the starting angle of the rings, and added the "max" variable, to allow for variables that output a numerical value rather than a percentage (29.09.2009)
|
||||
+ v1.0 -- Original release (28.09.2009)
|
||||
]]
|
||||
|
||||
settings_table = {
|
||||
|
||||
{
|
||||
name='cpu',
|
||||
arg='cpu0',
|
||||
max=100,
|
||||
bg_colour=0xffffff,
|
||||
bg_alpha=0.2,
|
||||
fg_colour=0x2aa198,
|
||||
fg_alpha=1,
|
||||
x=49.5, y=182.3,
|
||||
radius=25,
|
||||
thickness=7,
|
||||
start_angle=0,
|
||||
end_angle=360,
|
||||
},
|
||||
{
|
||||
name='memperc',
|
||||
arg='',
|
||||
max=100,
|
||||
bg_colour=0xffffff,
|
||||
bg_alpha=0.2,
|
||||
fg_colour=0x859900,
|
||||
fg_alpha=1,
|
||||
x=119.5, y=182.3,
|
||||
radius=25,
|
||||
thickness=7,
|
||||
start_angle=0,
|
||||
end_angle=360
|
||||
},
|
||||
{
|
||||
name='battery_percent',
|
||||
arg='BAT0',
|
||||
max=100,
|
||||
bg_colour=0xffffff,
|
||||
bg_alpha=0.2,
|
||||
fg_colour=0xb58900,
|
||||
fg_alpha=1,
|
||||
x=190, y=182.3,
|
||||
radius=25,
|
||||
thickness=7,
|
||||
start_angle=0,
|
||||
end_angle=360
|
||||
},
|
||||
{
|
||||
name='hwmon temp 1',
|
||||
arg='',
|
||||
max=100,
|
||||
bg_colour=0xffffff,
|
||||
bg_alpha=0.2,
|
||||
fg_colour=0xdc322f,
|
||||
fg_alpha=1,
|
||||
x=259.5, y=182.3,
|
||||
radius=25,
|
||||
thickness=7,
|
||||
start_angle=0,
|
||||
end_angle=360,
|
||||
},
|
||||
|
||||
|
||||
}
|
||||
|
||||
require 'cairo'
|
||||
|
||||
function rgb_to_r_g_b(colour,alpha)
|
||||
return ((colour / 0x10000) % 0x100) / 255., ((colour / 0x100) % 0x100) / 255., (colour % 0x100) / 255., alpha
|
||||
end
|
||||
|
||||
function draw_ring(cr,t,pt)
|
||||
local w,h=conky_window.width,conky_window.height
|
||||
|
||||
local xc,yc,ring_r,ring_w,sa,ea=pt['x'],pt['y'],pt['radius'],pt['thickness'],pt['start_angle'],pt['end_angle']
|
||||
local bgc, bga, fgc, fga=pt['bg_colour'], pt['bg_alpha'], pt['fg_colour'], pt['fg_alpha']
|
||||
|
||||
local angle_0=sa*(2*math.pi/360)-math.pi/2
|
||||
local angle_f=ea*(2*math.pi/360)-math.pi/2
|
||||
local t_arc=t*(angle_f-angle_0)
|
||||
|
||||
-- Draw background ring
|
||||
|
||||
cairo_arc(cr,xc,yc,ring_r,angle_0,angle_f)
|
||||
cairo_set_source_rgba(cr,rgb_to_r_g_b(bgc,bga))
|
||||
cairo_set_line_width(cr,ring_w)
|
||||
cairo_stroke(cr)
|
||||
|
||||
-- Draw indicator ring
|
||||
|
||||
cairo_arc(cr,xc,yc,ring_r,angle_0,angle_0+t_arc)
|
||||
cairo_set_source_rgba(cr,rgb_to_r_g_b(fgc,fga))
|
||||
cairo_stroke(cr)
|
||||
end
|
||||
|
||||
function conky_ring_stats()
|
||||
local function setup_rings(cr,pt)
|
||||
local str=''
|
||||
local value=0
|
||||
|
||||
str=string.format('${%s %s}',pt['name'],pt['arg'])
|
||||
str=conky_parse(str)
|
||||
|
||||
value=tonumber(str)
|
||||
if value == nil then value = 0 end
|
||||
pct=value/pt['max']
|
||||
|
||||
draw_ring(cr,pct,pt)
|
||||
end
|
||||
|
||||
if conky_window==nil then return end
|
||||
local cs=cairo_xlib_surface_create(conky_window.display,conky_window.drawable,conky_window.visual, conky_window.width,conky_window.height)
|
||||
|
||||
local cr=cairo_create(cs)
|
||||
|
||||
local updates=conky_parse('${updates}')
|
||||
update_num=tonumber(updates)
|
||||
|
||||
if update_num>5 then
|
||||
for i in pairs(settings_table) do
|
||||
setup_rings(cr,settings_table[i])
|
||||
end
|
||||
end
|
||||
cairo_surface_destroy(cs)
|
||||
cairo_destroy(cr)
|
||||
end
|
||||
141
.config/conky/qtile/04/scripts/SolarizedLight.lua
Normal file
@@ -0,0 +1,141 @@
|
||||
--[[
|
||||
Ring Meters by londonali1010 (2009)
|
||||
|
||||
This script draws percentage meters as rings. It is fully customisable; all options are described in the script.
|
||||
|
||||
IMPORTANT: if you are using the 'cpu' function, it will cause a segmentation fault if it tries to draw a ring straight away. The if statement near the end of the script uses a delay to make sure that this doesn't happen. It calculates the length of the delay by the number of updates since Conky started. Generally, a value of 5s is long enough, so if you update Conky every 1s, use update_num > 5 in that if statement (the default). If you only update Conky every 2s, you should change it to update_num > 3; conversely if you update Conky every 0.5s, you should use update_num > 10. ALSO, if you change your Conky, is it best to use "killall conky; conky" to update it, otherwise the update_num will not be reset and you will get an error.
|
||||
|
||||
To call this script in Conky, use the following (assuming that you save this script to ~/scripts/rings.lua):
|
||||
lua_load ~/scripts/rings-v1.2.1.lua
|
||||
lua_draw_hook_pre ring_stats
|
||||
|
||||
Changelog:
|
||||
+ v1.2.1 -- Fixed minor bug that caused script to crash if conky_parse() returns a nil value (20.10.2009)
|
||||
+ v1.2 -- Added option for the ending angle of the rings (07.10.2009)
|
||||
+ v1.1 -- Added options for the starting angle of the rings, and added the "max" variable, to allow for variables that output a numerical value rather than a percentage (29.09.2009)
|
||||
+ v1.0 -- Original release (28.09.2009)
|
||||
]]
|
||||
|
||||
settings_table = {
|
||||
|
||||
{
|
||||
name='cpu',
|
||||
arg='cpu0',
|
||||
max=100,
|
||||
bg_colour=0x000000,
|
||||
bg_alpha=0.2,
|
||||
fg_colour=0x2aa198,
|
||||
fg_alpha=1,
|
||||
x=49.5, y=182.3,
|
||||
radius=25,
|
||||
thickness=7,
|
||||
start_angle=0,
|
||||
end_angle=360,
|
||||
},
|
||||
{
|
||||
name='memperc',
|
||||
arg='',
|
||||
max=100,
|
||||
bg_colour=0x000000,
|
||||
bg_alpha=0.2,
|
||||
fg_colour=0x859900,
|
||||
fg_alpha=1,
|
||||
x=119.5, y=182.3,
|
||||
radius=25,
|
||||
thickness=7,
|
||||
start_angle=0,
|
||||
end_angle=360
|
||||
},
|
||||
{
|
||||
name='battery_percent',
|
||||
arg='BAT0',
|
||||
max=100,
|
||||
bg_colour=0x000000,
|
||||
bg_alpha=0.2,
|
||||
fg_colour=0xb58900,
|
||||
fg_alpha=1,
|
||||
x=190, y=182.3,
|
||||
radius=25,
|
||||
thickness=7,
|
||||
start_angle=0,
|
||||
end_angle=360
|
||||
},
|
||||
{
|
||||
name='hwmon temp 1',
|
||||
arg='',
|
||||
max=100,
|
||||
bg_colour=0x000000,
|
||||
bg_alpha=0.2,
|
||||
fg_colour=0xdc322f,
|
||||
fg_alpha=1,
|
||||
x=259.5, y=182.3,
|
||||
radius=25,
|
||||
thickness=7,
|
||||
start_angle=0,
|
||||
end_angle=360,
|
||||
},
|
||||
|
||||
|
||||
}
|
||||
|
||||
require 'cairo'
|
||||
|
||||
function rgb_to_r_g_b(colour,alpha)
|
||||
return ((colour / 0x10000) % 0x100) / 255., ((colour / 0x100) % 0x100) / 255., (colour % 0x100) / 255., alpha
|
||||
end
|
||||
|
||||
function draw_ring(cr,t,pt)
|
||||
local w,h=conky_window.width,conky_window.height
|
||||
|
||||
local xc,yc,ring_r,ring_w,sa,ea=pt['x'],pt['y'],pt['radius'],pt['thickness'],pt['start_angle'],pt['end_angle']
|
||||
local bgc, bga, fgc, fga=pt['bg_colour'], pt['bg_alpha'], pt['fg_colour'], pt['fg_alpha']
|
||||
|
||||
local angle_0=sa*(2*math.pi/360)-math.pi/2
|
||||
local angle_f=ea*(2*math.pi/360)-math.pi/2
|
||||
local t_arc=t*(angle_f-angle_0)
|
||||
|
||||
-- Draw background ring
|
||||
|
||||
cairo_arc(cr,xc,yc,ring_r,angle_0,angle_f)
|
||||
cairo_set_source_rgba(cr,rgb_to_r_g_b(bgc,bga))
|
||||
cairo_set_line_width(cr,ring_w)
|
||||
cairo_stroke(cr)
|
||||
|
||||
-- Draw indicator ring
|
||||
|
||||
cairo_arc(cr,xc,yc,ring_r,angle_0,angle_0+t_arc)
|
||||
cairo_set_source_rgba(cr,rgb_to_r_g_b(fgc,fga))
|
||||
cairo_stroke(cr)
|
||||
end
|
||||
|
||||
function conky_ring_stats()
|
||||
local function setup_rings(cr,pt)
|
||||
local str=''
|
||||
local value=0
|
||||
|
||||
str=string.format('${%s %s}',pt['name'],pt['arg'])
|
||||
str=conky_parse(str)
|
||||
|
||||
value=tonumber(str)
|
||||
if value == nil then value = 0 end
|
||||
pct=value/pt['max']
|
||||
|
||||
draw_ring(cr,pct,pt)
|
||||
end
|
||||
|
||||
if conky_window==nil then return end
|
||||
local cs=cairo_xlib_surface_create(conky_window.display,conky_window.drawable,conky_window.visual, conky_window.width,conky_window.height)
|
||||
|
||||
local cr=cairo_create(cs)
|
||||
|
||||
local updates=conky_parse('${updates}')
|
||||
update_num=tonumber(updates)
|
||||
|
||||
if update_num>5 then
|
||||
for i in pairs(settings_table) do
|
||||
setup_rings(cr,settings_table[i])
|
||||
end
|
||||
end
|
||||
cairo_surface_destroy(cs)
|
||||
cairo_destroy(cr)
|
||||
end
|
||||
141
.config/conky/qtile/04/scripts/TomorrowNight.lua
Normal file
@@ -0,0 +1,141 @@
|
||||
--[[
|
||||
Ring Meters by londonali1010 (2009)
|
||||
|
||||
This script draws percentage meters as rings. It is fully customisable; all options are described in the script.
|
||||
|
||||
IMPORTANT: if you are using the 'cpu' function, it will cause a segmentation fault if it tries to draw a ring straight away. The if statement near the end of the script uses a delay to make sure that this doesn't happen. It calculates the length of the delay by the number of updates since Conky started. Generally, a value of 5s is long enough, so if you update Conky every 1s, use update_num > 5 in that if statement (the default). If you only update Conky every 2s, you should change it to update_num > 3; conversely if you update Conky every 0.5s, you should use update_num > 10. ALSO, if you change your Conky, is it best to use "killall conky; conky" to update it, otherwise the update_num will not be reset and you will get an error.
|
||||
|
||||
To call this script in Conky, use the following (assuming that you save this script to ~/scripts/rings.lua):
|
||||
lua_load ~/scripts/rings-v1.2.1.lua
|
||||
lua_draw_hook_pre ring_stats
|
||||
|
||||
Changelog:
|
||||
+ v1.2.1 -- Fixed minor bug that caused script to crash if conky_parse() returns a nil value (20.10.2009)
|
||||
+ v1.2 -- Added option for the ending angle of the rings (07.10.2009)
|
||||
+ v1.1 -- Added options for the starting angle of the rings, and added the "max" variable, to allow for variables that output a numerical value rather than a percentage (29.09.2009)
|
||||
+ v1.0 -- Original release (28.09.2009)
|
||||
]]
|
||||
|
||||
settings_table = {
|
||||
|
||||
{
|
||||
name='cpu',
|
||||
arg='cpu0',
|
||||
max=100,
|
||||
bg_colour=0xffffff,
|
||||
bg_alpha=0.2,
|
||||
fg_colour=0x81a2be,
|
||||
fg_alpha=1,
|
||||
x=49.5, y=182.3,
|
||||
radius=25,
|
||||
thickness=7,
|
||||
start_angle=0,
|
||||
end_angle=360,
|
||||
},
|
||||
{
|
||||
name='memperc',
|
||||
arg='',
|
||||
max=100,
|
||||
bg_colour=0xffffff,
|
||||
bg_alpha=0.2,
|
||||
fg_colour=0xb5bd68,
|
||||
fg_alpha=1,
|
||||
x=119.5, y=182.3,
|
||||
radius=25,
|
||||
thickness=7,
|
||||
start_angle=0,
|
||||
end_angle=360
|
||||
},
|
||||
{
|
||||
name='battery_percent',
|
||||
arg='BAT0',
|
||||
max=100,
|
||||
bg_colour=0xffffff,
|
||||
bg_alpha=0.2,
|
||||
fg_colour=0xe6c547,
|
||||
fg_alpha=1,
|
||||
x=190, y=182.3,
|
||||
radius=25,
|
||||
thickness=7,
|
||||
start_angle=0,
|
||||
end_angle=360
|
||||
},
|
||||
{
|
||||
name='hwmon temp 1',
|
||||
arg='',
|
||||
max=100,
|
||||
bg_colour=0xffffff,
|
||||
bg_alpha=0.2,
|
||||
fg_colour=0xcc6666,
|
||||
fg_alpha=1,
|
||||
x=259.5, y=182.3,
|
||||
radius=25,
|
||||
thickness=7,
|
||||
start_angle=0,
|
||||
end_angle=360,
|
||||
},
|
||||
|
||||
|
||||
}
|
||||
|
||||
require 'cairo'
|
||||
|
||||
function rgb_to_r_g_b(colour,alpha)
|
||||
return ((colour / 0x10000) % 0x100) / 255., ((colour / 0x100) % 0x100) / 255., (colour % 0x100) / 255., alpha
|
||||
end
|
||||
|
||||
function draw_ring(cr,t,pt)
|
||||
local w,h=conky_window.width,conky_window.height
|
||||
|
||||
local xc,yc,ring_r,ring_w,sa,ea=pt['x'],pt['y'],pt['radius'],pt['thickness'],pt['start_angle'],pt['end_angle']
|
||||
local bgc, bga, fgc, fga=pt['bg_colour'], pt['bg_alpha'], pt['fg_colour'], pt['fg_alpha']
|
||||
|
||||
local angle_0=sa*(2*math.pi/360)-math.pi/2
|
||||
local angle_f=ea*(2*math.pi/360)-math.pi/2
|
||||
local t_arc=t*(angle_f-angle_0)
|
||||
|
||||
-- Draw background ring
|
||||
|
||||
cairo_arc(cr,xc,yc,ring_r,angle_0,angle_f)
|
||||
cairo_set_source_rgba(cr,rgb_to_r_g_b(bgc,bga))
|
||||
cairo_set_line_width(cr,ring_w)
|
||||
cairo_stroke(cr)
|
||||
|
||||
-- Draw indicator ring
|
||||
|
||||
cairo_arc(cr,xc,yc,ring_r,angle_0,angle_0+t_arc)
|
||||
cairo_set_source_rgba(cr,rgb_to_r_g_b(fgc,fga))
|
||||
cairo_stroke(cr)
|
||||
end
|
||||
|
||||
function conky_ring_stats()
|
||||
local function setup_rings(cr,pt)
|
||||
local str=''
|
||||
local value=0
|
||||
|
||||
str=string.format('${%s %s}',pt['name'],pt['arg'])
|
||||
str=conky_parse(str)
|
||||
|
||||
value=tonumber(str)
|
||||
if value == nil then value = 0 end
|
||||
pct=value/pt['max']
|
||||
|
||||
draw_ring(cr,pct,pt)
|
||||
end
|
||||
|
||||
if conky_window==nil then return end
|
||||
local cs=cairo_xlib_surface_create(conky_window.display,conky_window.drawable,conky_window.visual, conky_window.width,conky_window.height)
|
||||
|
||||
local cr=cairo_create(cs)
|
||||
|
||||
local updates=conky_parse('${updates}')
|
||||
update_num=tonumber(updates)
|
||||
|
||||
if update_num>5 then
|
||||
for i in pairs(settings_table) do
|
||||
setup_rings(cr,settings_table[i])
|
||||
end
|
||||
end
|
||||
cairo_surface_destroy(cs)
|
||||
cairo_destroy(cr)
|
||||
end
|
||||
7
.config/conky/qtile/04/scripts/cputemp.sh
Executable file
@@ -0,0 +1,7 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Main
|
||||
cpuTemp=$(sensors | grep Tctl | awk -F '+' '{print $2}')
|
||||
echo "$cpuTemp"
|
||||
|
||||
exit
|
||||
11
.config/conky/qtile/04/start.sh
Executable file
@@ -0,0 +1,11 @@
|
||||
#!/bin/bash
|
||||
|
||||
# This command will close all active conky
|
||||
killall conky
|
||||
sleep 2s
|
||||
|
||||
# Only the config listed below will be avtivated
|
||||
# if you want to combine with another theme, write the command here
|
||||
conky -c $HOME/.config/conky/Mimosa/Mimosa.conf &> /dev/null &
|
||||
|
||||
exit
|
||||