change side of panel
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user