Update sysinfo conky tray text, add keybinds for conky restarts
This commit is contained in:
parent
3289d87bd1
commit
3b57277ac8
|
@ -6,11 +6,12 @@ conky.config = {
|
|||
default_color = 'FFFFFF',
|
||||
double_buffer = true,
|
||||
font = 'Bitstream Vera Sans:size=8',
|
||||
gap_x = 25,
|
||||
gap_y = 45,
|
||||
gap_x = 15,
|
||||
gap_y = 40,
|
||||
minimum_width = 200,
|
||||
no_buffers = true,
|
||||
own_window = true,
|
||||
own_window_class = 'shortcuts_green',
|
||||
own_window_type = 'override',
|
||||
own_window_transparent = true,
|
||||
update_interval = 2.0,
|
||||
|
@ -38,8 +39,13 @@ ${color2}power modes - ${color}mod+0
|
|||
${color2}blur lock - ${color}mod+9
|
||||
|
||||
---------------Restart / Reload-----------
|
||||
${color2}restart polybars - ${color}mod+c
|
||||
|
||||
${color2}kill polybars - ${color}mod+p
|
||||
${color2}start polybars - ${color}mod+shift+p
|
||||
${color2}kill conky - ${color}mod+o
|
||||
${color2}start conky - ${color}mod+shift+o
|
||||
${color2}kill compton - ${color}mod+t
|
||||
${color2}start compton - ${color}mod+Shift+t
|
||||
${color2}reload i3 - ${color}mod+Shift+c
|
||||
${color2}restart i3 - ${color}mod+Shift+r
|
||||
|
||||
|
|
|
@ -4,42 +4,97 @@ conky.config = {
|
|||
color2 = '2ECC71',
|
||||
cpu_avg_samples = 2,
|
||||
default_color = 'FFFFFF',
|
||||
double_buffer = true,
|
||||
double_buffer = true,
|
||||
font = 'Bitstream Vera Sans:size=8',
|
||||
gap_x = 25,
|
||||
gap_y = 13,
|
||||
gap_x = 15,
|
||||
gap_y = 48,
|
||||
minimum_width = 200,
|
||||
no_buffers = true,
|
||||
own_window = true,
|
||||
own_window_type = 'override',
|
||||
own_window_transparent = true,
|
||||
own_window_class = 'sysinfo_green',
|
||||
own_window_transparent = true,
|
||||
update_interval = 1.0,
|
||||
use_xft = true,
|
||||
temperature_unit = 'fahrenheit',
|
||||
}
|
||||
conky.text = [[
|
||||
${voffset 8}$color2${font Bitstream Vera Sans:size=16}${time %A}$font\
|
||||
${voffset -8}$alignr$color${font Bitstream Vera Sans:size=38}${time %e}$font
|
||||
$color${voffset -30}$color${font Bitstream Vera Sans:size=18}${time %b}$font\
|
||||
#
|
||||
# Date
|
||||
${alignr}${color1}
|
||||
${goto 120}${voffset 8}$color2${font Bitstream Vera Sans:size=16}${time %A}$font\
|
||||
${goto 120}${voffset -8}$alignr$color${font Bitstream Vera Sans:size=38}${time %e}$font
|
||||
${goto 120}$color${voffset -30}$color${font Bitstream Vera Sans:size=18}${time %b}$font\
|
||||
${voffset -3} $color${font Bitstream Vera Sans:size=20}${time %Y}$font$color2$hr
|
||||
#
|
||||
# Process list, load average
|
||||
# 1m / 5m / 15m format for lad avg
|
||||
$color${voffset 35}${alignr}${font Bitstream Vera Sans:size=10}Proccesses
|
||||
$color${alignr}${font Bitstream Vera Sans:size=8}Load Average: $font$alignr${loadavg}
|
||||
#
|
||||
${voffset 20}${goto 40}${color}CPUS${font Bitstream Vera Sans:bold:size=8}$alignr$cpu%
|
||||
${voffset 5}${goto 40}$font$color2${top name 1}$alignr$color${top cpu 1}%
|
||||
${goto 40}$color2${top name 2}$alignr$color${top cpu 2}%
|
||||
${goto 40}$color2${top name 3}$alignr$color${top cpu 3}%
|
||||
${goto 40}$color2${top name 4}$alignr$color${top cpu 4}%
|
||||
# ${goto 40}$color2${top name 5}$alignr$color${top cpu 5}%
|
||||
# Process list CPU / RAM utilization table
|
||||
${font}CPU${goto 170}RAM
|
||||
${voffset 3}$font$color2${top name 1}${goto 120}$color${top cpu 1}%${goto 170}$color2${top_mem name 1}$color${alignr}${top_mem mem_res 1}
|
||||
$color2${top name 2}${goto 120}$color${top cpu 2}%${goto 170}$color2${top_mem name 2}$color${alignr}${top_mem mem_res 2}
|
||||
$color2${top name 3}${goto 120}$color${top cpu 3}%${goto 170}$color2${top_mem name 3}$color${alignr}${top_mem mem_res 3}
|
||||
$color2${top name 4}${goto 120}$color${top cpu 4}%${goto 170}$color2${top_mem name 4}$color${alignr}${top_mem mem_res 4}
|
||||
$color2${top name 5}${goto 120}$color${top cpu 5}%${goto 170}$color2${top_mem name 5}$color${alignr}${top_mem mem_res 5}
|
||||
${voffset 3}$hr
|
||||
#
|
||||
# RAM Display
|
||||
$color${voffset 4}${alignr}${font Bitstream Vera Sans:size=10}RAM
|
||||
${goto 0}${color2}$alignc${memgraph 40,305}
|
||||
${voffset 4}${goto 0}${alignc}${color2}${membar 10, 305}
|
||||
${color}${goto 10}${font}${memperc}%${alignr}${mem}/${memmax}
|
||||
${voffset 3}${color}$hr
|
||||
#
|
||||
# CPU Display
|
||||
${voffset 4}${alignr}${font Bitstream Vera Sans:size=10}CPU
|
||||
${alignr}${font}i7-3630QM@2.40GHz
|
||||
${goto 0}${color2}${cpugraph 40}
|
||||
${voffset 0}${goto 10}${color}${font}${hwmon temp 1}F°${alignr}${cpu}% - ${freq_g}GHz
|
||||
${voffset 10}${color}${goto 10}${font Bitstream Vera Sans:size=8}${cpu cpu1}%${goto 43}${color2}${cpubar cpu1 12,110} ${goto 170}${color}${cpu cpu2}%${goto 203}${color2}${cpubar cpu2 12,110}
|
||||
${voffset 4}${color}${goto 10}${font Bitstream Vera Sans:size=8}${cpu cpu3}%${goto 43}${color2}${cpubar cpu3 12,110} ${goto 170}${color}${cpu cpu4}%${goto 203}${color2}${cpubar cpu4 12,110}
|
||||
${voffset 4}${color}${goto 10}${font Bitstream Vera Sans:size=8}${cpu cpu5}%${goto 43}${color2}${cpubar cpu5 12,110} ${goto 170}${color}${cpu cpu6}%${goto 203}${color2}${cpubar cpu6 12,110}
|
||||
${voffset 4}${color}${goto 10}${font Bitstream Vera Sans:size=8}${cpu cpu7}%${goto 43}${color2}${cpubar cpu7 12,110} ${goto 170}${color}${cpu cpu8}%${goto 203}${color2}${cpubar cpu8 12,110}
|
||||
${voffset 3}${color}$hr
|
||||
#
|
||||
${voffset 10}${goto 40}${color}RAM${font Bitstream Vera Sans:bold:size=8}$alignr$mem$font
|
||||
${goto 40}${voffset 5}$color2${top_mem name 1}$alignr$color${top_mem mem_res 1}
|
||||
${goto 40}$color2${top_mem name 2}$alignr$color${top_mem mem_res 2}
|
||||
${goto 40}$color2${top_mem name 3}$alignr$color${top_mem mem_res 3}
|
||||
${goto 40}$color2${top_mem name 4}$alignr$color${top_mem mem_res 4}
|
||||
# ${goto 40}$color2${top_mem name 5}$alignr$color${top_mem mem_res 5}
|
||||
# Network display
|
||||
$color${voffset 4}${alignr}${font Bitstream Vera Sans:size=10}NETWORK
|
||||
${font}${alignr}${if_match "$wireless_essid"=="off/any"}Déconnecté${else}${wireless_essid}${endif}
|
||||
${font}${goto 5}Down${goto 160}Up
|
||||
${goto 5}${color2}${downspeedgraph wlp3s0 40,153}${goto 160}${upspeedgraph wlp3s0 40,155}
|
||||
# Uncomment next line for wireless
|
||||
# ${goto 5}${color}${downspeedf wlp3s0} Kb/s - ${totaldown wlp3s0}${goto 160}${upspeedf wlp3s0} Kb/s - ${totalup wlp3s0}
|
||||
# Ethernet network display
|
||||
${goto 5}${color}${downspeedf enp0s31f6} Kb/s - ${totaldown enp0s31f6}${goto 160}${upspeedf enp0s31f6} Kb/s - ${totalup enp0s31f6}
|
||||
${voffset 4}${color}$hr
|
||||
#
|
||||
${voffset 10}${goto 40}${color}Swap${font Bitstream Vera Sans:bold:size=8}$alignr${swap}/ ${swapfree}
|
||||
${voffset 15}$font$alignr${execi 10000 awk -F= '/TION/ {print $2}' /etc/lsb-release |sed 's/"//g'} \
|
||||
${execi 10000 awk -F= '/EASE=/ {printf $2" "} /NAME/ {print $2}' /etc/lsb-release}
|
||||
${voffset 10}${color2}${alignr}${execi 1200 whoami}@${nodename}
|
||||
${alignr}${color2}${font Bitstream Vera Sans:size=8}uptime: ${color}${uptime_short}
|
||||
${voffset 5}${color2}${font Bitstream Vera Sans:size=8}${alignr}kernel: ${color}${kernel}
|
||||
# HDDisk Display
|
||||
${voffset 4}${alignr}${font Bitstream Vera Sans:size=10}DISKS
|
||||
${voffset 2}${font}${alignr}System
|
||||
${color2}${fs_bar 8 /}
|
||||
${color}${font}${exec sudo hddtemp /dev/sdb -u F | awk '{print $NF}'}${alignr}${fs_used}/${fs_size}
|
||||
${voffset 6}${font}${alignr}Data
|
||||
${color2}${fs_bar 8 /run/media/thib/Data}
|
||||
# Optinal drive display, specify path to check mount
|
||||
${if_mounted /run/media/thib/Data}${color}${font}${exec sudo hddtemp /dev/sdb -u F | awk '{print $NF}'}${alignr}${fs_used /run/media/thib/Data}/${fs_size /run/media/thib/Data}${else}${color}${font}${alignr}Unmounted${endif}
|
||||
$hr
|
||||
#
|
||||
# Other information
|
||||
${voffset 4}${alignr}${font Bitstream Vera Sans:size=10}OTHER
|
||||
$color${voffset 4}${font}Motherboard: ${goto 120}${acpitemp}F°${alignr}Uptime: ${uptime_short}
|
||||
${voffset 3}$hr
|
||||
#
|
||||
#
|
||||
# Things I don't use, but could in the future
|
||||
# I don't need to track docker containers.. unless I can check remotes?
|
||||
# ${font}Docker containers: ${goto 120}${exec docker ps -q $1 | wc -l}/${exec docker ps -a | grep -v -F 'Exited (0)' | grep -c -F 'Exited ('}
|
||||
#
|
||||
# Commented out, since I am using a desktop
|
||||
# BATTERY
|
||||
# $color${voffset 4}${alignr}${font Bitstream Vera Sans:size=10}BATTERY
|
||||
# ${font}${voffset 3}${alignr}${battery_percent}%
|
||||
# ${color2}${battery_bar}
|
||||
# $color${alignr}${if_match "$battery_time"=="unknown"}Charging...${else}Remain Time: ${battery_time}${endif}
|
||||
]]
|
||||
|
|
|
@ -100,11 +100,12 @@ exec --no-startup-id bitwarden
|
|||
exec --no-startup-id firefox
|
||||
exec --no-startup-id /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1
|
||||
exec --no-startup-id nitrogen --restore; sleep 1; compton -b
|
||||
exec --no-startup-id nitrogen --restore
|
||||
exec --no-startup-id nm-applet
|
||||
exec --no-startup-id xfce4-power-manager
|
||||
exec --no-startup-id pamac-tray
|
||||
exec --no-startup-id clipit
|
||||
exec --no-startup-id start_konky
|
||||
exec --no-startup-id $HOME/.local/bin/i3scripts/start_konky
|
||||
exec --no-startup-id xautolock -time 10 -locker blurlock
|
||||
# exec --no-startup-id blueman-applet
|
||||
# exec --no-startup-id manjaro-hello
|
||||
|
@ -298,10 +299,15 @@ bindsym $mod+Shift+Print --release exec --no-startup-id i3-scrot -s
|
|||
# Restart, reload, kill keybinds
|
||||
###########################################
|
||||
|
||||
# Bind Mod+C to restart polybars
|
||||
bindsym $mod+c exec /home/kapper/.config/polybar/start-polybar.sh
|
||||
# Bind Mod+O to kill conky
|
||||
bindsym $mod+o exec pkill conky
|
||||
# Bind Mod+Shift+O to start conky
|
||||
bindsym $mod+Shift+o exec $HOME/.local/bin/i3scripts/start_konky
|
||||
|
||||
# Bind Mod+P kill polybars
|
||||
bindsym $mod+p exec pkill -f polybar
|
||||
# Bind Mod+Shift+P to start polybars
|
||||
bindsym $mod+Shift+p exec /home/kapper/.config/polybar/start-polybar.sh
|
||||
|
||||
# Reload the i3 configuration file
|
||||
bindsym $mod+Shift+c reload
|
||||
|
@ -311,12 +317,15 @@ bindsym $mod+Shift+r restart
|
|||
# Kill Compton window compositor
|
||||
bindsym $mod+t exec --no-startup-id pkill compton
|
||||
# Start Compton window compositor
|
||||
bindsym $mod+Ctrl+t exec --no-startup-id compton -b
|
||||
bindsym $mod+Shift+t exec --no-startup-id compton -b
|
||||
|
||||
# Kill, restart dunst
|
||||
bindsym $mod+Shift+d --release exec "killall dunst; exec notify-send 'restart dunst'"
|
||||
|
||||
# Display cursor to select X window to kill
|
||||
# Misclicks can be dangerous
|
||||
bindsym $mod+Ctrl+x --release exec --no-startup-id xkill
|
||||
|
||||
# kill focused window
|
||||
bindsym $mod+Shift+q kill
|
||||
|
||||
|
|
Loading…
Reference in New Issue