diff --git a/.config/conky/qtile/01/DoomOne.conf b/.config/conky/qtile/01/DoomOne.conf new file mode 100644 index 0000000..a00788f --- /dev/null +++ b/.config/conky/qtile/01/DoomOne.conf @@ -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} +]] \ No newline at end of file diff --git a/.config/conky/qtile/01/Dracula.conf b/.config/conky/qtile/01/Dracula.conf new file mode 100644 index 0000000..7065ecb --- /dev/null +++ b/.config/conky/qtile/01/Dracula.conf @@ -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} +]] diff --git a/.config/conky/qtile/01/GruvboxDark.conf b/.config/conky/qtile/01/GruvboxDark.conf new file mode 100644 index 0000000..f5af2bd --- /dev/null +++ b/.config/conky/qtile/01/GruvboxDark.conf @@ -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} +]] diff --git a/.config/conky/qtile/01/MonokaiPro.conf b/.config/conky/qtile/01/MonokaiPro.conf new file mode 100644 index 0000000..85d8d16 --- /dev/null +++ b/.config/conky/qtile/01/MonokaiPro.conf @@ -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} +]] diff --git a/.config/conky/qtile/01/Nord.conf b/.config/conky/qtile/01/Nord.conf new file mode 100644 index 0000000..3316288 --- /dev/null +++ b/.config/conky/qtile/01/Nord.conf @@ -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} +]] diff --git a/.config/conky/qtile/01/OceanicNext.conf b/.config/conky/qtile/01/OceanicNext.conf new file mode 100644 index 0000000..77b2ff1 --- /dev/null +++ b/.config/conky/qtile/01/OceanicNext.conf @@ -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} +]] diff --git a/.config/conky/qtile/01/Palenight.conf b/.config/conky/qtile/01/Palenight.conf new file mode 100644 index 0000000..dccb107 --- /dev/null +++ b/.config/conky/qtile/01/Palenight.conf @@ -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} +]] diff --git a/.config/conky/qtile/01/SolarizedDark.conf b/.config/conky/qtile/01/SolarizedDark.conf new file mode 100644 index 0000000..a9e5bb3 --- /dev/null +++ b/.config/conky/qtile/01/SolarizedDark.conf @@ -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} +]] diff --git a/.config/conky/qtile/01/SolarizedLight.conf b/.config/conky/qtile/01/SolarizedLight.conf new file mode 100644 index 0000000..3ccbedd --- /dev/null +++ b/.config/conky/qtile/01/SolarizedLight.conf @@ -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} +]] diff --git a/.config/conky/qtile/01/TomorrowNight.conf b/.config/conky/qtile/01/TomorrowNight.conf new file mode 100644 index 0000000..885be19 --- /dev/null +++ b/.config/conky/qtile/01/TomorrowNight.conf @@ -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} +]] diff --git a/.config/conky/qtile/01/bg/DoomOne.png b/.config/conky/qtile/01/bg/DoomOne.png new file mode 100644 index 0000000..a983deb Binary files /dev/null and b/.config/conky/qtile/01/bg/DoomOne.png differ diff --git a/.config/conky/qtile/01/bg/Dracula.png b/.config/conky/qtile/01/bg/Dracula.png new file mode 100644 index 0000000..bc97d00 Binary files /dev/null and b/.config/conky/qtile/01/bg/Dracula.png differ diff --git a/.config/conky/qtile/01/bg/GruvboxDark.png b/.config/conky/qtile/01/bg/GruvboxDark.png new file mode 100644 index 0000000..64877ba Binary files /dev/null and b/.config/conky/qtile/01/bg/GruvboxDark.png differ diff --git a/.config/conky/qtile/01/bg/MonokaiPro.png b/.config/conky/qtile/01/bg/MonokaiPro.png new file mode 100644 index 0000000..2c93bcd Binary files /dev/null and b/.config/conky/qtile/01/bg/MonokaiPro.png differ diff --git a/.config/conky/qtile/01/bg/Nord.png b/.config/conky/qtile/01/bg/Nord.png new file mode 100644 index 0000000..befa87e Binary files /dev/null and b/.config/conky/qtile/01/bg/Nord.png differ diff --git a/.config/conky/qtile/01/bg/OceanicNext.png b/.config/conky/qtile/01/bg/OceanicNext.png new file mode 100644 index 0000000..d025403 Binary files /dev/null and b/.config/conky/qtile/01/bg/OceanicNext.png differ diff --git a/.config/conky/qtile/01/bg/Palenight.png b/.config/conky/qtile/01/bg/Palenight.png new file mode 100644 index 0000000..462b69c Binary files /dev/null and b/.config/conky/qtile/01/bg/Palenight.png differ diff --git a/.config/conky/qtile/01/bg/SolarizedDark.png b/.config/conky/qtile/01/bg/SolarizedDark.png new file mode 100644 index 0000000..2624f1c Binary files /dev/null and b/.config/conky/qtile/01/bg/SolarizedDark.png differ diff --git a/.config/conky/qtile/01/bg/SolarizedLight.png b/.config/conky/qtile/01/bg/SolarizedLight.png new file mode 100644 index 0000000..c333f39 Binary files /dev/null and b/.config/conky/qtile/01/bg/SolarizedLight.png differ diff --git a/.config/conky/qtile/01/bg/TomorrowNight.png b/.config/conky/qtile/01/bg/TomorrowNight.png new file mode 100644 index 0000000..753857f Binary files /dev/null and b/.config/conky/qtile/01/bg/TomorrowNight.png differ diff --git a/.config/conky/qtile/01/bg/bg.png b/.config/conky/qtile/01/bg/bg.png new file mode 100644 index 0000000..edd5724 Binary files /dev/null and b/.config/conky/qtile/01/bg/bg.png differ diff --git a/.config/conky/qtile/01/fonts/Abel.zip b/.config/conky/qtile/01/fonts/Abel.zip new file mode 100644 index 0000000..630099a Binary files /dev/null and b/.config/conky/qtile/01/fonts/Abel.zip differ diff --git a/.config/conky/qtile/01/fonts/BebasNeue-Regular.ttf b/.config/conky/qtile/01/fonts/BebasNeue-Regular.ttf new file mode 100644 index 0000000..76e22b8 Binary files /dev/null and b/.config/conky/qtile/01/fonts/BebasNeue-Regular.ttf differ diff --git a/.config/conky/qtile/01/fonts/Material.ttf b/.config/conky/qtile/01/fonts/Material.ttf new file mode 100755 index 0000000..be66835 Binary files /dev/null and b/.config/conky/qtile/01/fonts/Material.ttf differ diff --git a/.config/conky/qtile/01/fonts/feather.ttf b/.config/conky/qtile/01/fonts/feather.ttf new file mode 100644 index 0000000..88bdfd0 Binary files /dev/null and b/.config/conky/qtile/01/fonts/feather.ttf differ diff --git a/.config/conky/qtile/01/scripts/DoomOne.lua b/.config/conky/qtile/01/scripts/DoomOne.lua new file mode 100644 index 0000000..b8b8d96 --- /dev/null +++ b/.config/conky/qtile/01/scripts/DoomOne.lua @@ -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 diff --git a/.config/conky/qtile/01/scripts/Dracula.lua b/.config/conky/qtile/01/scripts/Dracula.lua new file mode 100644 index 0000000..e36bbd3 --- /dev/null +++ b/.config/conky/qtile/01/scripts/Dracula.lua @@ -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 diff --git a/.config/conky/qtile/01/scripts/GruvboxDark.lua b/.config/conky/qtile/01/scripts/GruvboxDark.lua new file mode 100644 index 0000000..d04b7e2 --- /dev/null +++ b/.config/conky/qtile/01/scripts/GruvboxDark.lua @@ -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 diff --git a/.config/conky/qtile/01/scripts/MonokaiPro.lua b/.config/conky/qtile/01/scripts/MonokaiPro.lua new file mode 100644 index 0000000..ac4163c --- /dev/null +++ b/.config/conky/qtile/01/scripts/MonokaiPro.lua @@ -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 diff --git a/.config/conky/qtile/01/scripts/Nord.lua b/.config/conky/qtile/01/scripts/Nord.lua new file mode 100644 index 0000000..8ee1367 --- /dev/null +++ b/.config/conky/qtile/01/scripts/Nord.lua @@ -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 diff --git a/.config/conky/qtile/01/scripts/OceanicNext.lua b/.config/conky/qtile/01/scripts/OceanicNext.lua new file mode 100644 index 0000000..a8e65ed --- /dev/null +++ b/.config/conky/qtile/01/scripts/OceanicNext.lua @@ -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 diff --git a/.config/conky/qtile/01/scripts/Palenight.lua b/.config/conky/qtile/01/scripts/Palenight.lua new file mode 100644 index 0000000..d90512a --- /dev/null +++ b/.config/conky/qtile/01/scripts/Palenight.lua @@ -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 diff --git a/.config/conky/qtile/01/scripts/SolarizedDark.lua b/.config/conky/qtile/01/scripts/SolarizedDark.lua new file mode 100644 index 0000000..146c143 --- /dev/null +++ b/.config/conky/qtile/01/scripts/SolarizedDark.lua @@ -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 diff --git a/.config/conky/qtile/01/scripts/SolarizedLight.lua b/.config/conky/qtile/01/scripts/SolarizedLight.lua new file mode 100644 index 0000000..01f0e63 --- /dev/null +++ b/.config/conky/qtile/01/scripts/SolarizedLight.lua @@ -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 diff --git a/.config/conky/qtile/01/scripts/TomorrowNight.lua b/.config/conky/qtile/01/scripts/TomorrowNight.lua new file mode 100644 index 0000000..42fb970 --- /dev/null +++ b/.config/conky/qtile/01/scripts/TomorrowNight.lua @@ -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 diff --git a/.config/conky/qtile/01/scripts/cputemp.sh b/.config/conky/qtile/01/scripts/cputemp.sh new file mode 100755 index 0000000..a17b212 --- /dev/null +++ b/.config/conky/qtile/01/scripts/cputemp.sh @@ -0,0 +1,7 @@ +#!/bin/bash + +# Main +cpuTemp=$(sensors | grep Tctl | awk -F '+' '{print $2}') +echo "$cpuTemp" + +exit diff --git a/.config/conky/qtile/01/start.sh b/.config/conky/qtile/01/start.sh new file mode 100755 index 0000000..6df01a6 --- /dev/null +++ b/.config/conky/qtile/01/start.sh @@ -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 diff --git a/.config/conky/qtile/02/DoomOne.conf b/.config/conky/qtile/02/DoomOne.conf new file mode 100644 index 0000000..58131fe --- /dev/null +++ b/.config/conky/qtile/02/DoomOne.conf @@ -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} +]] \ No newline at end of file diff --git a/.config/conky/qtile/02/Dracula.conf b/.config/conky/qtile/02/Dracula.conf new file mode 100644 index 0000000..3896300 --- /dev/null +++ b/.config/conky/qtile/02/Dracula.conf @@ -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} +]] diff --git a/.config/conky/qtile/02/GruvboxDark.conf b/.config/conky/qtile/02/GruvboxDark.conf new file mode 100644 index 0000000..89fd679 --- /dev/null +++ b/.config/conky/qtile/02/GruvboxDark.conf @@ -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} +]] diff --git a/.config/conky/qtile/02/MonokaiPro.conf b/.config/conky/qtile/02/MonokaiPro.conf new file mode 100644 index 0000000..4d5cb73 --- /dev/null +++ b/.config/conky/qtile/02/MonokaiPro.conf @@ -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} +]] diff --git a/.config/conky/qtile/02/Nord.conf b/.config/conky/qtile/02/Nord.conf new file mode 100644 index 0000000..be7d6ad --- /dev/null +++ b/.config/conky/qtile/02/Nord.conf @@ -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} +]] diff --git a/.config/conky/qtile/02/OceanicNext.conf b/.config/conky/qtile/02/OceanicNext.conf new file mode 100644 index 0000000..1cb8ca8 --- /dev/null +++ b/.config/conky/qtile/02/OceanicNext.conf @@ -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} +]] diff --git a/.config/conky/qtile/02/Palenight.conf b/.config/conky/qtile/02/Palenight.conf new file mode 100644 index 0000000..5c286c1 --- /dev/null +++ b/.config/conky/qtile/02/Palenight.conf @@ -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} +]] diff --git a/.config/conky/qtile/02/SolarizedDark.conf b/.config/conky/qtile/02/SolarizedDark.conf new file mode 100644 index 0000000..6e3a401 --- /dev/null +++ b/.config/conky/qtile/02/SolarizedDark.conf @@ -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} +]] diff --git a/.config/conky/qtile/02/SolarizedLight.conf b/.config/conky/qtile/02/SolarizedLight.conf new file mode 100644 index 0000000..8d580e6 --- /dev/null +++ b/.config/conky/qtile/02/SolarizedLight.conf @@ -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} +]] diff --git a/.config/conky/qtile/02/TomorrowNight.conf b/.config/conky/qtile/02/TomorrowNight.conf new file mode 100644 index 0000000..6247cae --- /dev/null +++ b/.config/conky/qtile/02/TomorrowNight.conf @@ -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} +]] diff --git a/.config/conky/qtile/02/bg/DoomOne.png b/.config/conky/qtile/02/bg/DoomOne.png new file mode 100644 index 0000000..81a2563 Binary files /dev/null and b/.config/conky/qtile/02/bg/DoomOne.png differ diff --git a/.config/conky/qtile/02/bg/Dracula.png b/.config/conky/qtile/02/bg/Dracula.png new file mode 100644 index 0000000..4a51f32 Binary files /dev/null and b/.config/conky/qtile/02/bg/Dracula.png differ diff --git a/.config/conky/qtile/02/bg/GruvboxDark.png b/.config/conky/qtile/02/bg/GruvboxDark.png new file mode 100644 index 0000000..7197b92 Binary files /dev/null and b/.config/conky/qtile/02/bg/GruvboxDark.png differ diff --git a/.config/conky/qtile/02/bg/MonokaiPro.png b/.config/conky/qtile/02/bg/MonokaiPro.png new file mode 100644 index 0000000..02ba856 Binary files /dev/null and b/.config/conky/qtile/02/bg/MonokaiPro.png differ diff --git a/.config/conky/qtile/02/bg/Nord.png b/.config/conky/qtile/02/bg/Nord.png new file mode 100644 index 0000000..ed2cdd9 Binary files /dev/null and b/.config/conky/qtile/02/bg/Nord.png differ diff --git a/.config/conky/qtile/02/bg/OceanicNext.png b/.config/conky/qtile/02/bg/OceanicNext.png new file mode 100644 index 0000000..ae70250 Binary files /dev/null and b/.config/conky/qtile/02/bg/OceanicNext.png differ diff --git a/.config/conky/qtile/02/bg/Palenight.png b/.config/conky/qtile/02/bg/Palenight.png new file mode 100644 index 0000000..9a8f794 Binary files /dev/null and b/.config/conky/qtile/02/bg/Palenight.png differ diff --git a/.config/conky/qtile/02/bg/SolarizedDark.png b/.config/conky/qtile/02/bg/SolarizedDark.png new file mode 100644 index 0000000..42012c5 Binary files /dev/null and b/.config/conky/qtile/02/bg/SolarizedDark.png differ diff --git a/.config/conky/qtile/02/bg/SolarizedLight.png b/.config/conky/qtile/02/bg/SolarizedLight.png new file mode 100644 index 0000000..992646b Binary files /dev/null and b/.config/conky/qtile/02/bg/SolarizedLight.png differ diff --git a/.config/conky/qtile/02/bg/TomorrowNight.png b/.config/conky/qtile/02/bg/TomorrowNight.png new file mode 100644 index 0000000..16c9f8f Binary files /dev/null and b/.config/conky/qtile/02/bg/TomorrowNight.png differ diff --git a/.config/conky/qtile/02/bg/bg.png b/.config/conky/qtile/02/bg/bg.png new file mode 100644 index 0000000..edd5724 Binary files /dev/null and b/.config/conky/qtile/02/bg/bg.png differ diff --git a/.config/conky/qtile/02/fonts/Abel.zip b/.config/conky/qtile/02/fonts/Abel.zip new file mode 100644 index 0000000..630099a Binary files /dev/null and b/.config/conky/qtile/02/fonts/Abel.zip differ diff --git a/.config/conky/qtile/02/fonts/BebasNeue-Regular.ttf b/.config/conky/qtile/02/fonts/BebasNeue-Regular.ttf new file mode 100644 index 0000000..76e22b8 Binary files /dev/null and b/.config/conky/qtile/02/fonts/BebasNeue-Regular.ttf differ diff --git a/.config/conky/qtile/02/fonts/Material.ttf b/.config/conky/qtile/02/fonts/Material.ttf new file mode 100755 index 0000000..be66835 Binary files /dev/null and b/.config/conky/qtile/02/fonts/Material.ttf differ diff --git a/.config/conky/qtile/02/fonts/feather.ttf b/.config/conky/qtile/02/fonts/feather.ttf new file mode 100644 index 0000000..88bdfd0 Binary files /dev/null and b/.config/conky/qtile/02/fonts/feather.ttf differ diff --git a/.config/conky/qtile/02/scripts/DoomOne.lua b/.config/conky/qtile/02/scripts/DoomOne.lua new file mode 100644 index 0000000..b8b8d96 --- /dev/null +++ b/.config/conky/qtile/02/scripts/DoomOne.lua @@ -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 diff --git a/.config/conky/qtile/02/scripts/Dracula.lua b/.config/conky/qtile/02/scripts/Dracula.lua new file mode 100644 index 0000000..e36bbd3 --- /dev/null +++ b/.config/conky/qtile/02/scripts/Dracula.lua @@ -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 diff --git a/.config/conky/qtile/02/scripts/GruvboxDark.lua b/.config/conky/qtile/02/scripts/GruvboxDark.lua new file mode 100644 index 0000000..d04b7e2 --- /dev/null +++ b/.config/conky/qtile/02/scripts/GruvboxDark.lua @@ -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 diff --git a/.config/conky/qtile/02/scripts/MonokaiPro.lua b/.config/conky/qtile/02/scripts/MonokaiPro.lua new file mode 100644 index 0000000..ac4163c --- /dev/null +++ b/.config/conky/qtile/02/scripts/MonokaiPro.lua @@ -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 diff --git a/.config/conky/qtile/02/scripts/Nord.lua b/.config/conky/qtile/02/scripts/Nord.lua new file mode 100644 index 0000000..8ee1367 --- /dev/null +++ b/.config/conky/qtile/02/scripts/Nord.lua @@ -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 diff --git a/.config/conky/qtile/02/scripts/OceanicNext.lua b/.config/conky/qtile/02/scripts/OceanicNext.lua new file mode 100644 index 0000000..a8e65ed --- /dev/null +++ b/.config/conky/qtile/02/scripts/OceanicNext.lua @@ -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 diff --git a/.config/conky/qtile/02/scripts/Palenight.lua b/.config/conky/qtile/02/scripts/Palenight.lua new file mode 100644 index 0000000..d90512a --- /dev/null +++ b/.config/conky/qtile/02/scripts/Palenight.lua @@ -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 diff --git a/.config/conky/qtile/02/scripts/SolarizedDark.lua b/.config/conky/qtile/02/scripts/SolarizedDark.lua new file mode 100644 index 0000000..146c143 --- /dev/null +++ b/.config/conky/qtile/02/scripts/SolarizedDark.lua @@ -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 diff --git a/.config/conky/qtile/02/scripts/SolarizedLight.lua b/.config/conky/qtile/02/scripts/SolarizedLight.lua new file mode 100644 index 0000000..01f0e63 --- /dev/null +++ b/.config/conky/qtile/02/scripts/SolarizedLight.lua @@ -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 diff --git a/.config/conky/qtile/02/scripts/TomorrowNight.lua b/.config/conky/qtile/02/scripts/TomorrowNight.lua new file mode 100644 index 0000000..42fb970 --- /dev/null +++ b/.config/conky/qtile/02/scripts/TomorrowNight.lua @@ -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 diff --git a/.config/conky/qtile/02/scripts/cputemp.sh b/.config/conky/qtile/02/scripts/cputemp.sh new file mode 100755 index 0000000..a17b212 --- /dev/null +++ b/.config/conky/qtile/02/scripts/cputemp.sh @@ -0,0 +1,7 @@ +#!/bin/bash + +# Main +cpuTemp=$(sensors | grep Tctl | awk -F '+' '{print $2}') +echo "$cpuTemp" + +exit diff --git a/.config/conky/qtile/02/start.sh b/.config/conky/qtile/02/start.sh new file mode 100755 index 0000000..6df01a6 --- /dev/null +++ b/.config/conky/qtile/02/start.sh @@ -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