mirror of
https://github.com/FAUSheppy/config
synced 2025-12-09 08:08:32 +01:00
cleaning up hl dir
This commit is contained in:
@@ -59,7 +59,7 @@ hc keybind $Mod-q close
|
|||||||
|
|
||||||
#spawn shit
|
#spawn shit
|
||||||
hc keybind $Mod-Return spawn urxvt
|
hc keybind $Mod-Return spawn urxvt
|
||||||
hc keybind $Mod-Shift-Return spawn ~/.config/herbstluftwm/cwd_helper.py
|
hc keybind $Mod-Shift-Return spawn ~/.config/herbstluftwm/hl_start_urxvt.py
|
||||||
hc keybind $Mod-i spawn urxvt -e nohup zsh -c "chromium &" #need to reliably use the zshconf chromium
|
hc keybind $Mod-i spawn urxvt -e nohup zsh -c "chromium &" #need to reliably use the zshconf chromium
|
||||||
if [[ $HOST =~ atlantis* ]]; then
|
if [[ $HOST =~ atlantis* ]]; then
|
||||||
hc keybind $Mod-l spawn i3lock -i ~/.config/i3lock/bg.png -t
|
hc keybind $Mod-l spawn i3lock -i ~/.config/i3lock/bg.png -t
|
||||||
|
|||||||
@@ -118,7 +118,7 @@ hc pad $monitor $panel_height
|
|||||||
echo -n "^bg()^fg() ${windowtitle//^/^^}"
|
echo -n "^bg()^fg() ${windowtitle//^/^^}"
|
||||||
|
|
||||||
####################### Interface to python layer #########################
|
####################### Interface to python layer #########################
|
||||||
right="30. Mai 14 Kobras |$($HOME/.config/herbstluftwm/panel_content.py) $date"
|
right="30. Mai 14 Kobras |$($HOME/.config/herbstluftwm/hl_panel_content.py) $date"
|
||||||
|
|
||||||
right_text_only=$(echo -n "$right" | sed 's.\^[^(]*([^)]*)..g')
|
right_text_only=$(echo -n "$right" | sed 's.\^[^(]*([^)]*)..g')
|
||||||
# get width of right aligned text.. and add some space..
|
# get width of right aligned text.. and add some space..
|
||||||
|
|||||||
@@ -1,54 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
FG='white'
|
|
||||||
BG='black'
|
|
||||||
FONT="-*-fixed-medium-*-*-*-12-*-*-*-*-*-*-*"
|
|
||||||
|
|
||||||
function uniq_linebuffered() {
|
|
||||||
awk '$0 != l { print ; l=$0 ; fflush(); }' "$@"
|
|
||||||
}
|
|
||||||
|
|
||||||
{
|
|
||||||
conky -c ~/.conkyrc_herbstluft | while read -r; do
|
|
||||||
echo -e "conky $REPLY";
|
|
||||||
#break
|
|
||||||
done > >(uniq_linebuffered) &
|
|
||||||
childpid=$!
|
|
||||||
herbstclient --idle
|
|
||||||
kill $childpid
|
|
||||||
} | {
|
|
||||||
TAGS=( $(herbstclient tag_status $monitor) )
|
|
||||||
conky=""
|
|
||||||
separator="^fg(#1793D0)^ro(1x16)^fg()"
|
|
||||||
while true; do
|
|
||||||
for i in "${TAGS[@]}" ; do
|
|
||||||
echo -n "^ca(1,herbstclient use ${i:1}) "
|
|
||||||
case ${i:0:1} in
|
|
||||||
'#')
|
|
||||||
echo -n "^fg(#1793D0)[^fg(#FFFFFF)${i:1}^fg(#1793D0)]"
|
|
||||||
;;
|
|
||||||
':')
|
|
||||||
echo -n "^fg(#FFFFFF) ${i:1} "
|
|
||||||
;;
|
|
||||||
*)
|
|
||||||
echo -n "^fg(#123456) ${i:1} "
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
echo -n "^ca()"
|
|
||||||
done
|
|
||||||
echo -n " $separator"
|
|
||||||
conky_text_only=$(echo -n "$conky"|sed 's.\^[^(]*([^)]*)..g')
|
|
||||||
width=$(textwidth "$FONT" "$conky_text_only ")
|
|
||||||
echo -n "^p(_RIGHT)^p(-$width)$conky"
|
|
||||||
echo
|
|
||||||
read line || break
|
|
||||||
cmd=( $line )
|
|
||||||
case "$cmd[0]" in
|
|
||||||
tag*)
|
|
||||||
TAGS=( $(herbstclient tag_status $monitor) )
|
|
||||||
;;
|
|
||||||
conky*)
|
|
||||||
conky="${cmd[@]:1}"
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
done
|
|
||||||
} 2> /dev/null |dzen2 -ta l -y 0 -x 0 -h 16 -w 1286 -fg $FG -bg $BG -fn $FONT &
|
|
||||||
Reference in New Issue
Block a user