Skip to content

Commit

Permalink
fixed for manjaro x64 asus
Browse files Browse the repository at this point in the history
  • Loading branch information
gvoze32 committed Nov 25, 2019
0 parents commit 30a76b4
Show file tree
Hide file tree
Showing 8 changed files with 149 additions and 0 deletions.
Binary file added fonts/Fantasque Sans Mono.ttf
Binary file not shown.
Binary file added fonts/FuraCode Nerd Font.ttf
Binary file not shown.
11 changes: 11 additions & 0 deletions src/Mainte/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# Petunjuk Penggunaan Konfigurasi Conky

Letakkan semua isi direktori ini pada direktori `$HOME/.config/conky`.

Lalu jalankan dengan mengeksekusi

```
$ ./conky-launch.sh
```

Untuk membuatnya berjalan saat startup, silahkan mengkonfigurasikan sendiri yaa.
Binary file added src/Mainte/bg.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/Mainte/bg.xcf
Binary file not shown.
9 changes: 9 additions & 0 deletions src/Mainte/conky-launch.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/bin/env sh

killall conky

#conky -c $HOME/.config/conky/conkyrc-dark-bspwm &
conky -c $HOME/.conky/Mainte/conkyrc-dark-bspwm &
sleep 0.8
#conky -c $HOME/.config/conky/conkyrc-dark-bg &
conky -c $HOME/.conky/Mainte/conkyrc-dark-bg &
41 changes: 41 additions & 0 deletions src/Mainte/conkyrc-dark-bg
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
conky.config = {
background = false,
font = 'Fantasque Sans Mono:size=10',
use_xft = true,
xftalpha = 0.5,
update_interval = 1,
total_run_times = 0,
own_window = true,
own_window_transparent = true,
own_window_type = 'dock',
own_window_class = 'Conky',
own_window_argb_visual = true,
own_window_argb_value = 255,
own_window_colour = '#000',
own_window_hints = 'undecorated,below,sticky,skip_taskbar,skip_pager',
double_buffer = true,
draw_shades = false,
draw_outline = false,
draw_borders = false,
draw_graph_borders = true,
stippled_borders = 0,
border_width = 0,
default_color = 'black',
default_shade_color = 'black',
default_outline_color = 'black',
alignment = 'top_left',
gap_x = 1080,
gap_y = 40,
no_buffers = true,
cpu_avg_samples = 2,
net_avg_samples = 2,
use_spacer = 'none',
maximum_width = 1024,
minimum_height = 720,
uppercase = true,
override_utf8_locale = true,
};

conky.text = [[
${offset 500}${image ~/.conky/Mainte/bg.png -s 280x679}
]];
88 changes: 88 additions & 0 deletions src/Mainte/conkyrc-dark-bspwm
Original file line number Diff line number Diff line change
@@ -0,0 +1,88 @@
conky.config = {
background = false,
font = 'FuraCode Nerd Font:pixelsize=9',
use_xft = true,
xftalpha = 1.0,
update_interval = 1,
total_run_times = 0,
own_window = true,
own_window_transparent = true,
own_window_type = 'dock',
own_window_class = 'Conky',
own_window_argb_visual = true,
own_window_argb_value = 255,
own_window_colour = '#000',
own_window_hints = 'undecorated,below,sticky,skip_taskbar,skip_pager',
double_buffer = true,
draw_shades = false,
draw_outline = false,
draw_borders = false,
draw_graph_borders = true,
stippled_borders = 0,
border_width = 0,
default_color = '#FFFFFF',
default_shade_color = '#FFFFFF',
default_outline_color = '#FFFFFF',
alignment = 'top_left',
gap_x = 763,
gap_y = 65,
no_buffers = true,
cpu_avg_samples = 2,
net_avg_samples = 2,
use_spacer = 'none',
maximum_width = 1024,
minimum_height = 640,
uppercase = true,
};

