Oh were you expecting a party?
Sorry this is about bash scripts I made up I found quite usful;
This first script I named Screen.sh was used to replace the KRandRTray I was using. I already knew the resolutions I wanted to use so what is the point to having 320x240 on that list? Also KRandRTray has an annoying revert back timer. Ugh, why ask twice? I probably don't need lines 12 and 13 but I like idiot proofing. If you plan to use this script you need to replace the resolutions for your system and you need to set the output to your output. After this was done I made up a desktop shortcut with a pretty icon and stuck it on my panel at the bottom of the screen.
For those of us who like to wine (you know who you are) this script pulls the icons from the MS executable and makes compatible PNG formats.
A more streamline version of that same would be;
I will be adding more below, so I don't go making a mess on the forum.
Enjoy!
Sorry this is about bash scripts I made up I found quite usful;
This first script I named Screen.sh was used to replace the KRandRTray I was using. I already knew the resolutions I wanted to use so what is the point to having 320x240 on that list? Also KRandRTray has an annoying revert back timer. Ugh, why ask twice? I probably don't need lines 12 and 13 but I like idiot proofing. If you plan to use this script you need to replace the resolutions for your system and you need to set the output to your output. After this was done I made up a desktop shortcut with a pretty icon and stuck it on my panel at the bottom of the screen.
Code:
#!/bin/bash ScreenRes=`kdialog --radiolist "Select Screen Resolution:" 1 1360x768 on 2 1280x768 off 3 1024x768 off 4 800x600 off` case $ScreenRes in 1) xrandr --output default --mode 1360x768 ;; 2) xrandr --output default --mode 1280x768 ;; 3) xrandr --output default --mode 1024x768 ;; 4) xrandr --output default --mode 800x600 ;; *) exit ;; esac
Code:
#!/bin/bash #Tool use to extract MS Windows icons and convert them to PNG exefile=`kdialog --getopenfilename '*.exe'` #Strips out the name of the file nameonly=$(basename "$( readlink -f "$exefile")") #Strips out the filepath filepath=$(dirname "$( readlink -f "$exefile")") #Saves to the same directory as the executable wrestool -x -t 14 "$exefile" > "$filepath/$nameonly.ico" convert -alpha on "$filepath/$nameonly.ico" "$filepath/$nameonly.png" #Removes the unused icon file rm "$filepath/$nameonly.ico"
Code:
#!/bin/bash #Tool use to extract MS Windows icons and convert them to PNG exefile=`kdialog --getopenfilename '*.exe'` #Saves to the same directory as the executable wrestool -x -t 14 "$exefile" > "$exefile.ico" convert -alpha on "$exefile.ico" "$exefile.png" rm "$exefile.ico"
Enjoy!
Comment