mirror of
https://github.com/Swordfish90/cool-retro-term.git
synced 2025-11-24 06:26:01 +00:00
Clean up unnecessary files from cool-cyber-term (different .desktop and background image selector)
This commit is contained in:
parent
abef7e54a7
commit
1ef50fb48f
@ -1,18 +0,0 @@
|
|||||||
import os
|
|
||||||
import random
|
|
||||||
|
|
||||||
image_dir = '/directory/to/image/folder' # path to the background image folder
|
|
||||||
install_dir = '/opt/cool-cyber-term/' # leave like this if you follow the install instructions
|
|
||||||
scale_perc = 0.18 # downscale factor of background image (0.18 => 18% of original size) is used for pixellation
|
|
||||||
opacity_perc = 0.7 # opacity of the background image, so you still see your desktop
|
|
||||||
|
|
||||||
scale_perc = int(scale_perc*100)
|
|
||||||
if image_dir[-1] != '/':
|
|
||||||
image_dir += '/'
|
|
||||||
if install_dir[-1] != '/':
|
|
||||||
install_dir += '/'
|
|
||||||
files=os.listdir(image_dir)
|
|
||||||
if len(files) > 0:
|
|
||||||
random.shuffle(files)
|
|
||||||
os.system('convert -resize '+str(scale_perc)+'% '+image_dir+files[0]+' '+install_dir+'background.png')
|
|
||||||
os.system('convert '+install_dir+'background.png -alpha set -background none -channel A -evaluate multiply '+str(round(opacity_perc,2))+' +channel '+install_dir+'background.png')
|
|
||||||
@ -1,9 +1,9 @@
|
|||||||
[Desktop Entry]
|
[Desktop Entry]
|
||||||
Comment=Use the command line the old way
|
Comment=Use the command line the old way
|
||||||
Exec=/opt/cool-cyber-term/start.sh
|
Exec=cool-retro-term
|
||||||
GenericName=Terminal emulator
|
GenericName=Terminal emulator
|
||||||
Icon=/opt/cool-cyber-term/cool-retro-term.png
|
Icon=cool-retro-term
|
||||||
Name=Cool Cyber Term
|
Name=Cool Retro Term
|
||||||
Categories=System;TerminalEmulator;
|
Categories=System;TerminalEmulator;
|
||||||
StartupNotify=true
|
StartupNotify=true
|
||||||
Terminal=false
|
Terminal=false
|
||||||
Loading…
x
Reference in New Issue
Block a user