Browse Source

add conky.conf and countdown_timer.sh

master
dummy 7 years ago
parent
commit
bb85ceb4f2
  1. 25
      bash_scripts/countdown_timer.sh
  2. 4
      dot/.bashrc
  3. 132
      dot/conky.conf
  4. 6
      sync.sh
  5. 2
      vim/.vimrc

25
bash_scripts/countdown_timer.sh

@ -0,0 +1,25 @@
#!/bin/bash
PLAYSOUND=true
PLAYER=mpv
FILE="/usr/share/sounds/freedesktop/stereo/message.oga"
echo "Counting down from ${1}"
Msg=${2}
let "i = ${1}"
while [ $i -gt 0 ]; do
echo $i
let i--
sleep 1
done
notify-send --icon=diaglog-information "Countdown Timer finished!" "${Msg}"
echo "${Msg}"
echo ""
echo ""
if ($PLAYSOUND); then
$PLAYER $FILE
fi

4
dot/.bashrc

@ -1,6 +1,10 @@
# If not running interactively, don't do anything
[[ "$-" != *i* ]] && return
if [ -d "$HOME/bin" ] ; then
PATH="$HOME/bin:$PATH"
fi
export EDITOR=vim
# colors

132
dot/conky.conf

@ -0,0 +1,132 @@
conky.config = {
-- CONKY SETTINGS
--background = true,
update_interval = 1,
total_run_times = 0,
cpu_avg_samples = 2,
net_avg_samples = 2,
override_utf8_locale = true,
double_buffer = true,
no_buffers = true,
text_buffer_size = 32768,
-- CONKY: WINDOW SPECIFICATIONS
own_window = true,
own_window_colour = '2D2D2D',
own_window_argb_visual = true,
own_window_argb_value = 255,
own_window_hints = 'undecorated,below,sticky,skip_taskbar,skip_pager',
own_window_transparent = false,
own_window_type = 'desktop',
border_inner_margin = 6,
border_width = 5,
minimum_height = 700,
minimum_width = 280,
maximum_width = 280,
alignment = 'top_right',
xinerama_head = 1,
gap_x = 10,
gap_y = 10,
-- GRAPHICS SETTINGS
draw_shades = false,
draw_outline = false,
draw_borders = false,
draw_graph_borders = true,
-- TEXT SETTINGS
use_xft = true,
xftalpha = 0.2,
font = 'DejaVu Sans Mono:size=10',
font1 = 'DejaVu Sans:bold:size=10',
font2 = 'DejaVu Sans:bold:size=20',
uppercase = false,
-- Pad percentages to this many decimals (0 = no padding)
pad_percents = 2,
-- COLOUR SETTINGS
default_color = '555555',
color1 = '999999',
color2 = 'CCCCCC',
color3 = 'EEEEEE',
color4 = '444444',
color5 = 'AAAAAA',
color6 = '666666',
};
conky.text = [[
${alignr}${font2}${time %l:%M %p}${font}
${alignr}${font1}${time %A, %b %_d %Y}${font}
$nodename
kernel: $kernel ${alignr}$machine
uptime: ${alignr}$uptime_short
# CPU ----------------------------
${voffset -10}
CPU ${hr 2}
${voffset -14}
usage: ${cpu cpu0}% ${alignr}freq: ${freq_g} GHz
${voffset -15}
${cpubar cpu1 7,60} ${cpubar cpu2 7,60} ${cpubar cpu3 7,60} ${cpubar cpu4 7,60}
${cpubar cpu5 7,60} ${cpubar cpu6 7,60} ${cpubar cpu7 7,60} ${cpubar cpu8 7,60}
${cpubar cpu9 7,60} ${cpubar cpu10 7,60} ${cpubar cpu11 7,60} ${cpubar cpu12 7,60}
${cpubar cpu13 7,60} ${cpubar cpu14 7,60} ${cpubar cpu15 7,60} ${cpubar cpu16 7,60}
#${cpugraph -t 30,280 119911 FF0000}
#temps: ${alignr}${hwmon 0 temp 1}°C ${hwmon 0 temp 2}°C
# MEMORY ----------------------------
${voffset -10}
MEMORY ${hr 2}
${voffset -14}
$mem ${alignc}${membar 7, 125}${alignr}$memmax
#${memgraph 15,300, 32CD32 8B0000 -t}
# NETWORK ----------------------------
${voffset -10}
NETWORK ${hr 2}
${voffset -14}
ip: ${alignr}${addr enp34s0}
#up: ${upspeed enp5s0}${goto 150}${upspeedgraph enp5s0 15,140 ADFF2F 32CD32 -t}
${voffset -14}
#down: ${downspeed enp5s0}${goto 150}${downspeedgraph enp5s0 15,140 FF0000 8B0000 -t}
${voffset -14}
totals, up: ${totalup enp34s0} ${alignr}down:${totaldown enp34s0}
# disks ----------------------------
${voffset -10}
DISK ${hr 2}
${voffset -15}
/:${goto 115}${fs_used /} / ${fs_size /} ${alignr} ${fs_used_perc /}%
${voffset -12}
#localstorage: ${goto 115}${fs_used /mnt/localstorage} / ${fs_size /mnt/localstorage} ${alignr} ${fs_used_perc /mnt/localstorage}%
i/o: ${alignr}$diskio
${voffset -6}
read: ${goto 80}${diskiograph_read 15,210 adff2f 32cd32 750}
${voffset -14}
write: ${goto 80}${diskiograph_write 15,210 FF0000 8B0000 750}
# PROCESSES ----------------------------
${voffset -10}
PROCESSES ${hr 2}
${voffset -15}
app name: ${goto 160}memory: ${goto 245}cpu:
${voffset -8}
${top name 1} ${goto 160}${top mem_res 1} ${goto 235}${top cpu 1} %
${top name 2} ${goto 160}${top mem_res 2} ${goto 235}${top cpu 2} %
${top name 3} ${goto 160}${top mem_res 3} ${goto 235}${top cpu 3} %
${top name 4} ${goto 160}${top mem_res 4} ${goto 235}${top cpu 4} %
${top name 5} ${goto 160}${top mem_res 5} ${goto 235}${top cpu 5} %
${top name 6} ${goto 160}${top mem_res 6} ${goto 235}${top cpu 6} %
${top name 7} ${goto 160}${top mem_res 7} ${goto 235}${top cpu 7} %
]]

6
sync.sh

@ -4,7 +4,8 @@ DOT_FILES="
$HOME/.profile \
$HOME/.bashrc \
$HOME/.tmux.conf \
$HOME/.ctags"
$HOME/.ctags \
$HOME/.config/conky/conky.conf"
VIM_FILES="
$HOME/.vim/colors/deus.vim \
@ -17,7 +18,8 @@ GDB_FILES="
BASH_SCRIPTS="
$HOME/bin/hide_panel.sh \
$HOME/bin/tmux_start.sh"
$HOME/bin/tmux_start.sh \
$HOME/bin/countdown_timer.sh "
rsync -avP ${DOT_FILES} ./dot
rsync -avP ${VIM_FILES} ./vim

2
vim/.vimrc

@ -84,7 +84,7 @@ let g:airline_left_alt_sep = ''
let g:airline_right_sep = ''
let g:airline_right_altsep = ''
let g:airline_symbols.maxlinenr = ''
let g:airline#extensions#tabline#enabled = 1
"let g:airline#extensions#tabline#enabled = 1
"------------------

Loading…
Cancel
Save