Skip to content

Commit

Permalink
spring panel restoration
Browse files Browse the repository at this point in the history
  • Loading branch information
neeasade committed Nov 29, 2018
1 parent 5f9d708 commit 739a465
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 11 deletions.
1 change: 0 additions & 1 deletion bin/bin/music
Expand Up @@ -39,7 +39,6 @@ shuffle() {


append() { append() {
echo append "$*" echo append "$*"
echo "custom" > "$musicdir/playlist/current"
mpc listall | grep -i "$*" | mpc add mpc listall | grep -i "$*" | mpc add
} }


Expand Down
3 changes: 1 addition & 2 deletions templates/juicer
Expand Up @@ -11,7 +11,6 @@ fonts = "{{p_font_main}}"
"font-linux-10" "font-linux-10"
class = "{{p_window_class}}" class = "{{p_window_class}}"
offset = {{p_offset}} offset = {{p_offset}}
delimiter= "{{p_delimiter}}"


; guesstimate 3 clickables per section ; guesstimate 3 clickables per section
clickables = {{`echo "3 * $(echo $lemons | wc -w)" | bc`}} clickables = {{`echo "3 * $(echo $lemons | wc -w)" | bc`}}
16 changes: 10 additions & 6 deletions wm/.wm/panel/tools/lemonade
Expand Up @@ -180,14 +180,15 @@ juicedLemons="$(sed 's/:/ /g;s/|/ /g;' <<< $bar_format)"
[bg]="${bar_bg}" [bg]="${bar_bg}"
[overline]=false [overline]=false
[underline]=false [underline]=false
[delimiter]=""
[line]=\#ff999999 [line]=\#ff999999
[activeline]=\#ffffffff [activeline]=\#ffffffff
[reload]=5) [reload]=5)
for name in $juicedLemons; do for name in $juicedLemons; do
for section in "${!choices[@]}"; do for section in "${!choices[@]}"; do
if [[ $(get_conf \#${name}_${section}) -eq 0 ]]; then if [[ $(get_conf \#${name}_${section}) -eq 0 ]]; then
#echo "No value for '${name}-$section' -> using ${choices[${section}]}" #echo "No value for '${name}-$section' -> using ${choices[${section}]}"
eval "${name}_${section}=${choices[${section}]}" eval "${name}_${section}=\"${choices[${section}]}\""
fi fi
done done
done done
Expand All @@ -205,10 +206,10 @@ if [ ! -z "$pos_start" ]; then
# todo: make this a bar property # todo: make this a bar property
pos_start="%{${pos_start}U#ffffffff}" pos_start="%{${pos_start}U#ffffffff}"
pos_end="%{-o}%{-uU-}" pos_end="%{-o}%{-uU-}"
bar_delimiter="${pos_start}${bar_delimiter}${pos_end}" bar_delimiter="${pos_start}${pos_end}"
position="%{l}$(echo $bar_format | sed "s/|/${pos_start}%{c}${pos_end}/; s/|/${pos_start}%{r}${pos_end}/; s/:/$bar_delimiter/g;")" position="%{l}$(echo $bar_format | sed "s/|/${pos_start}%{c}${pos_end}/; s/|/${pos_start}%{r}${pos_end}/; s/:/$bar_delimiter/g;")"
else else
position="%{l}$(echo $bar_format | sed "s/|/%{c}/;s/|/%{r}/;s/:/$bar_delimiter/g;")" position="%{l}$(echo $bar_format | sed "s/|/%{c}/;s/|/%{r}/;s/://g;")"
fi fi


# build the panel switch # build the panel switch
Expand Down Expand Up @@ -286,7 +287,11 @@ process_line() {
"$(get_conf area[${name}_s])" \ "$(get_conf area[${name}_s])" \
"%{F-}%{B-}" \ "%{F-}%{B-}" \
"%{-o}%{-uU-}")" "%{-o}%{-uU-}")"
fi
if $hold; then
bar_message="${bar_message}$(printf "%s" "$(get_conf ${name}_delimiter)")"
fi
fi
fi fi


if ! $hold; then if ! $hold; then
Expand Down Expand Up @@ -343,8 +348,7 @@ get_geometry() {
gapped=$(iif "[ ! $(bspc config window_gap) -le 0 ]") gapped=$(iif "[ ! $(bspc config window_gap) -le 0 ]")
p_gap=$(iif $gapped $p_gap 0) p_gap=$(iif $gapped $p_gap 0)
top=$(iif "[ "$p_position" = "top" ]") top=$(iif "[ "$p_position" = "top" ]")

echo "$(( $(dim width)-(p_gap*2) ))x$p_height+$(( $(dim x)+p_gap ))+$(iif $top $p_gap $(($(dim height)-(p_gap+p_height))) )"
echo "$(( $(dim width)-(p_gap*2) ))x$p_height+$(( $(dim x)+p_gap ))+$(iif $top $p_gap $(($(dim height)-(p_gap+p_height))) )"
} }


# Start lemonade # Start lemonade
Expand Down
1 change: 0 additions & 1 deletion wm/.wm/scripts/theming/defaults
Expand Up @@ -48,7 +48,6 @@ p_desktop_show_free=true # option to show nothing for free desktops.
p_desktop_mode_toggle=false # monocle/tiling toggle. p_desktop_mode_toggle=false # monocle/tiling toggle.
p_desktop_only_active=false # only show the active desktop name p_desktop_only_active=false # only show the active desktop name
p_title_show_mode=monocle # used by title. p_title_show_mode=monocle # used by title.
p_delimiter="" # delimiter between lemons


# Panel colors # Panel colors
p_bg_normal="#ff$background" p_bg_normal="#ff$background"
Expand Down
2 changes: 2 additions & 0 deletions wm/.wm/scripts/theming/ripen
Expand Up @@ -133,5 +133,7 @@ default_function activefg '
default_function bg 'vanilla bg' default_function bg 'vanilla bg'
default_function activebg 'vanilla activebg' default_function activebg 'vanilla activebg'
default_function stepSetup 'separateStep' default_function stepSetup 'separateStep'
default_function suffix 'vanilla suffix'
default_function prefix 'vanilla prefix'


stepSetup stepSetup
5 changes: 4 additions & 1 deletion wm/.wm/themes/spring
Expand Up @@ -14,7 +14,7 @@ b_window_gap=16
p_height=24 p_height=24
p_gap=0 p_gap=0
p_line="5" p_line="5"
p_padding=2 p_padding=8
p_font_main="Droid Sans-10:style=Bold" p_font_main="Droid Sans-10:style=Bold"
p_window_class="noshadow" p_window_class="noshadow"
p_delimiter=" " p_delimiter=" "
Expand All @@ -35,6 +35,8 @@ GTK_FONT="Droid Sans 10"


# Make the workspaces be in the middle. # Make the workspaces be in the middle.
p_format="dropdown:title|desktop|mpd:clock" p_format="dropdown:title|desktop|mpd:clock"
c_frame_opacity="0.4"
p_icon_handler="env printf \"\$icon_result \""


p_desktop_theme=$(cat<<EOF p_desktop_theme=$(cat<<EOF
bg="#00000000" bg="#00000000"
Expand All @@ -43,5 +45,6 @@ overline=true
activeoverline=true activeoverline=true
line=$p_bg_inactive line=$p_bg_inactive
activeline=$p_bg_active activeline=$p_bg_active
delimiter=" "
EOF EOF
) )

0 comments on commit 739a465

Please sign in to comment.