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 Sun 21 Dec 2014, 20:54
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 Posts_count  
Author Message
stemsee

Joined: 27 Jun 2013
Posts: 677
Location: London

PostPosted: Tue 18 Nov 2014, 22:43    Post_subject:  Multi-Pins setup, and set-by-res on/off
Sub_title: 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 MSNM 
stemsee

Joined: 27 Jun 2013
Posts: 677
Location: London

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 MSNM 
Display_posts:   Sort by:   
Page 1 of 1 Posts_count  
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Desktop
Jump to:  

Rules_post_cannot
Rules_reply_cannot
Rules_edit_cannot
Rules_delete_cannot
Rules_vote_cannot
You cannot attach files in this forum
You can download files in this forum


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