6 files changed,
834 insertions(+),
536 deletions(-)
Author:
Smirnov Alexandr
ss2316544@gmail.com
Committed at:
2021-02-27 11:10:12 +0200
Parent:
fdf04c6
A
config/openbox/tint2rc
··· 1 +#---- Generated by tint2conf 3de0 ---- 2 +# See https://gitlab.com/o9000/tint2/wikis/Configure for 3 +# full documentation of the configuration options. 4 +#------------------------------------- 5 +# Gradients 6 +#------------------------------------- 7 +# Backgrounds 8 +# Background 1: Active taskbar, Battery, Clock, Launcher, Systray, Tooltip 9 +rounded = 0 10 +border_width = 0 11 +border_sides = TBLR 12 +border_content_tint_weight = 0 13 +background_content_tint_weight = 0 14 +background_color = #262a2b 100 15 +border_color = #222222 0 16 +background_color_hover = #000000 80 17 +border_color_hover = #000000 0 18 +background_color_pressed = #000000 80 19 +border_color_pressed = #000000 0 20 + 21 +# Background 2: Active task 22 +rounded = 0 23 +border_width = 0 24 +border_sides = TBLR 25 +border_content_tint_weight = 0 26 +background_content_tint_weight = 0 27 +background_color = #008dcd 100 28 +border_color = #272727 0 29 +background_color_hover = #272727 70 30 +border_color_hover = #272727 0 31 +background_color_pressed = #272727 70 32 +border_color_pressed = #272727 0 33 + 34 +# Background 3: Urgent task 35 +rounded = 0 36 +border_width = 0 37 +border_sides = TBLR 38 +border_content_tint_weight = 0 39 +background_content_tint_weight = 0 40 +background_color = #ff6c6b 60 41 +border_color = #d98282 0 42 +background_color_hover = #ff6c6b 60 43 +border_color_hover = #d98282 0 44 +background_color_pressed = #ff6c6b 60 45 +border_color_pressed = #d98282 0 46 + 47 +# Background 4: Default task, Executor 48 +rounded = 0 49 +border_width = 0 50 +border_sides = TBLR 51 +border_content_tint_weight = 0 52 +background_content_tint_weight = 0 53 +background_color = #262a2b 100 54 +border_color = #242424 0 55 +background_color_hover = #242424 60 56 +border_color_hover = #242424 0 57 +background_color_pressed = #242424 60 58 +border_color_pressed = #242424 0 59 + 60 +# Background 5: Iconified task 61 +rounded = 0 62 +border_width = 0 63 +border_sides = TBLR 64 +border_content_tint_weight = 0 65 +background_content_tint_weight = 0 66 +background_color = #252525 60 67 +border_color = #252525 0 68 +background_color_hover = #252525 60 69 +border_color_hover = #252525 0 70 +background_color_pressed = #252525 60 71 +border_color_pressed = #252525 0 72 + 73 +#------------------------------------- 74 +# Panel 75 +panel_items = TESEC 76 +panel_size = 100% 24 77 +panel_margin = 0 0 78 +panel_padding = 0 0 0 79 +panel_background_id = 0 80 +wm_menu = 1 81 +panel_dock = 0 82 +panel_pivot_struts = 0 83 +panel_position = top center horizontal 84 +panel_layer = top 85 +panel_monitor = all 86 +panel_shrink = 0 87 +autohide = 0 88 +autohide_show_timeout = 0.3 89 +autohide_hide_timeout = 1.5 90 +autohide_height = 1 91 +strut_policy = follow_size 92 +panel_window_name = tint2 93 +disable_transparency = 0 94 +mouse_effects = 0 95 +font_shadow = 0 96 +mouse_hover_icon_asb = 100 0 10 97 +mouse_pressed_icon_asb = 100 0 0 98 +scale_relative_to_dpi = 0 99 +scale_relative_to_screen_height = 0 100 + 101 +#------------------------------------- 102 +# Taskbar 103 +taskbar_mode = single_desktop 104 +taskbar_hide_if_empty = 0 105 +taskbar_padding = 0 0 0 106 +taskbar_background_id = 0 107 +taskbar_active_background_id = 1 108 +taskbar_name = 0 109 +taskbar_hide_inactive_tasks = 0 110 +taskbar_hide_different_monitor = 0 111 +taskbar_hide_different_desktop = 0 112 +taskbar_always_show_all_desktop_tasks = 0 113 +taskbar_name_padding = 0 0 114 +taskbar_name_background_id = 0 115 +taskbar_name_active_background_id = 0 116 +taskbar_name_font = Droid Sans Bold 8 117 +taskbar_name_font_color = #d1d1d1 100 118 +taskbar_name_active_font_color = #aaaaaa 100 119 +taskbar_distribute_size = 0 120 +taskbar_sort_order = none 121 +task_align = left 122 + 123 +#------------------------------------- 124 +# Task 125 +task_text = 1 126 +task_icon = 0 127 +task_centered = 1 128 +urgent_nb_of_blink = 20 129 +task_maximum_size = 180 0 130 +task_padding = 8 6 8 131 +task_font = Droid Sans Bold 8 132 +task_tooltip = 1 133 +task_thumbnail = 0 134 +task_thumbnail_size = 210 135 +task_font_color = #cccccc 100 136 +task_active_font_color = #ffffff 100 137 +task_urgent_font_color = #cccccc 100 138 +task_iconified_font_color = #cccccc 80 139 +task_icon_asb = 100 0 0 140 +task_active_icon_asb = 100 0 0 141 +task_urgent_icon_asb = 100 0 0 142 +task_iconified_icon_asb = 80 0 0 143 +task_background_id = 4 144 +task_active_background_id = 2 145 +task_urgent_background_id = 3 146 +task_iconified_background_id = 5 147 +mouse_left = toggle_iconify 148 +mouse_middle = close 149 +mouse_right = none 150 +mouse_scroll_up = none 151 +mouse_scroll_down = none 152 + 153 +#------------------------------------- 154 +# System tray (notification area) 155 +systray_padding = 8 0 12 156 +systray_background_id = 1 157 +systray_sort = right2left 158 +systray_icon_size = 18 159 +systray_icon_asb = 100 0 0 160 +systray_monitor = 1 161 +systray_name_filter = 162 + 163 +#------------------------------------- 164 +# Launcher 165 +launcher_padding = 8 0 16 166 +launcher_background_id = 1 167 +launcher_icon_background_id = 0 168 +launcher_icon_size = 16 169 +launcher_icon_asb = 100 0 0 170 +launcher_icon_theme_override = 0 171 +startup_notifications = 0 172 +launcher_tooltip = 0 173 +launcher_item_app = /usr/share/applications/google-chrome.desktop 174 +launcher_item_app = /usr/share/applications/kitty.desktop 175 +launcher_item_app = ~/.local/share/applications/todoist.desktop 176 +launcher_item_app = /usr/share/applications/visual-studio-code.desktop 177 + 178 +#------------------------------------- 179 +# Clock 180 +time1_format = %H:%M 181 +time2_format = 182 +time1_font = Droid Sans Bold 8 183 +time1_timezone = 184 +time2_timezone = 185 +clock_font_color = #d1d1d1 100 186 +clock_padding = 8 4 187 +clock_background_id = 1 188 +clock_tooltip = 189 +clock_tooltip_timezone = 190 +clock_lclick_command = gsimplecal 191 +clock_rclick_command = gsimplecal 192 +clock_mclick_command = 193 +clock_uwheel_command = 194 +clock_dwheel_command = 195 + 196 +#------------------------------------- 197 +# Battery 198 +battery_tooltip = 1 199 +battery_low_status = 25 200 +battery_low_cmd = notify-send "battery low" 201 +battery_full_cmd = 202 +bat1_font = Droid Sans Bold 8 203 +bat2_font = Droid Sans Bold 8 204 +battery_font_color = #d1d1d1 100 205 +bat1_format = 206 +bat2_format = 207 +battery_padding = 2 0 208 +battery_background_id = 1 209 +battery_hide = 96 210 +battery_lclick_command = 211 +battery_rclick_command = 212 +battery_mclick_command = 213 +battery_uwheel_command = 214 +battery_dwheel_command = 215 +ac_connected_cmd = 216 +ac_disconnected_cmd = 217 + 218 +#------------------------------------- 219 +# Executor 1 220 +execp = new 221 +execp_command = $HOME/.script/volume percent 222 +execp_interval = 1 223 +execp_has_icon = 0 224 +execp_cache_icon = 1 225 +execp_continuous = 0 226 +execp_markup = 1 227 +execp_lclick_command = $HOME/.script/volume mute 228 +execp_rclick_command = 229 +execp_mclick_command = 230 +execp_uwheel_command = $HOME/.script/volume up 231 +execp_dwheel_command = $HOME/.script/volume down 232 +execp_font = Droid Sans Bold 8 233 +execp_font_color = #d1d1d1 100 234 +execp_padding = 8 0 235 +execp_background_id = 4 236 +execp_centered = 0 237 +execp_icon_w = 0 238 +execp_icon_h = 0 239 + 240 +#------------------------------------- 241 +# Executor 2 242 +execp = new 243 +execp_command = $HOME/.script/wifi-signal 244 +execp_interval = 5 245 +execp_has_icon = 0 246 +execp_cache_icon = 1 247 +execp_continuous = 0 248 +execp_markup = 1 249 +execp_lclick_command = 250 +execp_rclick_command = 251 +execp_mclick_command = 252 +execp_uwheel_command = 253 +execp_dwheel_command = 254 +execp_font = Droid Sans Bold 8 255 +execp_font_color = #d1d1d1 100 256 +execp_padding = 8 0 257 +execp_background_id = 4 258 +execp_centered = 0 259 +execp_icon_w = 0 260 +execp_icon_h = 0 261 + 262 +#------------------------------------- 263 +# Tooltip 264 +tooltip_show_timeout = 1 265 +tooltip_hide_timeout = 0 266 +tooltip_padding = 6 6 267 +tooltip_background_id = 1 268 +tooltip_font_color = #d1d1d1 100 269 +tooltip_font = Droid Sans Bold 8 270 +
D
config/ranger/plugins/archive.py
··· 1 -from ranger.api.commands import * 2 -from ranger.core.loader import CommandLoader 3 -import os 4 - 5 - 6 -class compress(Command): 7 - def execute(self): 8 - cwd = self.fm.thisdir 9 - marked_files = cwd.get_selection() 10 - 11 - if not marked_files: return 12 - 13 - def refresh(_): 14 - cwd = self.fm.get_directory(original_path) 15 - cwd.load_content() 16 - 17 - original_path = cwd.path 18 - 19 - parts = self.line.strip().split() 20 - if len(parts) > 1: au_flags = [' '.join(parts[1:])] 21 - else: au_flags = [os.path.basename(self.fm.thisdir.path) + '.zip'] 22 - 23 - files_num = len(marked_files) 24 - files_num_str = str(files_num) + ' objects' if files_num > 1 else '1 object' 25 - descr = "Compressing " + files_num_str + " -> " + os.path.basename(au_flags[0]) 26 - 27 - obj = CommandLoader(args=['apack'] + au_flags + [os.path.relpath(f.path, cwd.path) for f in marked_files], descr=descr, read=True) 28 - 29 - obj.signal_bind('after', refresh) 30 - self.fm.loader.add(obj) 31 - 32 - def tab(self, tabnum): 33 - extension = ['.zip', '.tar.gz', '.rar', '.7z'] 34 - return ['compress ' + os.path.basename(self.fm.thisdir.path) + ext for ext in extension] 35 - 36 - 37 -class extract(Command): 38 - def execute(self): 39 - cwd = self.fm.thisdir 40 - copied_files = cwd.get_selection() 41 - 42 - if not copied_files: return 43 - 44 - def refresh(_): 45 - cwd = self.fm.get_directory(original_path) 46 - cwd.load_content() 47 - 48 - one_file = copied_files[0] 49 - cwd = self.fm.thisdir 50 - original_path = cwd.path 51 - 52 - line_args = self.line.split()[1:] 53 - if line_args: 54 - extraction_dir = os.path.join(cwd.path, "".join(line_args)) 55 - os.makedirs(extraction_dir, exist_ok=True) 56 - flags = ['-X', extraction_dir] 57 - flags += ['-e'] 58 - else: 59 - flags = ['-X', cwd.path] 60 - flags += ['-e'] 61 - 62 - self.fm.copy_buffer.clear() 63 - self.fm.cut_buffer = False 64 - 65 - if len(copied_files) == 1: descr = "Extracting: " + os.path.basename(one_file.path) 66 - else: descr = "Extracting files from: " + os.path.basename(one_file.dirname) 67 - obj = CommandLoader(args=['aunpack'] + flags + [f.path for f in copied_files], descr=descr, read=True) 68 - 69 - obj.signal_bind('after', refresh) 70 - self.fm.loader.add(obj) 71 - 72 -class extract_to_dirs(Command): 73 - def execute(self): 74 - cwd = self.fm.thisdir 75 - original_path = cwd.path 76 - copied_files = cwd.get_selection() 77 - 78 - if not copied_files: return 79 - 80 - def refresh(_): 81 - cwd = self.fm.get_directory(original_path) 82 - cwd.load_content() 83 - 84 - def make_flags(fn): 85 - flags = ['-D'] 86 - return flags 87 - 88 - one_file = copied_files[0] 89 - self.fm.copy_buffer.clear() 90 - self.fm.cut_buffer = False 91 - 92 - if len(copied_files) == 1: descr = "Extracting: " + os.path.basename(one_file.path) 93 - else: descr = "Extracting files from: " + os.path.basename(one_file.dirname) 94 - 95 - for f in copied_files: 96 - obj = CommandLoader(args=['aunpack'] + make_flags(f.path) + [f.path], descr=descr, read=True) 97 - obj.signal_bind('after', refresh) 98 - self.fm.loader.add(obj) 99 - 100 -
D
config/ranger/plugins/devicons.py
··· 1 -#!/usr/bin/python 2 -import ranger.api 3 -from ranger.core.linemode import LinemodeBase 4 -from .devicons import * 5 -import re 6 -import os 7 - 8 - 9 -@ranger.api.register_linemode 10 -class DevIconsLinemode(LinemodeBase): 11 - name = "devicons" 12 - uses_metadata = False 13 - def filetitle(self, file, metadata): 14 - return devicon(file) + ' ' + file.relative_path 15 - 16 -@ranger.api.register_linemode 17 -class DevIconsLinemodeFile(LinemodeBase): 18 - name = "filename" 19 - def filetitle(self, file, metadata): 20 - return devicon(file) + ' ' + file.relative_path 21 - 22 -file_node_extensions = { 23 - '7z' : '', 24 - 'a' : '', 25 - 'ai' : '', 26 - 'apk' : '', 27 - 'asm' : '', 28 - 'asp' : '', 29 - 'aup' : '', 30 - 'avi' : '', 31 - 'awk' : '', 32 - 'bash' : '', 33 - 'bat' : '', 34 - 'bmp' : '', 35 - 'bz2' : '', 36 - 'c' : '', 37 - 'c++' : '', 38 - 'cab' : '', 39 - 'cbr' : '', 40 - 'cbz' : '', 41 - 'cc' : '', 42 - 'class' : '', 43 - 'clj' : '', 44 - 'cljc' : '', 45 - 'cljs' : '', 46 - 'cmake' : '', 47 - 'coffee' : '', 48 - 'conf' : '', 49 - 'cp' : '', 50 - 'cpio' : '', 51 - 'cpp' : '', 52 - 'cs' : '', 53 - 'csh' : '', 54 - 'css' : '', 55 - 'cue' : '', 56 - 'cvs' : '', 57 - 'cxx' : '', 58 - 'd' : '', 59 - 'dart' : '', 60 - 'db' : '', 61 - 'deb' : '', 62 - 'diff' : '', 63 - 'dll' : '', 64 - 'doc' : '', 65 - 'docx' : '', 66 - 'dump' : '', 67 - 'edn' : '', 68 - 'eex' : '', 69 - 'efi' : '', 70 - 'ejs' : '', 71 - 'elf' : '', 72 - 'elm' : '', 73 - 'epub' : '', 74 - 'erl' : '', 75 - 'ex' : '', 76 - 'exe' : '', 77 - 'exs' : '', 78 - 'f#' : '', 79 - 'fifo' : '|', 80 - 'fish' : '', 81 - 'flac' : '', 82 - 'flv' : '', 83 - 'fs' : '', 84 - 'fsi' : '', 85 - 'fsscript' : '', 86 - 'fsx' : '', 87 - 'gem' : '', 88 - 'gemspec' : '', 89 - 'gif' : '', 90 - 'go' : '', 91 - 'gz' : '', 92 - 'gzip' : '', 93 - 'h' : '', 94 - 'haml' : '', 95 - 'hbs' : '', 96 - 'hh' : '', 97 - 'hpp' : '', 98 - 'hrl' : '', 99 - 'hs' : '', 100 - 'htaccess' : '', 101 - 'htm' : '', 102 - 'html' : '', 103 - 'htpasswd' : '', 104 - 'hxx' : '', 105 - 'ico' : '', 106 - 'img' : '', 107 - 'ini' : '', 108 - 'iso' : '', 109 - 'jar' : '', 110 - 'java' : '', 111 - 'jl' : '', 112 - 'jpeg' : '', 113 - 'jpg' : '', 114 - 'js' : '', 115 - 'json' : '', 116 - 'jsx' : '', 117 - 'key' : '', 118 - 'ksh' : '', 119 - 'leex' : '', 120 - 'less' : '', 121 - 'lha' : '', 122 - 'lhs' : '', 123 - 'log' : '', 124 - 'lua' : '', 125 - 'lzh' : '', 126 - 'lzma' : '', 127 - 'm4a' : '', 128 - 'm4v' : '', 129 - 'markdown' : '', 130 - 'md' : '', 131 - 'mdx' : '', 132 - 'mjs' : '', 133 - 'mkv' : '', 134 - 'ml' : 'λ', 135 - 'mli' : 'λ', 136 - 'mov' : '', 137 - 'mp3' : '', 138 - 'mp4' : '', 139 - 'mpeg' : '', 140 - 'mpg' : '', 141 - 'msi' : '', 142 - 'mustache' : '', 143 - 'nix' : '', 144 - 'o' : '', 145 - 'ogg' : '', 146 - 'pdf' : '', 147 - 'php' : '', 148 - 'pl' : '', 149 - 'pm' : '', 150 - 'png' : '', 151 - 'pp' : '', 152 - 'ppt' : '', 153 - 'pptx' : '', 154 - 'ps1' : '', 155 - 'psb' : '', 156 - 'psd' : '', 157 - 'pub' : '', 158 - 'py' : '', 159 - 'pyc' : '', 160 - 'pyd' : '', 161 - 'pyo' : '', 162 - 'r' : 'ﳒ', 163 - 'rake' : '', 164 - 'rar' : '', 165 - 'rb' : '', 166 - 'rc' : '', 167 - 'rlib' : '', 168 - 'rmd' : '', 169 - 'rom' : '', 170 - 'rpm' : '', 171 - 'rproj' : '鉶', 172 - 'rs' : '', 173 - 'rss' : '', 174 - 'rtf' : '', 175 - 's' : '', 176 - 'sass' : '', 177 - 'scala' : '', 178 - 'scss' : '', 179 - 'sh' : '', 180 - 'slim' : '', 181 - 'sln' : '', 182 - 'so' : '', 183 - 'sql' : '', 184 - 'styl' : '', 185 - 'suo' : '', 186 - 'swift' : '', 187 - 't' : '', 188 - 'tar' : '', 189 - 'tex' : 'ﭨ', 190 - 'tgz' : '', 191 - 'toml' : '', 192 - 'ts' : '', 193 - 'tsx' : '', 194 - 'twig' : '', 195 - 'vim' : '', 196 - 'vimrc' : '', 197 - 'vue' : '﵂', 198 - 'wav' : '', 199 - 'webm' : '', 200 - 'webmanifest' : '', 201 - 'webp' : '', 202 - 'xbps' : '', 203 - 'xcplayground' : '', 204 - 'xhtml' : '', 205 - 'xls' : '', 206 - 'xlsx' : '', 207 - 'xml' : '', 208 - 'xul' : '', 209 - 'xz' : '', 210 - 'yaml' : '', 211 - 'yml' : '', 212 - 'zip' : '', 213 - 'zsh' : '', 214 -} 215 - 216 -dir_node_exact_matches = { 217 - '.git' : '', 218 - 'Desktop' : '', 219 - 'Documents' : '', 220 - 'Downloads' : '', 221 - 'Dotfiles' : '', 222 - 'Dropbox' : '', 223 - 'Music' : '', 224 - 'Pictures' : '', 225 - 'Public' : '', 226 - 'Templates' : '', 227 - 'Videos' : '', 228 -} 229 - 230 -file_node_exact_matches = { 231 - '.bash_aliases' : '', 232 - '.bash_history' : '', 233 - '.bash_logout' : '', 234 - '.bash_profile' : '', 235 - '.bashprofile' : '', 236 - '.bashrc' : '', 237 - '.dmrc' : '', 238 - '.DS_Store' : '', 239 - '.fasd' : '', 240 - '.fehbg' : '', 241 - '.gitattributes' : '', 242 - '.gitconfig' : '', 243 - '.gitignore' : '', 244 - '.gitlab-ci.yml' : '', 245 - '.gvimrc' : '', 246 - '.inputrc' : '', 247 - '.jack-settings' : '', 248 - '.mime.types' : '', 249 - '.ncmpcpp' : '', 250 - '.nvidia-settings-rc' : '', 251 - '.pam_environment' : '', 252 - '.profile' : '', 253 - '.recently-used' : '', 254 - '.selected_editor' : '', 255 - '.vim' : '', 256 - '.viminfo' : '', 257 - '.vimrc' : '', 258 - '.Xauthority' : '', 259 - '.Xdefaults' : '', 260 - '.xinitrc' : '', 261 - '.xinputrc' : '', 262 - '.Xresources' : '', 263 - '.zshrc' : '', 264 - '_gvimrc' : '', 265 - '_vimrc' : '', 266 - 'a.out' : '', 267 - 'authorized_keys' : '', 268 - 'bspwmrc' : '', 269 - 'cmakelists.txt' : '', 270 - 'config' : '', 271 - 'config.ac' : '', 272 - 'config.m4' : '', 273 - 'config.mk' : '', 274 - 'config.ru' : '', 275 - 'configure' : '', 276 - 'docker-compose.yml' : '', 277 - 'dockerfile' : '', 278 - 'Dockerfile' : '', 279 - 'dropbox' : '', 280 - 'exact-match-case-sensitive-1.txt' : 'X1', 281 - 'exact-match-case-sensitive-2' : 'X2', 282 - 'favicon.ico' : '', 283 - 'gemfile' : '', 284 - 'gruntfile.coffee' : '', 285 - 'gruntfile.js' : '', 286 - 'gruntfile.ls' : '', 287 - 'gulpfile.coffee' : '', 288 - 'gulpfile.js' : '', 289 - 'gulpfile.ls' : '', 290 - 'ini' : '', 291 - 'known_hosts' : '', 292 - 'ledger' : '', 293 - 'license' : '', 294 - 'LICENSE' : '', 295 - 'LICENSE.md' : '', 296 - 'LICENSE.txt' : '', 297 - 'Makefile' : '', 298 - 'makefile' : '', 299 - 'Makefile.ac' : '', 300 - 'Makefile.in' : '', 301 - 'mimeapps.list' : '', 302 - 'mix.lock' : '', 303 - 'node_modules' : '', 304 - 'package-lock.json' : '', 305 - 'package.json' : '', 306 - 'playlists' : '', 307 - 'procfile' : '', 308 - 'Rakefile' : '', 309 - 'rakefile' : '', 310 - 'react.jsx' : '', 311 - 'README' : '', 312 - 'README.markdown' : '', 313 - 'README.md' : '', 314 - 'README.rst' : '', 315 - 'README.txt' : '', 316 - 'sxhkdrc' : '', 317 - 'user-dirs.dirs' : '', 318 - 'webpack.config.js' : '', 319 -} 320 - 321 -def devicon(file): 322 - if file.is_directory: return dir_node_exact_matches.get(file.relative_path, '') 323 - return file_node_exact_matches.get(os.path.basename(file.relative_path), file_node_extensions.get(file.extension, ''))
D
config/ranger/plugins/git.py
··· 1 -import subprocess 2 -from ranger.api.commands import Command 3 - 4 - 5 -class git(Command): 6 - 7 - commands = 'init status clone add rm restore commit remote push'.split() 8 - 9 - 10 - def execute(self): 11 - # empty 12 - if not self.arg(1): 13 - return self.fm.notify("For commands check \"git help\"") 14 - 15 - # help 16 - if self.arg(1) == "help": 17 - return self.fm.notify("Not done yet!", bad=True) 18 - 19 - # init 20 - if self.arg(1) == self.commands[0]: 21 - subprocess.run(["git", "init", "--quiet"]) 22 - return self.fm.notify("Repository initialized successefully") 23 - 24 - # status 25 - if self.arg(1) == self.commands[1]: 26 - output = subprocess.check_output(["git", "status"]).decode() 27 - 28 - with open('/tmp/gitplug-status', 'w') as out: 29 - out.write(output) 30 - 31 - return self.fm.edit_file('/tmp/gitplug-status') 32 - 33 - # clone 34 - if self.arg(1) == self.commands[2]: 35 - if not self.arg(2): 36 - return self.fm.notify("Missing url!", bad=True) 37 - 38 - if self.arg(2): 39 - subprocess.run(["git", "clone", self.arg(2), "--quiet"]) 40 - return self.fm.notify("Repository successfully cloned!") 41 - 42 - # add 43 - if self.arg(1) == self.commands[3]: 44 - if not self.arg(2): 45 - return self.fm.notify("Missing arguments! Usage :git add <file>", bad=True) 46 - 47 - if self.arg(2): 48 - subprocess.run(["git", "add", self.arg(2)]) 49 - return self.fm.notify("Successfully added files to branch!") 50 - 51 - #rm 52 - if self.arg(1) == self.commands[4]: 53 - if not self.arg(2): 54 - return self.fm.notify("Missing arguments! Usage :git rm <file>", bad=True) 55 - 56 - if self.arg(2): 57 - subprocess.run(["git", "rm", self.arg(2)]) 58 - return self.fm.notify("Successfully removed files from branch!") 59 - 60 - # restore 61 - if self.arg(1) == self.commands[5]: 62 - if not self.arg(2): 63 - return self.fm.notify("Missing arguments! Usage :git restore <file>", bad=True) 64 - 65 - if self.arg(2): 66 - subprocess.run(["git", "restore", "--staged", self.arg(2), "--quiet"]) 67 - return self.fm.notify("Successfully restored files!") 68 - 69 - # commit 70 - if self.arg(1) == self.commands[6]: 71 - if not self.rest(2): 72 - return self.fm.notify("Missing commit text", bad=True) 73 - 74 - if self.rest(2): 75 - subprocess.run(["git", "commit", "-m", self.rest(2), "--quiet"]) 76 - return self.fm.notify("Successfully commited!") 77 - 78 - # remote 79 - if self.arg(1) == self.commands[7]: 80 - if not self.arg(2): 81 - return self.fm.notify("Missing arguments! Use: git remote add/rm <name> <url>", bad=True) 82 - 83 - if self.arg(2) == "add": 84 - if not self.arg(3): 85 - return self.fm.notify("Missing name and url!", bad=True) 86 - 87 - if self.arg(3): 88 - if not self.arg(4): 89 - return self.fm.notify("Missing url!", bad=True) 90 - 91 - if self.arg(4): 92 - subprocess.run(["git", "remote", "add", self.arg(3), self.arg(4)]) 93 - return self.fm.notify("Remote successfully added!") 94 - 95 - if self.arg(2) == "rm": 96 - if not self.arg(3): 97 - return self.fm.notify("Missing name!", bad=True) 98 - 99 - if self.arg(3): 100 - subprocess.run(["git", "remote", "rm", self.arg(3)]) 101 - return self.fm.notify("Remote successfully removed") 102 - 103 - # push 104 - if self.arg(1) == self.commands[8]: 105 - if self.arg(2) == "-u" and self.arg(3) and self.arg(4): 106 - subprocess.run(["git", "push", "--quiet", "-u", self.arg(3), self.arg(4)]) 107 - return self.fm.notify("Repository successfully pushed") 108 - 109 - if not self.arg(2): 110 - subprocess.run(["git", "push", "--quiet"]) 111 - return self.fm.notify("Repository successfully pushed")
M
vscode/settings.json
··· 1 1 { 2 2 // Apperence 3 - "workbench.colorTheme": "Ayu Dark", 3 + "workbench.colorTheme": "Ayu Dark Bordered", 4 4 "workbench.iconTheme": "ayu", 5 5 "editor.fontFamily": "Jetbrain Mono, Droid Sans Mono, monospace", 6 6 "editor.wordWrap": "off", ··· 118 118 "editor.minimap.enabled": false, 119 119 "tabnine.experimentalAutoImports": true, 120 120 "git.confirmSync": false, 121 + "workbench.colorCustomizations": { 122 + "[generated-dark]": { 123 + "focusBorder": "#008dcd", 124 + "foreground": "#dfdfdf", 125 + "widget.shadow": "#0e1010", 126 + "selection.background": "#008dcd80", 127 + "errorForeground": "#F07171", 128 + "textLink.foreground": "#c678dd", 129 + "textLink.activeForeground": "#008dcd", 130 + "textPreformat.foreground": "#51afef", 131 + "textSeparator.foreground": "#0f1112", 132 + "button.background": "#c678dd", 133 + "button.foreground": "#000000", 134 + "button.hoverBackground": "#a463b7", 135 + "checkbox.background": "#313638", 136 + "dropdown.background": "#313638", 137 + "dropdown.border": "#3a4042", 138 + "input.background": "#313638", 139 + "input.border": "#3a4042", 140 + "inputValidation.errorBackground": "#F0717190", 141 + "inputValidation.errorBorder": "#F07171", 142 + "inputValidation.errorForeground": "#000000", 143 + "inputValidation.infoBackground": "#399EE690", 144 + "inputValidation.infoBorder": "#399EE6", 145 + "inputValidation.infoForeground": "#000000", 146 + "inputValidation.warningBackground": "#EF7C2A90", 147 + "inputValidation.warningBorder": "#EF7C2A", 148 + "inputValidation.warningForeground": "#000000", 149 + "scrollbar.shadow": "#0e1010", 150 + "scrollbarSlider.background": "#6a757750", 151 + "scrollbarSlider.hoverBackground": "#808e9140", 152 + "scrollbarSlider.activeBackground": "#535c5e40", 153 + "badge.background": "#51afef", 154 + "badge.foreground": "#000000", 155 + "progressBar.background": "#008dcd", 156 + "list.activeSelectionBackground": "#008dcd20", 157 + "list.focusBackground": "#008dcd30", 158 + "list.highlightForeground": "#51afef", 159 + "list.hoverBackground": "#323739", 160 + "list.inactiveSelectionBackground": "#008dcd25", 161 + "list.errorForeground": "#F07171", 162 + "list.warningForeground": "#EF7C2A", 163 + "activityBar.background": "#1b1e1e", 164 + "activityBar.inactiveForeground": "#acacac", 165 + "activityBar.dropBorder": "#008dcd", 166 + "activityBarBadge.background": "#51afef", 167 + "activityBarBadge.foreground": "#000000", 168 + "activityBar.activeBorder": "#008dcd", 169 + "activityBar.activeBackground": "#008dcd13", 170 + "activityBar.activeFocusBorder": "#008dcd", 171 + "sideBar.background": "#202425", 172 + "sideBarSectionHeader.background": "#2b3032", 173 + "minimap.selectionHighlight": "#008dcd80", 174 + "minimap.errorHighlight": "#F07171", 175 + "minimap.warningHighlight": "#EF7C2A", 176 + "minimapGutter.addedBackground": "#ecbe7b", 177 + "minimapGutter.deletedBackground": "#F07171", 178 + "minimapGutter.modifiedBackground": "#399EE6", 179 + "editorGroup.border": "#1b1e1e", 180 + "editorGroup.dropBackground": "#008dcd30", 181 + "editorGroupHeader.noTabsBackground": "#313638", 182 + "editorGroupHeader.tabsBackground": "#313638", 183 + "tab.activeBackground": "#262a2b", 184 + "tab.border": "#3d4345", 185 + "tab.activeBorder": "#008dcd", 186 + "tab.lastPinnedBorder": "#008dcd50", 187 + "tab.inactiveBackground": "#313638", 188 + "tab.hoverBackground": "#3d4345", 189 + "tab.activeModifiedBorder": "#399EE6", 190 + "editorPane.background": "#1d2021", 191 + "editor.background": "#262a2b", 192 + "editor.foreground": "#dfdfdf", 193 + "editorLineNumber.foreground": "#565f61", 194 + "editorLineNumber.activeForeground": "#a3abad", 195 + "editorCursor.background": "#ffffff", 196 + "editorCursor.foreground": "#008dcd", 197 + "editor.selectionBackground": "#008dcd30", 198 + "editor.findMatchHighlightBackground": "#dfdfdf30", 199 + "editor.findMatchBorder": "#008dcd", 200 + "editor.lineHighlightBackground": "#313638", 201 + "editorLink.activeForeground": "#008dcd", 202 + "editorWhitespace.foreground": "#535c5e", 203 + "editorIndentGuide.background": "#3d4345", 204 + "editorIndentGuide.activeBackground": "#008dcd", 205 + "editorRuler.foreground": "#3d4345", 206 + "editorBracketMatch.border": "#00699a", 207 + "editorBracketMatch.background": "#212526", 208 + "editor.foldBackground": "#008dcd30", 209 + "editorOverviewRuler.border": "#3d4345", 210 + "editorOverviewRuler.selectionHighlightForeground": "#008dcd", 211 + "editorOverviewRuler.modifiedForeground": "#399EE6", 212 + "editorOverviewRuler.addedForeground": "#399EE6", 213 + "editorOverviewRuler.deletedForeground": "#399EE6", 214 + "editorOverviewRuler.errorForeground": "#F07171", 215 + "editorOverviewRuler.warningForeground": "#EF7C2A", 216 + "editorOverviewRuler.infoForeground": "#399EE6", 217 + "editorOverviewRuler.bracketMatchForeground": "#008dcd", 218 + "editorError.foreground": "#F07171", 219 + "editorWarning.foreground": "#EF7C2A", 220 + "editorInfo.foreground": "#399EE6", 221 + "problemsErrorIcon.foreground": "#F07171", 222 + "problemsWarningIcon.foreground": "#EF7C2A", 223 + "problemsInfoIcon.foreground": "#399EE6", 224 + "editorGutter.modifiedBackground": "#399EE6", 225 + "editorGutter.addedBackground": "#ecbe7b", 226 + "editorGutter.deletedBackground": "#F07171", 227 + "diffEditor.insertedTextBackground": "#ecbe7b30", 228 + "diffEditor.removedTextBackground": "#F0717135", 229 + "editorWidget.background": "#262a2b", 230 + "editorWidget.resizeBorder": "#3d4345", 231 + "editorSuggestWidget.background": "#313638", 232 + "editorSuggestWidget.border": "#3d4345", 233 + "editorSuggestWidget.highlightForeground": "#51afef", 234 + "editorHoverWidget.border": "#3d4345", 235 + "editorMarkerNavigation.background": "#262a2b", 236 + "editorMarkerNavigationError.background": "#F07171", 237 + "editorMarkerNavigationWarning.background": "#EF7C2A", 238 + "editorMarkerNavigationInfo.background": "#399EE6", 239 + "peekViewResult.background": "#313638", 240 + "peekViewTitle.background": "#1b1e1e", 241 + "panel.dropBorder": "#008dcd", 242 + "panelTitle.activeBorder": "#008dcd", 243 + "statusBar.background": "#1b1e1e", 244 + "statusBarItem.hoverBackground": "#323737", 245 + "statusBarItem.prominentBackground": "#008dcd", 246 + "statusBarItem.prominentForeground": "#ffffff", 247 + "statusBarItem.prominentHoverBackground": "#007bb3", 248 + "titleBar.activeBackground": "#313638", 249 + "titleBar.inactiveBackground": "#262a2b", 250 + "titleBar.border": "#353b3d", 251 + "menu.background": "#262a2b", 252 + "menu.foreground": "#dfdfdf", 253 + "menu.selectionBackground": "#008dcdDD", 254 + "menu.selectionForeground": "#ffffff", 255 + "menu.separatorBackground": "#535c5e", 256 + "notificationsErrorIcon.foreground": "#F07171", 257 + "notificationsWarningIcon.foreground": "#EF7C2A", 258 + "notificationsInfoIcon.foreground": "#399EE6", 259 + "notifications.background": "#262a2b", 260 + "extensionButton.prominentBackground": "#c678dd", 261 + "extensionButton.prominentForeground": "#000000", 262 + "extensionButton.prominentHoverBackground": "#985caa", 263 + "pickerGroup.border": "#0f1112", 264 + "pickerGroup.foreground": "#008dcd", 265 + "terminal.selectionBackground": "#008dcd", 266 + "terminalCursor.foreground": "#008dcd", 267 + "terminalCursor.background": "#ffffff", 268 + "gitDecoration.addedResourceForeground": "#ecbe7b", 269 + "gitDecoration.modifiedResourceForeground": "#399EE6", 270 + "gitDecoration.deletedResourceForeground": "#F07171", 271 + "gitDecoration.stageDeletedResourceForeground": "#F07171", 272 + "gitDecoration.stageModifiedResourceForeground": "#399EE6", 273 + "settings.modifiedItemIndicator": "#399EE6", 274 + "notebook.focusedRowBorder": "#008dcd" 275 + } 276 + }, 277 + "editor.tokenColorCustomizations": { 278 + "[generated-dark]": { 279 + "textMateRules": [ 280 + { 281 + "scope": "invalid", 282 + "settings": { 283 + "foreground": "#F07171" 284 + } 285 + }, 286 + { 287 + "scope": [ 288 + "meta.embedded", 289 + "source.groovy.embedded", 290 + "meta.template.expression" 291 + ], 292 + "settings": { 293 + "foreground": "#dfdfdf" 294 + } 295 + }, 296 + { 297 + "scope": [ 298 + "variable", 299 + "support.variable.property.dom", 300 + "support.variable.dom", 301 + "support.variable.property", 302 + "punctuation.separator.parameter", 303 + "string.interpolated.pug variable" 304 + ], 305 + "settings": { 306 + "foreground": "#dfdfdf" 307 + } 308 + }, 309 + { 310 + "scope": [ 311 + "comment", 312 + "punctuation.definition.comment" 313 + ], 314 + "settings": { 315 + "foreground": "#758184" 316 + } 317 + }, 318 + { 319 + "scope": [ 320 + "string", 321 + "punctuation.definition.string" 322 + ], 323 + "settings": { 324 + "foreground": "#2623ab" 325 + } 326 + }, 327 + { 328 + "scope": "constant.character.escape", 329 + "settings": { 330 + "foreground": "#c678dd" 331 + } 332 + }, 333 + { 334 + "scope": [ 335 + "keyword", 336 + "constant.language.import-export-all" 337 + ], 338 + "settings": { 339 + "foreground": "#51afef" 340 + } 341 + }, 342 + { 343 + "scope": [ 344 + "entity.name.type", 345 + "support.type.primitive", 346 + "support.type.builtin", 347 + "meta.type.annotation entity.name.type", 348 + "meta.type.parameters entity.name.type" 349 + ], 350 + "settings": { 351 + "foreground": "#98be65" 352 + } 353 + }, 354 + { 355 + "scope": [ 356 + "keyword.control", 357 + "keyword.operator", 358 + "storage", 359 + "support.type", 360 + "keyword.operator.expression", 361 + "keyword.operator.new" 362 + ], 363 + "settings": { 364 + "foreground": "#c678dd" 365 + } 366 + }, 367 + { 368 + "scope": [ 369 + "entity.name.function", 370 + "support.class", 371 + "support.function", 372 + "new.expr entity.name.type", 373 + "entity.other.inherited-class" 374 + ], 375 + "settings": { 376 + "foreground": "#008dcd" 377 + } 378 + }, 379 + { 380 + "scope": [ 381 + "punctuation.definition.typeparameters", 382 + "keyword.operator.type", 383 + "keyword.operator.optional", 384 + "punctuation.definition.template-expression", 385 + "source.tsx punctuation.section.embedded", 386 + "source.jsx punctuation.section.embedded" 387 + ], 388 + "settings": { 389 + "foreground": "#51afef" 390 + } 391 + }, 392 + { 393 + "scope": "constant", 394 + "settings": { 395 + "foreground": "#98be65" 396 + } 397 + }, 398 + { 399 + "scope": [ 400 + "constant.numeric", 401 + "constant.language" 402 + ], 403 + "settings": { 404 + "foreground": "#dfdfdf" 405 + } 406 + }, 407 + { 408 + "scope": [ 409 + "variable.parameter", 410 + "parameter.variable", 411 + "meta.function.parameter variable", 412 + "source.rust meta.type_params.rust" 413 + ], 414 + "settings": { 415 + "foreground": "#dfdfdf" 416 + } 417 + }, 418 + { 419 + "scope": [ 420 + "punctuation", 421 + "meta.brace" 422 + ], 423 + "settings": { 424 + "foreground": "#868686" 425 + } 426 + }, 427 + { 428 + "scope": "comment.block.documentation entity.name.type", 429 + "settings": { 430 + "foreground": "#51afef" 431 + } 432 + }, 433 + { 434 + "scope": [ 435 + "variable.language.this", 436 + "variable.language.special.self" 437 + ], 438 + "settings": { 439 + "foreground": "#c678dd" 440 + } 441 + }, 442 + { 443 + "scope": [ 444 + "meta.tag.metadata.doctype entity.name.tag", 445 + "meta.tag.metadata.doctype punctuation.definition.tag", 446 + "meta.tag.metadata.doctype string", 447 + "meta.tag.metadata.doctype entity.other.attribute-name.html", 448 + "meta.tag.sgml.doctype" 449 + ], 450 + "settings": { 451 + "foreground": "#868686" 452 + } 453 + }, 454 + { 455 + "scope": "entity.name.tag", 456 + "settings": { 457 + "foreground": "#c678dd" 458 + } 459 + }, 460 + { 461 + "scope": "meta.tag string", 462 + "settings": { 463 + "foreground": "#2623ab" 464 + } 465 + }, 466 + { 467 + "scope": "meta.attribute punctuation.definition.string", 468 + "settings": { 469 + "foreground": "#868686" 470 + } 471 + }, 472 + { 473 + "scope": [ 474 + "meta.tag entity.other.attribute-name", 475 + "entity.other.attribute-name.html" 476 + ], 477 + "settings": { 478 + "foreground": "#51afef" 479 + } 480 + }, 481 + { 482 + "scope": [ 483 + "constant.character.entity", 484 + "punctuation.definition.entity" 485 + ], 486 + "settings": { 487 + "foreground": "#dfdfdf" 488 + } 489 + }, 490 + { 491 + "scope": [ 492 + "entity.name.section.markdown", 493 + "markup.heading.setext" 494 + ], 495 + "settings": { 496 + "foreground": "#51afef" 497 + } 498 + }, 499 + { 500 + "scope": "punctuation.definition.list", 501 + "settings": { 502 + "foreground": "#51afef" 503 + } 504 + }, 505 + { 506 + "scope": "meta.separator.markdown", 507 + "settings": { 508 + "foreground": "#51afef" 509 + } 510 + }, 511 + { 512 + "scope": "markup.inline.raw", 513 + "settings": { 514 + "foreground": "#c678dd" 515 + } 516 + }, 517 + { 518 + "scope": "markup.bold", 519 + "settings": { 520 + "fontStyle": "bold" 521 + } 522 + }, 523 + { 524 + "scope": "markup.italic", 525 + "settings": { 526 + "fontStyle": "italic" 527 + } 528 + }, 529 + { 530 + "scope": [ 531 + "meta.link punctuation.definition.string", 532 + "meta.image punctuation.definition.string" 533 + ], 534 + "settings": { 535 + "foreground": "#868686" 536 + } 537 + }, 538 + { 539 + "scope": [ 540 + "link", 541 + "markup.underline.link", 542 + "constant.other.reference.link.markdown" 543 + ], 544 + "settings": { 545 + "foreground": "#008dcd" 546 + } 547 + }, 548 + { 549 + "scope": "markup.quote", 550 + "settings": { 551 + "foreground": "#dfdfdf" 552 + } 553 + }, 554 + { 555 + "scope": [ 556 + "entity.name.tag.css", 557 + "entity.name.tag.wildcard" 558 + ], 559 + "settings": { 560 + "foreground": "#2623ab" 561 + } 562 + }, 563 + { 564 + "scope": [ 565 + "entity.other.attribute-name.class", 566 + "entity.other.attribute-name punctuation.definition.entity" 567 + ], 568 + "settings": { 569 + "foreground": "#51afef" 570 + } 571 + }, 572 + { 573 + "scope": [ 574 + "entity.other.attribute-name.pseudo-element", 575 + "entity.other.attribute-name.pseudo-class", 576 + "constant.other.color" 577 + ], 578 + "settings": { 579 + "foreground": "#c678dd" 580 + } 581 + }, 582 + { 583 + "scope": [ 584 + "entity.other.attribute-name.id", 585 + "entity.other.attribute-name.id punctuation.definition.entity" 586 + ], 587 + "settings": { 588 + "foreground": "#008dcd" 589 + } 590 + }, 591 + { 592 + "scope": "source.css constant.numeric", 593 + "settings": { 594 + "foreground": "#2623ab" 595 + } 596 + }, 597 + { 598 + "scope": [ 599 + "meta.property-name", 600 + "support.type.property-name" 601 + ], 602 + "settings": { 603 + "foreground": "#dfdfdf" 604 + } 605 + }, 606 + { 607 + "scope": [ 608 + "meta.property-value", 609 + "meta.property-value constant.other", 610 + "support.constant.property-value" 611 + ], 612 + "settings": { 613 + "foreground": "#008dcd" 614 + } 615 + }, 616 + { 617 + "scope": "variable.parameter.url", 618 + "settings": { 619 + "foreground": "#dfdfdf" 620 + } 621 + }, 622 + { 623 + "scope": "punctuation.definition.variable", 624 + "settings": { 625 + "foreground": "#dfdfdf" 626 + } 627 + }, 628 + { 629 + "scope": [ 630 + "punctuation.section.embedded.begin.php", 631 + "punctuation.section.embedded.end.php" 632 + ], 633 + "settings": { 634 + "foreground": "#51afef" 635 + } 636 + }, 637 + { 638 + "scope": "entity.name.section", 639 + "settings": { 640 + "foreground": "#008dcd" 641 + } 642 + }, 643 + { 644 + "scope": "support.type.property-name.json", 645 + "settings": { 646 + "foreground": "#51afef" 647 + } 648 + }, 649 + { 650 + "scope": "markup.inserted", 651 + "settings": { 652 + "foreground": "#ecbe7b" 653 + } 654 + }, 655 + { 656 + "scope": "markup.changed", 657 + "settings": { 658 + "foreground": "#399EE6" 659 + } 660 + }, 661 + { 662 + "scope": "markup.deleted", 663 + "settings": { 664 + "foreground": "#F07171" 665 + } 666 + }, 667 + { 668 + "scope": "meta.diff.header", 669 + "settings": { 670 + "foreground": "#399EE6", 671 + "fontStyle": "italic" 672 + } 673 + }, 674 + { 675 + "scope": "meta.diff.range", 676 + "settings": { 677 + "foreground": "#c678dd" 678 + } 679 + } 680 + ] 681 + } 682 + }, 121 683 122 684 }