polybar & i3-gaps
This commit is contained in:
208
.config/conky/conkyrc
Normal file
208
.config/conky/conkyrc
Normal file
@@ -0,0 +1,208 @@
|
|||||||
|
conky.config = {
|
||||||
|
|
||||||
|
-------------------------------------
|
||||||
|
-- Generic Settings
|
||||||
|
-------------------------------------
|
||||||
|
background=false,
|
||||||
|
update_interval=1,
|
||||||
|
double_buffer=true,
|
||||||
|
no_buffers=true,
|
||||||
|
imlib_cache_size=10,
|
||||||
|
|
||||||
|
draw_shades=false,
|
||||||
|
draw_outline=false,
|
||||||
|
draw_borders=false,
|
||||||
|
draw_graph_borders=false,
|
||||||
|
default_graph_height=26,
|
||||||
|
default_graph_width=80,
|
||||||
|
show_graph_scale=false,
|
||||||
|
show_graph_range=false,
|
||||||
|
|
||||||
|
|
||||||
|
-------------------------------------
|
||||||
|
-- Window Specifications
|
||||||
|
-------------------------------------
|
||||||
|
-- gap_x=100,
|
||||||
|
-- gap_y=70,
|
||||||
|
minimum_height=620,
|
||||||
|
minimum_width=268,
|
||||||
|
own_window=true,
|
||||||
|
own_window_type="override",
|
||||||
|
own_window_transparent=true,
|
||||||
|
own_window_hints="undecorated,below,sticky,skip_taskbar,skip_pager",
|
||||||
|
border_inner_margin=0,
|
||||||
|
border_outer_margin=0,
|
||||||
|
alignment="top_right",
|
||||||
|
--own_window_argb_visual=true,
|
||||||
|
--own_window_argb_value=0,
|
||||||
|
|
||||||
|
|
||||||
|
-------------------------------------
|
||||||
|
-- Text Settings
|
||||||
|
-------------------------------------
|
||||||
|
use_xft=true,
|
||||||
|
xftalpha=1,
|
||||||
|
font="Droid Sans:size=8",
|
||||||
|
text_buffer_size=256,
|
||||||
|
override_utf8_locale=true,
|
||||||
|
|
||||||
|
short_units=true,
|
||||||
|
short_units=true,
|
||||||
|
pad_percents=2,
|
||||||
|
top_name_width=7,
|
||||||
|
|
||||||
|
|
||||||
|
-------------------------------------
|
||||||
|
-- Color Scheme
|
||||||
|
-------------------------------------
|
||||||
|
default_color="FFFFFF",
|
||||||
|
color1="FFFFFF",
|
||||||
|
color2="FFFFFF",
|
||||||
|
color3="FFFFFF",
|
||||||
|
color4="FFFFFF",
|
||||||
|
color5="DCDCDC",
|
||||||
|
color6="FFFFFF",
|
||||||
|
color7="FFFFFF",
|
||||||
|
color8="FFFFFF",
|
||||||
|
|
||||||
|
|
||||||
|
-------------------------------------
|
||||||
|
-- API Key
|
||||||
|
-------------------------------------
|
||||||
|
template6="484ee5b6fcb17e5fa7ad811962a88e79",
|
||||||
|
|
||||||
|
|
||||||
|
-------------------------------------
|
||||||
|
-- City ID
|
||||||
|
-------------------------------------
|
||||||
|
template7="3196359",
|
||||||
|
|
||||||
|
|
||||||
|
-------------------------------------
|
||||||
|
-- Temp Unit (default, metric, imperial)
|
||||||
|
-------------------------------------
|
||||||
|
template8="metric",
|
||||||
|
|
||||||
|
|
||||||
|
-------------------------------------
|
||||||
|
-- Locale (e.g. "es_ES.UTF-8")
|
||||||
|
-- Leave empty for default
|
||||||
|
-------------------------------------
|
||||||
|
template9=""
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
---------------------------------------------------
|
||||||
|
---------------------------------------------------
|
||||||
|
|
||||||
|
|
||||||
|
conky.text = [[
|
||||||
|
\
|
||||||
|
\
|
||||||
|
${execi 300 ~/.harmattan-assets/get_weather ${template6} ${template7} ${template8} ${template9}}\
|
||||||
|
\
|
||||||
|
\
|
||||||
|
\
|
||||||
|
\
|
||||||
|
\
|
||||||
|
${image ~/.harmattan-assets/misc/Transparent/God-Mode/separator-v.png -p 95,185 -s 1x76}\
|
||||||
|
${image ~/.harmattan-assets/misc/Transparent/God-Mode/separator-v.png -p 172,185 -s 1x76}\
|
||||||
|
${image ~/.harmattan-assets/misc/Transparent/God-Mode/separator-h.png -p 33,90 -s 202x1}\
|
||||||
|
${image ~/.harmattan-assets/misc/Transparent/God-Mode/separator-h.png -p 33,176 -s 202x1}\
|
||||||
|
${image ~/.harmattan-assets/misc/Transparent/God-Mode/separator-h.png -p 33,269 -s 202x1}\
|
||||||
|
${image ~/.harmattan-assets/misc/Transparent/God-Mode/separator-h.png -p 33,369 -s 202x1}\
|
||||||
|
${image ~/.harmattan-assets/misc/Transparent/God-Mode/separator-h.png -p 33,474 -s 202x1}\
|
||||||
|
\
|
||||||
|
\
|
||||||
|
\
|
||||||
|
\
|
||||||
|
${color3}${voffset 187}${alignc 77}${execi 300 LANG=${template9} LC_TIME=${template9} date +%^a}${color}
|
||||||
|
${color3}${voffset -13}${alignc}${execi 300 LANG=${template9} LC_TIME=${template9} date -d +1day +%^a}${color}
|
||||||
|
${color3}${voffset -13}${alignc -77}${execi 300 LANG=${template9} LC_TIME=${template9} date -d +2day +%^a}${color}
|
||||||
|
\
|
||||||
|
\
|
||||||
|
\
|
||||||
|
\
|
||||||
|
${color2}${voffset 51}${alignc 77}${execi 300 ~/.harmattan-assets/parse_weather 'avg' '.main.temp_min' '0'}${if_match "$template8" == "metric"} °C${else}${if_match "$template8" == "imperial"} °F${else}${if_match "$template8" == "default"} K${endif}${endif}${endif}/${execi 300 ~/.harmattan-assets/parse_weather 'avg' '.main.temp_max' '0'}${if_match "$template8" == "metric"} °C${else}${if_match "$template8" == "imperial"} °F${else}${if_match "$template8" == "default"} K${endif}${endif}${endif}${color}
|
||||||
|
${color2}${voffset -13}${alignc}${execi 300 ~/.harmattan-assets/parse_weather 'avg' '.main.temp_min' '1'}${if_match "$template8" == "metric"} °C${else}${if_match "$template8" == "imperial"} °F${else}${if_match "$template8" == "default"} K${endif}${endif}${endif}/${execi 300 ~/.harmattan-assets/parse_weather 'avg' '.main.temp_max' '1'}${if_match "$template8" == "metric"} °C${else}${if_match "$template8" == "imperial"} °F${else}${if_match "$template8" == "default"} K${endif}${endif}${endif}${color}
|
||||||
|
${color2}${voffset -13}${alignc -77}${execi 300 ~/.harmattan-assets/parse_weather 'avg' '.main.temp_min' '2'}${if_match "$template8" == "metric"} °C${else}${if_match "$template8" == "imperial"} °F${else}${if_match "$template8" == "default"} K${endif}${endif}${endif}/${execi 300 ~/.harmattan-assets/parse_weather 'avg' '.main.temp_max' '2'}${if_match "$template8" == "metric"} °C${else}${if_match "$template8" == "imperial"} °F${else}${if_match "$template8" == "default"} K${endif}${endif}${endif}${color}
|
||||||
|
\
|
||||||
|
\
|
||||||
|
\
|
||||||
|
\
|
||||||
|
${goto 36}${voffset -172}${font Droid Sans :size=36}${color1}${execi 300 jq -r .main.temp ~/.cache/harmattan-conky/weather.json | awk '{print int($1+0.5)}' # round num}${if_match "$template8" == "metric"} °C${else}${if_match "$template8" == "imperial"} °F${else}${if_match "$template8" == "default"} K${endif}${endif}${endif}${font}${color}
|
||||||
|
${goto 46}${voffset 14}${font Droid Sans :size=12}${color1}${execi 300 jq -r .weather[0].description ~/.cache/harmattan-conky/weather.json | sed "s|\<.|\U&|g"}${font}${color}
|
||||||
|
${color1}${alignr 62}${voffset -73}${execi 300 jq -r .main.pressure ~/.cache/harmattan-conky/weather.json | awk '{print int($1+0.5)}' # round num} hPa
|
||||||
|
${color1}${alignr 62}${voffset 7}${execi 300 jq -r .main.humidity ~/.cache/harmattan-conky/weather.json | awk '{print int($1+0.5)}' # round num} %${color}
|
||||||
|
${color1}${alignr 62}${voffset 7}${execi 300 jq -r .wind.speed ~/.cache/harmattan-conky/weather.json | awk '{print int($1+0.5)}' # round num}${if_match "$template8" == "metric"} m/s${else}${if_match "$template8" == "default"} m/s${else}${if_match "$template8" == "imperial"} mi/h${endif}${endif}${endif}${color}
|
||||||
|
\
|
||||||
|
\
|
||||||
|
\
|
||||||
|
\
|
||||||
|
${voffset -117}${font Droid Sans Mono :size=22}${alignc}${color2}${time %H:%M}${font}${color}
|
||||||
|
${voffset 4}${font Droid Sans :size=10}${alignc}${color6}${execi 300 LANG=${template9} LC_TIME=${template9} date +"%A, %B %-d"}${font}${color}
|
||||||
|
\
|
||||||
|
\
|
||||||
|
\
|
||||||
|
\
|
||||||
|
${voffset 294}${goto 40}${color2}Cpu:${color}
|
||||||
|
${voffset 4}${goto 40}${color2}Mem:${color}
|
||||||
|
${voffset 4}${goto 40}${color2}Uptime:${color}
|
||||||
|
${voffset -47}${alignr 39}${color2}${cpu cpu0}%${color}
|
||||||
|
${voffset 4}${alignr 39}${color2}${memperc}%${color}
|
||||||
|
${voffset 4}${alignr 39}${color2}${uptime_short}${color}
|
||||||
|
${voffset -47}${alignc}${color2}${cpubar 5,36}${color}
|
||||||
|
${voffset 4}${alignc}${color2}${membar 5,36}${color}
|
||||||
|
${voffset 29}${goto 40}${loadgraph 26,190 FFFFFF FFFFFF -l}
|
||||||
|
\
|
||||||
|
\
|
||||||
|
\
|
||||||
|
\
|
||||||
|
${voffset 26}${goto 40}${color2}${top_mem name 1}${color}
|
||||||
|
${voffset 4}${goto 40}${color2}${top_mem name 2}${color}
|
||||||
|
${voffset 4}${goto 40}${color2}${top_mem name 3}${color}
|
||||||
|
${voffset 4}${goto 40}${color2}${top_mem name 4}${color}
|
||||||
|
${voffset 4}${goto 40}${color2}${top_mem name 5}${color}
|
||||||
|
${voffset -81}${alignc}${color5}${top_mem mem 1}%${color}
|
||||||
|
${voffset 4}${alignc}${color5}${top_mem mem 2}%${color}
|
||||||
|
${voffset 4}${alignc}${color5}${top_mem mem 3}%${color}
|
||||||
|
${voffset 4}${alignc}${color5}${top_mem mem 4}%${color}
|
||||||
|
${voffset 4}${alignc}${color5}${top_mem mem 5}%${color}
|
||||||
|
${voffset -81}${alignr 39}${color6}${top_mem mem_res 1}${color}
|
||||||
|
${voffset 4}${alignr 39}${color6}${top_mem mem_res 2}${color}
|
||||||
|
${voffset 4}${alignr 39}${color6}${top_mem mem_res 3}${color}
|
||||||
|
${voffset 4}${alignr 39}${color6}${top_mem mem_res 4}${color}
|
||||||
|
${voffset 4}${alignr 39}${color6}${top_mem mem_res 5}${color}
|
||||||
|
${voffset -104}${goto 40}${color1}Proc${color}
|
||||||
|
${voffset -13}${alignc}${color1}Mem%${color}
|
||||||
|
${voffset -13}${alignr 39}${color1}Mem${color}
|
||||||
|
\
|
||||||
|
\
|
||||||
|
\
|
||||||
|
\
|
||||||
|
${if_existing /proc/net/route wlp3s0}
|
||||||
|
${voffset -230}${goto 40}${color5}Up: ${color2}${upspeed wlp3s0}${color5}${goto 150}Down: ${color2}${downspeed wlp3s0}
|
||||||
|
${voffset 10}${goto 40}${upspeedgraph wlp3s0 26,80 FFFFFF FFFFFF}${goto 150}${downspeedgraph wlp3s0 26,80 FFFFFF FFFFFF}
|
||||||
|
${voffset 9}${goto 40}${color5}Sent: ${color2}${totalup wlp3s0}${color5}${goto 150}Received: ${color2}${totaldown wlp3s0}
|
||||||
|
${else}
|
||||||
|
${if_existing /proc/net/route enp0s1}
|
||||||
|
${voffset -344}${goto 40}${color5}Up: ${color2}${upspeed enp0s1}${color5}${goto 150}Down: ${color2}${downspeed enp0s1}
|
||||||
|
${voffset 10}${goto 40}${upspeedgraph enp0s1 26,80 FFFFFF FFFFFF}${goto 150}${downspeedgraph enp0s1 26,80 FFFFFF FFFFFF}
|
||||||
|
${voffset 9}${goto 40}${color5}Sent: ${color2}${totalup enp0s1}${color5}${goto 150}Received: ${color2}${totaldown enp0s1}
|
||||||
|
${else}
|
||||||
|
${voffset -311}${goto 40}${color5}Network disconnected${color}
|
||||||
|
${image ~/.harmattan-assets/misc/Transparent/God-Mode/offline.png -p 44,284 -s 16x16}
|
||||||
|
${endif}${endif}
|
||||||
|
\
|
||||||
|
\
|
||||||
|
\
|
||||||
|
\
|
||||||
|
${image ~/.harmattan-assets/misc/Transparent/God-Mode/pressure.png -p 210,95 -s 16x16}\
|
||||||
|
${image ~/.harmattan-assets/misc/Transparent/God-Mode/humidity.png -p 210,115 -s 16x16}\
|
||||||
|
${image ~/.harmattan-assets/misc/Transparent/God-Mode/wind-2.png -p 210,136 -s 16x16}\
|
||||||
|
${execi 300 cp -f ~/.harmattan-assets/icons/#fff__32/$(~/.harmattan-assets/parse_weather 'first' '.weather[0].id' '0').png ~/.cache/harmattan-conky/weather-1.png}${image ~/.cache/harmattan-conky/weather-1.png -p 41,207 -s 32x32}\
|
||||||
|
${execi 300 cp -f ~/.harmattan-assets/icons/#fff__32/$(~/.harmattan-assets/parse_weather 'first' '.weather[0].id' '1').png ~/.cache/harmattan-conky/weather-2.png}${image ~/.cache/harmattan-conky/weather-2.png -p 119,207 -s 32x32}\
|
||||||
|
${execi 300 cp -f ~/.harmattan-assets/icons/#fff__32/$(~/.harmattan-assets/parse_weather 'first' '.weather[0].id' '2').png ~/.cache/harmattan-conky/weather-3.png}${image ~/.cache/harmattan-conky/weather-3.png -p 195,207 -s 32x32}${font}${voffset -120}\
|
||||||
|
]]
|
||||||
|
|
||||||
@@ -181,9 +181,8 @@ interval = 1.0
|
|||||||
|
|
||||||
udspeed-minwidth = 5
|
udspeed-minwidth = 5
|
||||||
accumulate-stats = true
|
accumulate-stats = true
|
||||||
|
format-connected = %{A:networkmanager_dmenu&:}<ramp-signal> <label-connected>%{A}
|
||||||
format-connected = <ramp-signal> <label-connected>
|
format-disconnected = %{A:networkmanager_dmenu&:}<label-disconnected>%{A}
|
||||||
format-disconnected = <label-disconnected>
|
|
||||||
format-packetloss = <animation-packetloss> <label-connected>
|
format-packetloss = <animation-packetloss> <label-connected>
|
||||||
|
|
||||||
label-connected = %essid%
|
label-connected = %essid%
|
||||||
@@ -204,6 +203,7 @@ animation-packetloss-1 =
|
|||||||
animation-packetloss-1-foreground = ${colors.black}
|
animation-packetloss-1-foreground = ${colors.black}
|
||||||
; Framerate in milliseconds
|
; Framerate in milliseconds
|
||||||
animation-packetloss-framerate = 500
|
animation-packetloss-framerate = 500
|
||||||
|
|
||||||
[module/battery]
|
[module/battery]
|
||||||
type = internal/battery
|
type = internal/battery
|
||||||
full-at = 99
|
full-at = 99
|
||||||
|
|||||||
@@ -2,8 +2,9 @@
|
|||||||
#exec --no-stratup-id xrandr --output eDP1 --primary --auto
|
#exec --no-stratup-id xrandr --output eDP1 --primary --auto
|
||||||
exec --no-startup-id xrandr --output HDMI-0 --auto --mode 2048x1152 --primary
|
exec --no-startup-id xrandr --output HDMI-0 --auto --mode 2048x1152 --primary
|
||||||
exec_always --no-startup-id $HOME/.i3/scripts/polybar_launch.sh
|
exec_always --no-startup-id $HOME/.i3/scripts/polybar_launch.sh
|
||||||
exec_always --no-startup-id compton -G -b --config $HOME/.config/compton/compton.conf
|
exec_always --no-startup-id compton -G -b
|
||||||
exec --no-startup-id mplayer -fs ~/.i3/boot.mp4
|
exec --no-startup-id mplayer -fs ~/.i3/boot.mp4
|
||||||
|
exec --no-startup-id conky -c $HOME/.config/conky/conkyrc
|
||||||
exec --no-startup-id xset -dpms && xset s noblank && xset s noexpose && xset dpms 600 1800 360
|
exec --no-startup-id xset -dpms && xset s noblank && xset s noexpose && xset dpms 600 1800 360
|
||||||
exec --no-startup-id xautolock -time 10 -locker ~/.i3/scripts/locker.sh
|
exec --no-startup-id xautolock -time 10 -locker ~/.i3/scripts/locker.sh
|
||||||
exec --no-startup-id xautolock -locknow
|
exec --no-startup-id xautolock -locknow
|
||||||
|
|||||||
@@ -1,15 +1,34 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
ARGS=(
|
ARGS=(
|
||||||
"--clock" "-s"
|
"--screen=0"
|
||||||
|
"--blur=5"
|
||||||
# "-i${HOME}/Pictures/bg_1440p/Linux-Wallpapers-19-2560-x-1920.png"
|
# "-i${HOME}/Pictures/bg_1440p/Linux-Wallpapers-19-2560-x-1920.png"
|
||||||
"-i${HOME}/Pictures/backgrounds/0c7e1f_5775038.jpg"
|
# "-i${HOME}/Pictures/backgrounds/0c7e1f_5775038.jpg"
|
||||||
"--insidevercolor=35d75588"
|
"--insidevercolor=35d75588"
|
||||||
"--insidewrongcolor=d7355588"
|
"--insidewrongcolor=d7355588"
|
||||||
"--insidecolor=50505000"
|
"--insidecolor=00000000"
|
||||||
"--ringvercolor=64c784ff"
|
"--ringvercolor=64c784ff"
|
||||||
"--ringwrongcolor=c76484ff"
|
"--ringwrongcolor=c76484ff"
|
||||||
"--ringcolor=3555d7ff"
|
"--ringcolor=3555d7ff"
|
||||||
|
"--linecolor=00000000"
|
||||||
"--separatorcolor=6484c7ff"
|
"--separatorcolor=6484c7ff"
|
||||||
"--keyhlcolor=35d755ff"
|
"--keyhlcolor=35d755ff"
|
||||||
"--bshlcolor=d73555ff")
|
"--bshlcolor=d73555ff")
|
||||||
i3lock "${ARGS[@]}"
|
|
||||||
|
i3lock "${ARGS[@]}" &
|
||||||
|
i3lockpid=$!
|
||||||
|
sleep 2
|
||||||
|
|
||||||
|
#winid=`xwininfo -name "i3lock" | grep "Window id" | grep -oE "0x[0-9a-f]+"`
|
||||||
|
#if [ -z "$winid" ]
|
||||||
|
#then
|
||||||
|
# echo "Could not find i3lock window"
|
||||||
|
# exit 1
|
||||||
|
#fi
|
||||||
|
#echo $winid
|
||||||
|
#conky -c "$HOME/.config/conky/conkyrc" -w "$winid" &
|
||||||
|
#conkypid=$!
|
||||||
|
#
|
||||||
|
#wait $i3lockpid
|
||||||
|
#kill $conkypid
|
||||||
|
|
||||||
|
|||||||
@@ -40,7 +40,7 @@ do
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
if [ $var == "-ii" ]; then
|
if [ $var == "-ii" ]; then
|
||||||
yaourt -S zsh zsh-syntax-highlighting i3blocks neovim i3-wm i3lock-color-git ctags alacritty-scrollback-git polybar mplayer udiskie nitrogen compton dunst megasync parcellite rofi terminus terminess-powerline-font-git ttf-font-awesome-4 openssh arc-gtk-theme lxappearance numix-circle-arc-icons-git pulsemixer xsel
|
yaourt -S zsh zsh-syntax-highlighting i3blocks neovim i3-wm i3lock-color-git ctags alacritty-scrollback-git polybar mplayer udiskie nitrogen compton dunst megasync parcellite rofi terminus terminess-powerline-font-git ttf-font-awesome-4 openssh arc-gtk-theme lxappearance numix-circle-arc-icons-git pulsemixer xsel conky
|
||||||
symlink_dotfiles
|
symlink_dotfiles
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user