change side of panel

This commit is contained in:
Ville Rantanen
2015-10-08 08:07:18 +03:00
parent f17f9bdd1f
commit cd56c0663b

View File

@@ -22,7 +22,7 @@ function side_lxpanel() {
if lxpanel_running; then
PROFILE=$( lxpanel_profile )
sleep 1
LAPTOPWIDTH=$( xrandr -q | grep $LAPTOP | cut -d" " -f3 | cut -dx -f1 )
LAPTOPWIDTH=$( xrandr -q | grep $WORKSTATION | cut -d" " -f3 | cut -dx -f1 )
sed -i -e 's,edge=.*,edge=bottom,' -e "s,allign=.*,allign=$1," -e "s,widthtype=.*,widthtype=pixel," -e "s,width=.*,width=$LAPTOPWIDTH," $HOME/.config/lxpanel/${PROFILE}/panels/panel
echo "Warning: if LAPTOP has more pixels in the vertical direction, panel is invisible! change configuration of this script, and/or current setup ( lxpanelctl config )"
fi