conky.text = [[
#leet chars: ┤┤└└┴┴┐┐││┘┘┌┌├├┬┬┼┼┴┴── ││ ▽▼△▲▵▴▾▿
${alignr}${offset 250}--------------------------------
${alignr}${offset 0}┌──────── ${nodename}${font} ─────────
${alignr}${offset -110}${uid_name 1000}${font} ──────┐
${alignr}${offset -110}< ${exec lsb_release -ds | sed 's/"//g'} > Distro ─┤
${alignr}${offset -110}< ${kernel} > Kernel ─┤
${alignr}${offset -110}< ${uptime_short} > Uptime ─┘
${voffset 0}
${alignr}${offset -30}┌──────────
${alignr}${offset -80}│
${alignr}${offset -80}< ${exec lspci | grep VGA | sed 's/00:02.0 VGA compatible controller: //g' | sed 's/ Corporation//g' | sed 's/ Integrated Graphics Controller (primary) (rev 0c)//g'} > GPU ────────────┘
${alignr}${offset -150}< ${exec xdpyinfo | awk '/dimensions/{print $2}'} > Res
${voffset 10}
${alignr}${offset -45}< ${exec cat /etc/locale.conf | grep "LANG=" | cut -d"\"" -f2 | sed 's/LANG=//g'} > Locale ────────────────┐
${alignr}${offset -45}│
${alignr}${offset -45}│
${voffset -10}
${alignr}${offset -75}< ${exec sensors | grep "fan1" | cut -d" " -f9-} > Fan Speed ──────────┐
${alignr}${offset -75}│
${alignr}${offset -75}│
${alignr}${offset -75}┌────── Temperatures ───────────────┤
${alignr}${offset -165}├─ Core0 < ${execi 5 sensors|grep 'Core 0'| awk -F'+' '{print $2}' | awk -F'.' '{print $1}'} °C >${alignr}${offset -75}│
${alignr}${offset -165}└─ Core1 < ${execi 5 sensors|grep 'Core 1'| awk -F'+' '{print $2}' | awk -F'.' '{print $1}'} °C >${alignr}${offset -75}│
${alignr}${offset -75}│
${alignr}${offset -75}│
${alignr}${offset -75}┌───── < ${execi 1000 cat /proc/cpuinfo|grep 'model name'|sed -e 's/model name.*: //'|uniq|cut -c 1-36|sed 's/(R)//g'|sed 's/(TM)//g'|sed 's/CPU //g'} > ──────────┤
${alignr}${offset -285}│${offset 210}│
${alignr}${offset -220}└─── Processes${offset 145}│
${alignr}${offset -135}< ${top name 1} ${top cpu 1} >${offset 60}│
${alignr}${offset -135}< ${top name 2} ${top cpu 2} >${offset 60}│
${alignr}${offset -135}< ${top name 3} ${top cpu 2} >${offset 60}│
${alignr}${offset -135}< ${top name 4} ${top cpu 2} >${offset 60}│
${alignr}${offset -75}│
${voffset 15}
${alignr}${offset -75}< $memperc% | $mem/$memmax ${color #BEC8CB}${membar 5,50}${color} > RAM ──────────┐
${alignr}${offset -75}│
${voffset 10}
${alignr}${offset -75}${addr wlp3s0} : ${wireless_essid wlp3s0} : SSID ────────────┐
${alignr}${offset -115}UP < ${color #BEC8CB}${upspeedgraph wlp3s0 15,130 BCC3C3 BCC3C3}${color} >${voffset -15}${offset 40}│
${alignr}${offset -110}${voffset 10}DOWN < ${color #BEC8CB}${downspeedgraph wlp3s0 15,130 BCC3C3 BCC3C3}${color} >${voffset -25}${offset 40}└─
${voffset 20}
${alignr}${offset -75}${exec cat /sys/class/power_supply/BAT0/capacity} : Battery ───────────────────┐
${alignr}${offset -95}< ${exec acpi | grep "Battery 0" | awk '{print $4}'} | ${battery_percent BAT0}% > BAT 0 < ${color #BEC8CB}${battery_bar 5,110 BAT0}${color} >
${voffset 25}
${alignr}${offset -60}Hard Drive ─────────────────┐
${alignr}${offset -70}< ${fs_used_perc}% > Root < ${color #BEC8CB}${fs_bar 5,120 /}${color} >${offset 10}│
${alignr}${offset -10}< ${swapperc}% > Swap < ${color #BEC8CB}${swapbar 5,120}${color} >${offset 10}└────────────
# ${alignr}${offset -640}volume: ${exec amixer sget Master | grep 'Right:' | awk -F'[][]' '{ print $2 }'}

]];

0 comments on commit 30a76b4

Please sign in to comment.