diff --git a/config/sunflower/accelerators.json b/config/sunflower/accelerators.json deleted file mode 100644 index b1b8b01..0000000 --- a/config/sunflower/accelerators.json +++ /dev/null @@ -1,186 +0,0 @@ -{ - "item_list": { - "add_bookmark": "d", - "add_bookmark_2": "", - "back_in_history": "Left", - "back_in_history_2": "", - "bookmark_1": "1", - "bookmark_10": "0", - "bookmark_10_2": "", - "bookmark_1_2": "", - "bookmark_2": "2", - "bookmark_2_2": "", - "bookmark_3": "3", - "bookmark_3_2": "", - "bookmark_4": "4", - "bookmark_4_2": "", - "bookmark_5": "5", - "bookmark_5_2": "", - "bookmark_6": "6", - "bookmark_6_2": "", - "bookmark_7": "7", - "bookmark_7_2": "", - "bookmark_8": "8", - "bookmark_8_2": "", - "bookmark_9": "9", - "bookmark_9_2": "", - "bookmark_home": "grave", - "bookmark_home_2": "", - "calculate_disk_usage": "space", - "calculate_disk_usage_2": "", - "collapse_directory": "Left", - "collapse_directory_2": "", - "copy_files": "F5", - "copy_files_2": "", - "copy_path_to_clipboard": "l", - "copy_path_to_clipboard_2": "", - "copy_path_to_command_entry": "Return", - "copy_path_to_command_entry_2": "KP_Enter", - "copy_selected_item_name_to_clipboard": "f", - "copy_selected_item_name_to_clipboard_2": "", - "copy_selected_path_to_clipboard": "c", - "copy_selected_path_to_clipboard_2": "", - "copy_selection_to_command_entry": "Return", - "copy_selection_to_command_entry_2": "KP_Enter", - "copy_to_clipboard": "c", - "copy_to_clipboard_2": "", - "create_link": "F7", - "create_link_2": "", - "create_terminal": "z", - "create_terminal_2": "", - "custom_path_entry": "l", - "custom_path_entry_2": "", - "cut_to_clipboard": "x", - "cut_to_clipboard_2": "", - "delete_files": "Delete", - "delete_files_2": "F8", - "deselect_all": "a", - "deselect_all_2": "", - "edit_bookmarks": "b", - "edit_bookmarks_2": "", - "edit_selected": "F4", - "edit_selected_2": "", - "execute_item": "Return", - "execute_item_2": "KP_Enter", - "execute_with_application": "", - "execute_with_application_2": "", - "expand_directory": "Right", - "expand_directory_2": "", - "force_delete_files": "Delete", - "force_delete_files_2": "", - "forward_in_history": "Right", - "forward_in_history_2": "", - "inherit_left_path": "Right", - "inherit_left_path_2": "", - "inherit_right_path": "Left", - "inherit_right_path_2": "", - "invert_selection": "asterisk", - "invert_selection_2": "KP_Multiply", - "item_properties": "Return", - "item_properties_2": "KP_Enter", - "move_files": "F6", - "move_files_2": "", - "move_marker_down": "", - "move_marker_down_2": "", - "move_marker_up": "", - "move_marker_up_2": "", - "open_directory": "", - "open_directory_2": "", - "open_in_new_tab": "t", - "open_in_new_tab_2": "", - "parent_directory": "BackSpace", - "parent_directory_2": "", - "paste_from_clipboard": "v", - "paste_from_clipboard_2": "", - "refresh_list": "r", - "refresh_list_2": "", - "rename_file": "F2", - "rename_file_2": "F6", - "root_directory": "backslash", - "root_directory_2": "", - "select_all": "a", - "select_all_2": "", - "show_bookmarks": "", - "show_bookmarks_2": "", - "show_emblem_menu": "e", - "show_emblem_menu_2": "", - "show_history": "BackSpace", - "show_history_2": "", - "show_left_bookmarks": "F1", - "show_left_bookmarks_2": "", - "show_open_with_menu": "Menu", - "show_open_with_menu_2": "", - "show_popup_menu": "Menu", - "show_popup_menu_2": "F10", - "show_right_bookmarks": "F2", - "show_right_bookmarks_2": "", - "show_tab_menu": "grave", - "show_tab_menu_2": "", - "start_quick_search": "f", - "start_quick_search_2": "", - "swap_paths": "u", - "swap_paths_2": "", - "toggle_selection": "Insert", - "toggle_selection_2": "Down", - "toggle_selection_up": "Up", - "toggle_selection_up_2": "", - "view_selected": "F3", - "view_selected_2": "" - }, - "main_menu": { - "advanced_rename": "m", - "advanced_rename_2": "", - "compare_directories": "F12", - "compare_directories_2": "", - "create_directory": "F7", - "create_directory_2": "", - "create_file": "F7", - "create_file_2": "", - "deselect_with_pattern": "KP_Subtract", - "deselect_with_pattern_2": "minus", - "deselect_with_same_extension": "KP_Subtract", - "deselect_with_same_extension_2": "minus", - "fast_media_preview": "F3", - "fast_media_preview_2": "", - "find_files": "F7", - "find_files_2": "", - "move_handle_left": "Page_Up", - "move_handle_left_2": "", - "move_handle_right": "Page_Down", - "move_handle_right_2": "", - "preferences": "p", - "preferences_2": "", - "quit_program": "", - "quit_program_2": "", - "reload": "r", - "reload_2": "", - "restore_handle_position": "Home", - "restore_handle_position_2": "", - "select_with_pattern": "KP_Add", - "select_with_pattern_2": "equal", - "select_with_same_extension": "KP_Add", - "select_with_same_extension_2": "equal", - "show_hidden_files": "h", - "show_hidden_files_2": "" - }, - "plugin_base": { - "close_tab": "w", - "close_tab_2": "", - "duplicate_tab": "t", - "duplicate_tab_2": "", - "focus_left_object": "Left", - "focus_left_object_2": "", - "focus_opposite_object": "Tab", - "focus_opposite_object_2": "", - "focus_right_object": "Right", - "focus_right_object_2": "", - "next_tab": "Tab", - "next_tab_2": "", - "previous_tab": "Tab", - "previous_tab_2": "" - }, - "sessions": { - "show_list": "s", - "show_list_2": "" - } -} \ No newline at end of file diff --git a/config/sunflower/associations.json b/config/sunflower/associations.json deleted file mode 100644 index 9e26dfe..0000000 --- a/config/sunflower/associations.json +++ /dev/null @@ -1 +0,0 @@ -{} \ No newline at end of file diff --git a/config/sunflower/bookmarks.json b/config/sunflower/bookmarks.json deleted file mode 100644 index e009e4b..0000000 --- a/config/sunflower/bookmarks.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "add_home": true, - "bookmarks": [], - "show_mounts": true, - "system_bookmarks": false -} \ No newline at end of file diff --git a/config/sunflower/commands.json b/config/sunflower/commands.json deleted file mode 100644 index d3afb32..0000000 --- a/config/sunflower/commands.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "commands": [] -} \ No newline at end of file diff --git a/config/sunflower/config.json b/config/sunflower/config.json deleted file mode 100644 index 6dbec58..0000000 --- a/config/sunflower/config.json +++ /dev/null @@ -1,97 +0,0 @@ -{ - "active_notebook": 0, - "always_show_tabs": true, - "confirmations": { - "delete_items": true - }, - "create_dialog": { - "directory_mode": 493, - "edit_file": false, - "file_mode": 420 - }, - "dark_theme": true, - "editor": { - "application": "DataGrip", - "default_editor": "/opt/DataGrip-2018.2.2/bin/datagrip.sh", - "external_command": "/opt/DataGrip-2018.2.2/bin/datagrip.sh", - "terminal_command": false, - "type": 0 - }, - "expand_tabs": 0, - "focus_new_tab": true, - "history_file": ".bash_history", - "horizontal_split": false, - "item_list": { - "always_visible": [], - "case_sensitive_sort": true, - "force_directories": false, - "grid_lines": 0, - "headers_visible": true, - "left_directories": [], - "mode_format": 1, - "number_sensitive_sort": false, - "right_click_select": false, - "right_directories": [], - "row_hinting": false, - "search_modifier": "000", - "second_extension": false, - "selection_color": "#ffff5e5e0000", - "selection_indicator": "\u2731", - "show_expanders": false, - "show_hidden": false, - "single_click_navigation": true, - "time_format": "%H:%M %d-%m-%y" - }, - "last_version": 0, - "media_preview": false, - "multiple_instances": false, - "network_path_completion": true, - "operations": { - "automount_insert": false, - "automount_start": false, - "follow_symlink": false, - "merge_in_silent": true, - "overwrite_in_silent": true, - "reserve_size": false, - "set_mode": true, - "set_owner": false, - "set_timestamp": true, - "silent": false, - "trash_files": true - }, - "plugins": [ - "system_terminal", - "sessions", - "rename_extensions", - "owner_column", - "gvim_viewer", - "find_file_extensions", - "file_list", - "default_toolbar", - "archive_support", - "image-manipulation", - "archiver" - ], - "show_command_bar": true, - "show_notifications": true, - "show_status_bar": 0, - "show_titlebar": true, - "show_toolbar": true, - "size_format": 1, - "superuser_notification": true, - "tab_close_button": true, - "terminal": { - "allow_bold": true, - "command": "xterm -into {0}", - "command2": "xterm -into {0} -e \"{1}\"", - "cursor_shape": 0, - "font": "Monospace 12", - "mouse_autohide": false, - "show_scrollbars": true, - "type": 0, - "use_system_font": true - }, - "viewer": { - "word_wrap": false - } -} \ No newline at end of file diff --git a/config/sunflower/mounts.json b/config/sunflower/mounts.json deleted file mode 100644 index 9e26dfe..0000000 --- a/config/sunflower/mounts.json +++ /dev/null @@ -1 +0,0 @@ -{} \ No newline at end of file diff --git a/config/sunflower/plugins.json b/config/sunflower/plugins.json deleted file mode 100644 index ab6a9c2..0000000 --- a/config/sunflower/plugins.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "FileList": { - "columns": [ - "name", - "extension", - "size", - "mode", - "date" - ], - "size_date": 817, - "size_extension": 50, - "size_mode": 50, - "size_name": 286, - "size_size": 70 - } -} \ No newline at end of file diff --git a/config/sunflower/tabs.json b/config/sunflower/tabs.json deleted file mode 100644 index 87f4261..0000000 --- a/config/sunflower/tabs.json +++ /dev/null @@ -1,35 +0,0 @@ -{ - "left": { - "active_tab": 0, - "tabs": [ - { - "class": "FileList", - "lock": null, - "path": "/home/dbroqua/Nextcloud/Photos/2020/06", - "sort_ascending": true, - "sort_column": 0 - } - ] - }, - "right": { - "active_tab": 0, - "tabs": [ - { - "class": "FileList", - "lock": null, - "path": "/home/dbroqua/Nextcloud/Photos/Mes voitures/White Spirit/Essence", - "sort_ascending": true, - "sort_column": 0 - } - ] - }, - "sessions": { - "current": 0, - "list": [ - { - "locked": false, - "name": "Default" - } - ] - } -} \ No newline at end of file diff --git a/config/sunflower/toolbar.json b/config/sunflower/toolbar.json deleted file mode 100644 index fc15903..0000000 --- a/config/sunflower/toolbar.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "icon_size": 1, - "items": [], - "style": 3 -} \ No newline at end of file diff --git a/config/sunflower/user_plugins/__init__.py b/config/sunflower/user_plugins/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/config/sunflower/user_plugins/__pycache__/__init__.cpython-37.pyc b/config/sunflower/user_plugins/__pycache__/__init__.cpython-37.pyc deleted file mode 100644 index bf79925..0000000 Binary files a/config/sunflower/user_plugins/__pycache__/__init__.cpython-37.pyc and /dev/null differ diff --git a/config/sunflower/user_plugins/archiver/__init__.py b/config/sunflower/user_plugins/archiver/__init__.py deleted file mode 100644 index 8b13789..0000000 --- a/config/sunflower/user_plugins/archiver/__init__.py +++ /dev/null @@ -1 +0,0 @@ - diff --git a/config/sunflower/user_plugins/archiver/__pycache__/__init__.cpython-37.pyc b/config/sunflower/user_plugins/archiver/__pycache__/__init__.cpython-37.pyc deleted file mode 100644 index 4b37f01..0000000 Binary files a/config/sunflower/user_plugins/archiver/__pycache__/__init__.cpython-37.pyc and /dev/null differ diff --git a/config/sunflower/user_plugins/archiver/plugin.conf b/config/sunflower/user_plugins/archiver/plugin.conf deleted file mode 100644 index 787ef89..0000000 --- a/config/sunflower/user_plugins/archiver/plugin.conf +++ /dev/null @@ -1,14 +0,0 @@ -[Name] -en=Archiver - -[Description] -en=This plugin provides tools for create and extract archives - -[Version] -number=0.1 - -[Author] -name=Arseniy Krasnov -contact=arseniy@krasnoff.org -site= - diff --git a/config/sunflower/user_plugins/archiver/plugin.py b/config/sunflower/user_plugins/archiver/plugin.py deleted file mode 100644 index 670ce38..0000000 --- a/config/sunflower/user_plugins/archiver/plugin.py +++ /dev/null @@ -1,97 +0,0 @@ -import os -import gtk -import zipfile,tarfile - -class Archiver(): - - def __init__(self, main_window) : - self.main_window = main_window - self.archive_mimes = ('application/zip', 'application/x-tar', 'application/x-compressed-tar') - self.menu_mimes = ('application/octet-stream', 'inode/directory', 'text/directory', 'folder') - self.extract_menu_item = ( - { - 'label': 'Extract', - 'data': False, - 'callback': self.extract, - }, - { - 'label': 'Extract in folder', - 'data': True, - 'callback': self.extract, - }, - ) - - self.extract_menu = gtk.Menu() - for item in self.extract_menu_item: - self.extract_menu.append(self.main_window.menu_manager.create_menu_item(item)) - - - self.create_menu_item = ( - { - 'label': 'Make archive', - 'callback': self.make_archive, - }, - ) - - self.create_menu = gtk.Menu() - for item in self.create_menu_item: - self.create_menu.append(self.main_window.menu_manager.create_menu_item(item)) - - self.archiver_menu = self.main_window.menu_manager.create_menu_item( - { - 'label': 'Archiver', - 'submenu': '' - } - ) - self.archiver_menu.connect("activate", self.expand_menu) - - def expand_menu(self, data): - self.archiver_menu.set_submenu(self.create_menu) - filename = self.get_selection() - - try: - if zipfile.is_zipfile(filename) or tarfile.is_tarfile(filename): - self.archiver_menu.set_submenu(self.extract_menu) - except IOError as e: - if e.errno == 21: - pass - - def get_selection(self): - selections = self.main_window.get_active_object()._get_selection() - return selections - - def extract(self, widget, in_folder): - filepath = self.get_selection() - path = os.path.dirname(filepath) - if in_folder : - path = os.path.splitext(filepath)[0] - - try: - if zipfile.is_zipfile(filepath): - archive = zipfile.ZipFile(filepath) - elif tarfile.is_tarfile(filepath): - archive = tarfile.open(filepath) - archive.extractall(path) - archive.close() - except Exception, e : - print e - - def make_archive(self, widget, data): - filepath = self.get_selection() - zfile = filepath.rstrip('/') + '.zip' - filepath = filepath.rstrip('/') - zf = zipfile.ZipFile(zfile, mode='w') - if os.path.isfile(filepath): - zf.write(filepath, filepath[len(os.path.dirname(filepath)):].strip('/'), compress_type=zipfile.ZIP_DEFLATED) - else: - for root, dirs, files in os.walk(filepath): - for name in files: - file_to_zip = os.path.join(root, name) - arcname = file_to_zip[len(os.path.dirname(filepath)):].strip('/') - zf.write(file_to_zip, arcname, compress_type=zipfile.ZIP_DEFLATED) - - -def register_plugin(application): - archiver = Archiver(application) - application.register_popup_menu_action(archiver.menu_mimes, archiver.archiver_menu) - diff --git a/config/sunflower/user_plugins/image-manipulation/__init__.py b/config/sunflower/user_plugins/image-manipulation/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/config/sunflower/user_plugins/image-manipulation/__pycache__/__init__.cpython-37.pyc b/config/sunflower/user_plugins/image-manipulation/__pycache__/__init__.cpython-37.pyc deleted file mode 100644 index d895718..0000000 Binary files a/config/sunflower/user_plugins/image-manipulation/__pycache__/__init__.cpython-37.pyc and /dev/null differ diff --git a/config/sunflower/user_plugins/image-manipulation/plugin.conf b/config/sunflower/user_plugins/image-manipulation/plugin.conf deleted file mode 100644 index b8a4de5..0000000 --- a/config/sunflower/user_plugins/image-manipulation/plugin.conf +++ /dev/null @@ -1,14 +0,0 @@ -[Name] -en=Image manipulation - -[Description] -en= - -[Version] -number=0.1 - -[Author] -name=Arseniy Krasnov -contact=arseniy@krasnoff.org -site= - diff --git a/config/sunflower/user_plugins/image-manipulation/plugin.py b/config/sunflower/user_plugins/image-manipulation/plugin.py deleted file mode 100644 index acfffd7..0000000 --- a/config/sunflower/user_plugins/image-manipulation/plugin.py +++ /dev/null @@ -1,135 +0,0 @@ -import os -import Image - -class ImageManipulation(): - - def __init__(self, main_window) : - self.main_window = main_window - self.mimes = ('image/png', 'image/jpeg', 'image/gif','image/bmp','image/tiff', ) - self.items = ( - { - 'label': 'Image manipulation', - 'submenu': - ( - { - 'label':'Resize 25%', - 'data': 25, - 'callback': self.resize, - }, - { - 'label':'Resize 50%', - 'data': 50, - 'callback': self.resize, - }, - { - 'label':'Resize 75%', - 'data': 75, - 'callback': self.resize, - }, - { - 'type': 'separator', - }, - { - 'label': 'Rotate 90', - 'data': Image.ROTATE_90, - 'callback': self.transpose, - }, - { - 'label': 'Rotate 180', - 'data': Image.ROTATE_180, - 'callback': self.transpose, - }, - { - 'label': 'Rotate 270', - 'data': Image.ROTATE_270, - 'callback': self.transpose, - }, - { - 'label': 'Flip left to rigth', - 'data': Image.FLIP_LEFT_RIGHT, - 'callback': self.transpose, - }, - { - 'label': 'Flip top to bottom', - 'data': Image.FLIP_TOP_BOTTOM, - 'callback': self.transpose, - }, - { - 'type': 'separator', - }, - { - 'label': 'Convert', - 'submenu': - ( - { - 'label': 'PNG', - 'data': 'png', - 'callback': self.convert, - }, - { - 'label': 'JPEG', - 'data': 'JPEG', - 'callback': self.convert, - }, - { - 'label': 'BMP', - 'data': 'bmp', - 'callback': self.convert, - }, - { - 'label': 'TIFF', - 'data': 'tiff', - 'callback': self.convert, - }, - { - 'label': 'GIF', - 'data': 'gif', - 'callback': self.convert, - }, - ) - } - - ) - }, - ) - - def get_selection_mimes(self): - - selections = self.main_window.get_active_object()._get_selection_list() - is_subset = lambda x:self.main_window.associations_manager.get_mime_type(x) in self.mimes - result = filter(is_subset, selections) - return result - - def resize(self, widget, percent): - for image in self.get_selection_mimes(): - try: - im = Image.open(image) - w,h = im.size - im.resize(((percent*w)/100,(percent*h)/100), Image.ANTIALIAS).save(image) - except IOError: - print "cannot resize", image - - - def transpose(self, widget, method): - for image in self.get_selection_mimes(): - try: - im = Image.open(image) - im.transpose(method).save(image) - except IOError: - print "cannot rotate", image - - def convert(self, widget, format): - for image in self.get_selection_mimes(): - try: - im = Image.open(image) - file_name = '{0}.{1}'.format(os.path.splitext(image)[0], format) - im.save(file_name, format=format) - except IOError: - print "cannot convert", image - - -def register_plugin(application): - - im = ImageManipulation(application) - for item in im.items: - application.register_popup_menu_action(im.mimes, application.menu_manager.create_menu_item(item)) diff --git a/config/sunflower/windows.json b/config/sunflower/windows.json deleted file mode 100644 index 98f88b0..0000000 --- a/config/sunflower/windows.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "main": { - "geometry": [ - 2546, - 977 - ], - "handle_position": 1273, - "hide_on_close": false, - "state": 0 - } -} \ No newline at end of file