Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Thu 30 Jul 2015, 17:57
All times are UTC - 4
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Desktop
Multi-Pins setup, and set-by-res on/off
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [2 Posts]  
Author Message
stemsee

Joined: 27 Jun 2013
Posts: 1249
Location: In The Way

PostPosted: Tue 18 Nov 2014, 22:43    Post subject:  Multi-Pins setup, and set-by-res on/off
Subject description: works independently of Show/Hide-Icons ... fully compliant...
 

After installing >Menu>Desktop>MultiPins
First press creates ~Multiple PuppyPins with desktop from user puppypin and creates switchers per resolution. Second click turns set-by-res off. Third click turns set-by-res on. Ad infinitum on-off-on-off . To reset the process delete ~/Choices/ROX-Filer/3840 . Then first click creates new set of puppypins and switchers if they don't already exist on an individual basis.

https://drive.google.com/file/d/0B4GhZVmB2RkwUFpVTGhabDRvQk0/view?usp=sharing
Back to top
View user's profile Send private message MSN Messenger 
stemsee

Joined: 27 Jun 2013
Posts: 1249
Location: In The Way

PostPosted: Sun 23 Nov 2014, 09:40    Post subject:  

Here is the script

Code:
#!/bin/sh
# copyright (c) 2014 Marcos Contant
DISPLAY=:0.0 rox --pinboard ~/Choices/ROX-Filer/PuppyPin
show="`grep 'Show/Hide Icons' /root/.jwmrc-tray`"
if [[ -z $show ]]; then
   sed -i 6i\ '        <TrayButton popup="Show/Hide Icons" icon="/usr/share/pixmaps/puppy/clear.svg">exec:nicons</TrayButton>' /root/.jwmrc-tray
elif [[ ! -e ~/Choices/ROX-Filer/3840 ]]; then
   for file in 640 800 1024 1154 1280 1366 1440 1650 1920 2560 2880 3300 3840
   do
      if [[ ! -e ~/Choices/ROX-Filer/"$file" ]]; then
      xmessage "Making Multiple PuppyPins"
      cp ~/Choices/ROX-Filer/PuppyPin ~/Choices/ROX-Filer/$file
      else
      xmessage "PuppyPins already there"
      fi
      if [[ ! -e  ~/my-applications/bin/"$file" ]]; then
      CONTENT='#!/bin/sh|DISPLAY=:0.0 rox --pinboard ~/Choices/ROX-Filer/'${file}'|cp ~/Choices/ROX-Filer/'${file}' ~/Choices/ROX-Filer/PuppyPin|'
      echo $CONTENT | tr '|' '\n' >> ~/my-applications/bin/$file
      chmod 775 ~/my-applications/bin/$file
      xmessage "PuppyPin switchers have been made"
      else
      xmessage "PuppyPin switchers already there"
      fi
   done
fi
if [ ! -e ~/Startup/res ]; then
RESTENTS="#!/bin/sh;res=`xrandr | grep -w connected | cut -f3 -d ' ' | cut -f1 -d 'x'`;exec $res;"
echo $RESTENTS | tr ';' '\n' >> ~/Startup/res
chmod 755 ~/Startup/res
#xmessage "PuppyPin will be selected by screen res"
elif [ -e ~/Startup/res ]; then
rm ~/Startup/res
#xmessage "PuppyPins will not be selected by screen res"
fi
Back to top
View user's profile Send private message MSN Messenger 
Display posts from previous:   Sort by:   
Page 1 of 1 [2 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Desktop
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0431s ][ Queries: 11 (0.0087s) ][ GZIP on ]