Compare commits

...

No commits in common. "master" and "main" have entirely different histories.
master ... main

152 changed files with 239 additions and 25545 deletions

View File

@ -1,22 +0,0 @@
# GIMP action-history
(history-item "file-open-as-layers" 1)
(history-item "edit-clear" 3)
(history-item "file-export-as" 0)
(history-item "file-quit" 1)
(history-item "file-open" 1)
(history-item "image-new" 3)
(history-item "tools-opacity-decrease-skip" 0)
(history-item "file-save-as" 1)
(history-item "layers-edit" 1)
(history-item "tools-free-select" 0)
(history-item "tools-scale" 0)
(history-item "layers-mask-add" 0)
(history-item "tools-iscissors" 0)
(history-item "tools-cage" 0)
(history-item "tools-dodge-burn" 0)
(history-item "file-save-and-close" 0)
(history-item "select-all" 0)
(history-item "file-export" 1)
# end of action-history

View File

@ -1,26 +0,0 @@
# GIMP colorrc
#
# This file holds a list of recently used colors.
(color-history
(color-rgba 0 0 0 1)
(color-rgba 1 1 1 1)
(color-rgba 1 1 1 6.9151532261950661e-310)
(color-rgba 0 1 0.25339366515837103 1)
(color-rgba 1 0 0 0)
(color-rgba 0 1 0.25490196078431371 6.9347311184141981e-310)
(color-rgba 0 0 0 6.9159840079784323e-310)
(color-rgba 1 0.84313725490196079 0 6.8994728715619521e-310)
(color-rgba 1 0.87058823529411766 0 6.8994728715619521e-310)
(color-rgba 1 0.94901960784313721 0 6.8994728715619521e-310)
(color-rgba 1 0.89411764705882357 0 6.8994728715619521e-310)
(color-rgba 0.070588235294117646 1 0 0)
(color-rgba 0.072398190045249056 1 0 1)
(color-rgba 0.039215686274509803 0.19607843137254902 0.96470588235294119 6.8994728715619521e-310)
(color-rgba 1 0.92307692307692313 0 1)
(color-rgba 1 0 0 1)
(color-rgba 0.58823529411764675 0 1 1)
(color-rgba 0 1 0.0078431372549019607 6.8994728715619521e-310)
(color-rgba 0 0.0078431372549019607 1 6.8994728715619521e-310))
# end of colorrc

View File

@ -1,14 +0,0 @@
# GIMP user context
(tool "gimp-scale-tool")
(paint-info "gimp-paintbrush")
(brush "2. Hardness 050")
(dynamics "Dynamics Off")
(mybrush "100% Opaque")
(pattern "Pine")
(gradient "FG to BG (RGB)")
(palette "Color History")
(font "Sans-serif")
(tool-preset "Core Pointer")
# end of user context

View File

@ -1,40 +0,0 @@
# GIMP controllerrc
#
# This file will be entirely rewritten each time you exit.
(GimpControllerInfo "Main Mouse Wheel"
(icon-name "gimp-controller-wheel")
(enabled yes)
(debug-events no)
(controller "GimpControllerWheel")
(mapping
(map "scroll-down-shift-primary" "tools-aspect-decrease")
(map "scroll-up-shift-alt" "tools-angle-increase")
(map "scroll-up-alt" "tools-opacity-increase")
(map "scroll-down-shift-alt" "tools-angle-decrease")
(map "scroll-down-primary-alt" "tools-size-decrease")
(map "scroll-up-shift-primary-alt" "tools-spacing-increase")
(map "scroll-down-alt" "tools-opacity-decrease")
(map "scroll-up-primary-alt" "tools-size-increase")
(map "scroll-up-shift-primary" "tools-aspect-increase")
(map "scroll-down-shift-primary-alt" "tools-spacing-decrease")))
(GimpControllerInfo "Main Keyboard"
(icon-name "gimp-controller-keyboard")
(enabled yes)
(debug-events no)
(controller "GimpControllerKeyboard")
(mapping
(map "cursor-right-alt" "tools-size-increase")
(map "cursor-left-shift" "view-scroll-page-left")
(map "cursor-right-shift" "view-scroll-page-right")
(map "cursor-up-shift" "view-scroll-page-up")
(map "cursor-up-primary" "view-scroll-top-border")
(map "cursor-down-primary" "view-scroll-bottom-border")
(map "cursor-up-alt" "tools-size-increase-skip")
(map "cursor-left-alt" "tools-size-decrease")
(map "cursor-down-shift" "view-scroll-page-down")
(map "cursor-right-primary" "view-scroll-right-border")
(map "cursor-left-primary" "view-scroll-left-border")
(map "cursor-down-alt" "tools-size-decrease-skip")))
# end of controllerrc

File diff suppressed because one or more lines are too long

View File

@ -1,4 +0,0 @@
# recently closed docks
# end of recently closed docks

View File

@ -1,33 +0,0 @@
# GIMP gimprc
#
# This is your personal gimprc file. Any variable defined in this file takes
# precedence over the value defined in the system-wide gimprc:
# /etc/gimp/2.0/gimprc
# Most values can be set within GIMP by changing some options in the
# Preferences dialog.
(import-raw-plug-in "${gimp_plug_in_dir}/plug-ins/file-raw-placeholder/file-raw-placeholder")
(monitor-xresolution 65024)
(monitor-yresolution 36576)
(fill-options
(style solid)
(antialias yes)
(feather no)
(feather-radius 10))
(stroke-options
(style solid)
(antialias yes)
(feather no)
(feather-radius 10)
(method line)
(width 6)
(unit pixels)
(cap-style butt)
(join-style miter)
(miter-limit 10)
(dash-offset 0)
(dash-info 0)
(emulate-brush-dynamics no))
# end of gimprc

View File

@ -1,4 +0,0 @@
GIMP Gradient
Name: Custom
1
0 0.5 1 0 0 0 1 1 1 1 1 0 0 1 3

File diff suppressed because it is too large Load Diff

View File

@ -1,6 +0,0 @@
# GIMP parasiterc
#
# This file will be entirely rewritten each time you exit.
# end of parasiterc

File diff suppressed because it is too large Load Diff

View File

@ -1,4 +0,0 @@
# GIMP color profile history
# end of color profile history

View File

@ -1,109 +0,0 @@
# GIMP sessionrc
#
# This file takes session-specific info (that is info, you want to keep
# between two GIMP sessions). You are not supposed to edit it manually, but
# of course you can do. The sessionrc will be entirely rewritten every time
# you quit GIMP. If this file isn't found, defaults are used.
(session-info "toplevel"
(factory-entry "gimp-empty-image-window")
(position 200 100)
(size 640 480))
(session-info "toplevel"
(factory-entry "gimp-single-image-window")
(position 30 31)
(size 2494 1393)
(open-on-exit)
(aux-info
(left-docks-width "207")
(right-docks-width "202")
(maximized "no"))
(gimp-toolbox
(side left)
(book
(current-page 0)
(dockable "gimp-tool-options"
(tab-style automatic)
(aux-info
(show-button-bar "true")))
(dockable "gimp-device-status"
(tab-style automatic)
(aux-info
(show-button-bar "true")))
(dockable "gimp-undo-history"
(tab-style automatic)
(aux-info
(show-button-bar "true")))
(dockable "gimp-image-list"
(tab-style automatic)
(aux-info
(show-button-bar "true")))))
(gimp-dock
(side right)
(book
(current-page 0)
(dockable "gimp-brush-grid"
(tab-style automatic)
(aux-info
(show-button-bar "true")))
(dockable "gimp-pattern-grid"
(tab-style automatic)
(aux-info
(show-button-bar "true")))
(dockable "gimp-font-list"
(tab-style automatic)
(aux-info
(show-button-bar "true")))
(dockable "gimp-document-list"
(tab-style automatic)
(aux-info
(show-button-bar "true"))))
(book
(position 336)
(current-page 0)
(dockable "gimp-layer-list"
(tab-style automatic)
(preview-size 32)
(aux-info
(show-button-bar "true")))
(dockable "gimp-channel-list"
(tab-style automatic)
(preview-size 32)
(aux-info
(show-button-bar "true")))
(dockable "gimp-vectors-list"
(tab-style automatic)
(preview-size 32)
(aux-info
(show-button-bar "true"))))))
(session-info "toplevel"
(factory-entry "gimp-file-open-dialog")
(position 803 361)
(size 948 712))
(session-info "toplevel"
(factory-entry "gimp-file-export-dialog")
(position 803 361)
(size 948 712))
(session-info "toplevel"
(factory-entry "gimp-image-new-dialog")
(position 1086 586))
(session-info "toplevel"
(factory-entry "gimp-toolbox-color-dialog")
(position 1073 534))
(session-info "toplevel"
(factory-entry "gimp-file-save-dialog")
(position 803 361)
(size 948 712))
(session-info "toplevel"
(factory-entry "gimp-text-tool-dialog")
(position 798 415)
(size 318 244)
(monitor 0))
(hide-docks no)
(single-window-mode yes)
(show-tabs yes)
(tabs-position 0)
(last-tip-shown 0)
# end of sessionrc

File diff suppressed because it is too large Load Diff

View File

@ -1,500 +0,0 @@
# GIMP templaterc
#
# This file will be entirely rewritten each time you exit.
(GimpTemplate "A0 (300 ppi)"
(width 9933)
(height 14043)
(unit millimeters)
(xresolution 300)
(yresolution 300)
(resolution-unit inches)
(image-type rgb)
(precision u8-gamma)
(color-managed yes)
(color-profile NULL)
(fill-type background))
(GimpTemplate "A1 (300 ppi)"
(width 7016)
(height 9933)
(unit millimeters)
(xresolution 300)
(yresolution 300)
(resolution-unit inches)
(image-type rgb)
(precision u8-gamma)
(color-managed yes)
(color-profile NULL)
(fill-type background))
(GimpTemplate "A2 (300 ppi)"
(width 4960)
(height 7016)
(unit millimeters)
(xresolution 300)
(yresolution 300)
(resolution-unit inches)
(image-type rgb)
(precision u8-gamma)
(color-managed yes)
(color-profile NULL)
(fill-type background))
(GimpTemplate "A3 (300 ppi)"
(width 3508)
(height 4960)
(unit millimeters)
(xresolution 300)
(yresolution 300)
(resolution-unit inches)
(image-type rgb)
(precision u8-gamma)
(color-managed yes)
(color-profile NULL)
(fill-type background))
(GimpTemplate "A4 (300 ppi)"
(width 2480)
(height 3508)
(unit millimeters)
(xresolution 300)
(yresolution 300)
(resolution-unit inches)
(image-type rgb)
(precision u8-gamma)
(color-managed yes)
(color-profile NULL)
(fill-type background))
(GimpTemplate "A5 (300 ppi)"
(width 1748)
(height 2480)
(unit millimeters)
(xresolution 300)
(yresolution 300)
(resolution-unit inches)
(image-type rgb)
(precision u8-gamma)
(color-managed yes)
(color-profile NULL)
(fill-type background))
(GimpTemplate "A6 (300 ppi)"
(width 1240)
(height 1748)
(unit millimeters)
(xresolution 300)
(yresolution 300)
(resolution-unit inches)
(image-type rgb)
(precision u8-gamma)
(color-managed yes)
(color-profile NULL)
(fill-type background))
(GimpTemplate "A7 (300 ppi)"
(width 874)
(height 1240)
(unit millimeters)
(xresolution 300)
(yresolution 300)
(resolution-unit inches)
(image-type rgb)
(precision u8-gamma)
(color-managed yes)
(color-profile NULL)
(fill-type background))
(GimpTemplate "B4 (300 ppi)"
(width 2953)
(height 4169)
(unit millimeters)
(xresolution 300)
(yresolution 300)
(resolution-unit inches)
(image-type rgb)
(precision u8-gamma)
(color-managed yes)
(color-profile NULL)
(fill-type background))
(GimpTemplate "B5 (300 ppi)"
(width 2079)
(height 2953)
(unit millimeters)
(xresolution 300)
(yresolution 300)
(resolution-unit inches)
(image-type rgb)
(precision u8-gamma)
(color-managed yes)
(color-profile NULL)
(fill-type background))
(GimpTemplate "B5-Japan (300 ppi)"
(width 2150)
(height 3035)
(unit millimeters)
(xresolution 300)
(yresolution 300)
(resolution-unit inches)
(image-type rgb)
(precision u8-gamma)
(color-managed yes)
(color-profile NULL)
(fill-type background))
(GimpTemplate "US Letter (300 ppi)"
(width 2550)
(height 3300)
(unit inches)
(xresolution 300)
(yresolution 300)
(resolution-unit inches)
(image-type rgb)
(precision u8-gamma)
(color-managed yes)
(color-profile NULL)
(fill-type background))
(GimpTemplate "US Legal (300 ppi)"
(width 2550)
(height 4200)
(unit inches)
(xresolution 300)
(yresolution 300)
(resolution-unit inches)
(image-type rgb)
(precision u8-gamma)
(color-managed yes)
(color-profile NULL)
(fill-type background))
(GimpTemplate "88.9×50.8 US Business Card"
(icon-name "gimp-business-card")
(width 1050)
(height 600)
(unit millimeters)
(xresolution 300)
(yresolution 300)
(resolution-unit inches)
(image-type rgb)
(precision u8-gamma)
(color-managed yes)
(color-profile NULL)
(fill-type background))
(GimpTemplate "85×55 Western Europe Business Card"
(icon-name "gimp-business-card")
(width 1004)
(height 650)
(unit millimeters)
(xresolution 300)
(yresolution 300)
(resolution-unit inches)
(image-type rgb)
(precision u8-gamma)
(color-managed yes)
(color-profile NULL)
(fill-type background))
(GimpTemplate "90×50 Eastern Europe Business Card"
(icon-name "gimp-business-card")
(width 1063)
(height 591)
(unit millimeters)
(xresolution 300)
(yresolution 300)
(resolution-unit inches)
(image-type rgb)
(precision u8-gamma)
(color-managed yes)
(color-profile NULL)
(fill-type background))
(GimpTemplate "90×55 Business Card (AU, IN etc.)"
(icon-name "gimp-business-card")
(width 1063)
(height 650)
(unit millimeters)
(xresolution 300)
(yresolution 300)
(resolution-unit inches)
(image-type rgb)
(precision u8-gamma)
(color-managed yes)
(color-profile NULL)
(fill-type background))
(GimpTemplate "87×49 Vistaprint Business Card"
(icon-name "gimp-business-card")
(width 1028)
(height 579)
(unit millimeters)
(xresolution 300)
(yresolution 300)
(resolution-unit inches)
(image-type rgb)
(precision u8-gamma)
(color-managed yes)
(color-profile NULL)
(fill-type background))
(GimpTemplate "Toilet paper (US, 300 ppi)"
(icon-name "gimp-toilet-paper")
(width 1350)
(height 1350)
(unit inches)
(xresolution 300)
(yresolution 300)
(resolution-unit inches)
(image-type rgb)
(precision u8-gamma)
(color-managed yes)
(color-profile NULL)
(fill-type background))
(GimpTemplate "CD cover (300 ppi)"
(icon-name "media-optical")
(width 1429)
(height 1417)
(unit millimeters)
(xresolution 300)
(yresolution 300)
(resolution-unit inches)
(image-type rgb)
(precision u8-gamma)
(color-managed yes)
(color-profile NULL)
(fill-type background))
(GimpTemplate "Web banner leaderboard 728x90"
(icon-name "gimp-web")
(width 728)
(height 90)
(unit pixels)
(xresolution 72)
(yresolution 72)
(resolution-unit inches)
(image-type rgb)
(precision u8-gamma)
(color-managed yes)
(color-profile NULL)
(fill-type background))
(GimpTemplate "Web banner large rectangle 336×280"
(icon-name "gimp-web")
(width 336)
(height 280)
(unit pixels)
(xresolution 72)
(yresolution 72)
(resolution-unit inches)
(image-type rgb)
(precision u8-gamma)
(color-managed yes)
(color-profile NULL)
(fill-type background))
(GimpTemplate "Web banner medium rectangle 300×250"
(icon-name "gimp-web")
(width 300)
(height 250)
(unit pixels)
(xresolution 72)
(yresolution 72)
(resolution-unit inches)
(image-type rgb)
(precision u8-gamma)
(color-managed yes)
(color-profile NULL)
(fill-type background))
(GimpTemplate "Web banner large mobile 320×100"
(icon-name "gimp-web")
(width 320)
(height 100)
(unit pixels)
(xresolution 72)
(yresolution 72)
(resolution-unit inches)
(image-type rgb)
(precision u8-gamma)
(color-managed yes)
(color-profile NULL)
(fill-type background))
(GimpTemplate "Web banner large skyscraper 300×600"
(icon-name "gimp-web")
(width 300)
(height 600)
(unit pixels)
(xresolution 72)
(yresolution 72)
(resolution-unit inches)
(image-type rgb)
(precision u8-gamma)
(color-managed yes)
(color-profile NULL)
(fill-type background))
(GimpTemplate "1280×720 (HD 720p)"
(icon-name "gimp-video")
(width 1280)
(height 720)
(unit pixels)
(xresolution 72)
(yresolution 72)
(resolution-unit inches)
(image-type rgb)
(precision u8-gamma)
(color-managed yes)
(color-profile NULL)
(fill-type background))
(GimpTemplate "1920×1080 (Full HD 1080p)"
(icon-name "gimp-video")
(width 1920)
(height 1080)
(unit pixels)
(xresolution 72)
(yresolution 72)
(resolution-unit inches)
(image-type rgb)
(precision u8-gamma)
(color-managed yes)
(color-profile NULL)
(fill-type background))
(GimpTemplate "3840x2160 (4K UHD)"
(icon-name "gimp-video")
(width 3840)
(height 2160)
(unit pixels)
(xresolution 72)
(yresolution 72)
(resolution-unit inches)
(image-type rgb)
(precision u8-gamma)
(color-managed yes)
(color-profile NULL)
(fill-type background))
(GimpTemplate "4096×2160 (Digital Cinema Initiatives 4K)"
(icon-name "gimp-video")
(width 4096)
(height 2160)
(unit pixels)
(xresolution 72)
(yresolution 72)
(resolution-unit inches)
(image-type rgb)
(precision u8-gamma)
(color-managed yes)
(color-profile NULL)
(fill-type background))
(GimpTemplate "1366×768 HD"
(icon-name "gimp-display")
(width 1366)
(height 768)
(unit pixels)
(xresolution 72)
(yresolution 72)
(resolution-unit inches)
(image-type rgb)
(precision u8-gamma)
(color-managed yes)
(color-profile NULL)
(fill-type background))
(GimpTemplate "1920×1200 WUXGA"
(icon-name "gimp-display")
(width 1920)
(height 1200)
(unit pixels)
(xresolution 72)
(yresolution 72)
(resolution-unit inches)
(image-type rgb)
(precision u8-gamma)
(color-managed yes)
(color-profile NULL)
(fill-type background))
(GimpTemplate "2560x1600 WQXGA"
(icon-name "gimp-display")
(width 2560)
(height 1600)
(unit pixels)
(xresolution 72)
(yresolution 72)
(resolution-unit inches)
(image-type rgb)
(precision u8-gamma)
(color-managed yes)
(color-profile NULL)
(fill-type background))
(GimpTemplate "3840×2160 4K UHD"
(icon-name "gimp-display")
(width 3840)
(height 2160)
(unit pixels)
(xresolution 72)
(yresolution 72)
(resolution-unit inches)
(image-type rgb)
(precision u8-gamma)
(color-managed yes)
(color-profile NULL)
(fill-type background))
(GimpTemplate "Apple iPhone 6/7"
(icon-name "gimp-smartphone")
(width 750)
(height 1334)
(unit millimeters)
(xresolution 326)
(yresolution 326)
(resolution-unit inches)
(image-type rgb)
(precision u8-gamma)
(color-managed yes)
(color-profile NULL)
(fill-type background))
(GimpTemplate "Apple iPhone 5"
(icon-name "gimp-smartphone")
(width 640)
(height 1136)
(unit millimeters)
(xresolution 326)
(yresolution 326)
(resolution-unit inches)
(image-type rgb)
(precision u8-gamma)
(color-managed yes)
(color-profile NULL)
(fill-type background))
(GimpTemplate "Apple iPad 3&4, Air"
(icon-name "gimp-smartphone")
(width 2048)
(height 2732)
(unit millimeters)
(xresolution 264)
(yresolution 264)
(resolution-unit inches)
(image-type rgb)
(precision u8-gamma)
(color-managed yes)
(color-profile NULL)
(fill-type background))
(GimpTemplate "Samsung Galaxy S6"
(icon-name "gimp-smartphone")
(width 1440)
(height 2560)
(unit millimeters)
(xresolution 577)
(yresolution 577)
(resolution-unit inches)
(image-type rgb)
(precision u8-gamma)
(color-managed yes)
(color-profile NULL)
(fill-type background))
(GimpTemplate "Samsung Galaxy S5"
(icon-name "gimp-smartphone")
(width 1080)
(height 1920)
(unit millimeters)
(xresolution 360)
(yresolution 360)
(resolution-unit inches)
(image-type rgb)
(precision u8-gamma)
(color-managed yes)
(color-profile NULL)
(fill-type background))
(GimpTemplate "Samsung Galaxy Tab 2&3 10,1 inch"
(icon-name "gimp-smartphone")
(width 800)
(height 1280)
(unit millimeters)
(xresolution 149)
(yresolution 149)
(resolution-unit inches)
(image-type rgb)
(precision u8-gamma)
(color-managed yes)
(color-profile NULL)
(fill-type background))
# end of templaterc

View File

@ -1,17 +0,0 @@
# GIMP themerc
#
# This file is written on GIMP startup and on every theme change.
# It is NOT supposed to be edited manually. Edit your personal
# gtkrc file instead (/home/victor/.config/GIMP/2.10/gtkrc).
style "gimp-spin-scale-style"
{
GimpSpinScale::compact = 1
}
class "GimpSpinScale" style "gimp-spin-scale-style"
include "/usr/share/gimp/2.0/themes/Dark/gtkrc"
include "/etc/gimp/2.0/gtkrc"
# end of themerc

View File

@ -1,10 +0,0 @@
# GIMP gimp-airbrush-tool options
(brush "2. Hardness 050")
(dynamics "Dynamics Off")
(gradient "FG to BG (RGB)")
(palette "Color History")
(brush-size 12)
(brush-hardness 0.5)
# end of gimp-airbrush-tool options

View File

@ -1,4 +0,0 @@
# GIMP gimp-align-tool options
# end of gimp-align-tool options

View File

@ -1,4 +0,0 @@
# GIMP gimp-brightness-contrast-tool options
# end of gimp-brightness-contrast-tool options

View File

@ -1,8 +0,0 @@
# GIMP gimp-bucket-fill-tool options
(pattern "Pine")
(brush-size 51)
(brush-hardness 0.5)
(fill-criterion r)
# end of gimp-bucket-fill-tool options

View File

@ -1,4 +0,0 @@
# GIMP gimp-by-color-select-tool options
# end of gimp-by-color-select-tool options

View File

@ -1,4 +0,0 @@
# GIMP gimp-cage-tool options
# end of gimp-cage-tool options

View File

@ -1,10 +0,0 @@
# GIMP gimp-clone-tool options
(brush "2. Hardness 050")
(dynamics "Dynamics Off")
(pattern "Pine")
(palette "Color History")
(brush-size 12)
(brush-hardness 0.5)
# end of gimp-clone-tool options

View File

@ -1,4 +0,0 @@
# GIMP gimp-color-picker-tool options
# end of gimp-color-picker-tool options

View File

@ -1,9 +0,0 @@
# GIMP gimp-convolve-tool options
(brush "2. Hardness 050")
(dynamics "Dynamics Off")
(palette "Color History")
(brush-size 12)
(brush-hardness 0.5)
# end of gimp-convolve-tool options

View File

@ -1,8 +0,0 @@
# GIMP gimp-crop-tool options
(aspect-denominator 334)
(aspect-numerator 259)
(overridden-fixed-aspect yes)
(pattern "Pine")
# end of gimp-crop-tool options

View File

@ -1,4 +0,0 @@
# GIMP gimp-curves-tool options
# end of gimp-curves-tool options

View File

@ -1,9 +0,0 @@
# GIMP gimp-dodge-burn-tool options
(brush "2. Hardness 050")
(dynamics "Dynamics Off")
(palette "Color History")
(brush-size 12)
(brush-hardness 0.5)
# end of gimp-dodge-burn-tool options

View File

@ -1,4 +0,0 @@
# GIMP gimp-ellipse-select-tool options
# end of gimp-ellipse-select-tool options

View File

@ -1,9 +0,0 @@
# GIMP gimp-eraser-tool options
(brush "2. Hardness 050")
(dynamics "Dynamics Off")
(palette "Color History")
(brush-size 12)
(brush-hardness 0.5)
# end of gimp-eraser-tool options

View File

@ -1,4 +0,0 @@
# GIMP gimp-flip-tool options
# end of gimp-flip-tool options

View File

@ -1,4 +0,0 @@
# GIMP gimp-foreground-select-tool options
# end of gimp-foreground-select-tool options

View File

@ -1,4 +0,0 @@
# GIMP gimp-free-select-tool options
# end of gimp-free-select-tool options

View File

@ -1,4 +0,0 @@
# GIMP gimp-fuzzy-select-tool options
# end of gimp-fuzzy-select-tool options

View File

@ -1,4 +0,0 @@
# GIMP gimp-gegl-tool options
# end of gimp-gegl-tool options

View File

@ -1,7 +0,0 @@
# GIMP gimp-gradient-tool options
(gradient "FG to BG (RGB)")
(brush-size 51)
(brush-hardness 0.5)
# end of gimp-gradient-tool options

View File

@ -1,4 +0,0 @@
# GIMP gimp-handle-transform-tool options
# end of gimp-handle-transform-tool options

View File

@ -1,9 +0,0 @@
# GIMP gimp-heal-tool options
(brush "2. Hardness 050")
(dynamics "Dynamics Off")
(palette "Color History")
(brush-size 12)
(brush-hardness 0.5)
# end of gimp-heal-tool options

View File

@ -1,6 +0,0 @@
# GIMP gimp-ink-tool options
(brush-size 51)
(brush-hardness 0.5)
# end of gimp-ink-tool options

View File

@ -1,4 +0,0 @@
# GIMP gimp-iscissors-tool options
# end of gimp-iscissors-tool options

View File

@ -1,4 +0,0 @@
# GIMP gimp-levels-tool options
# end of gimp-levels-tool options

View File

@ -1,4 +0,0 @@
# GIMP gimp-measure-tool options
# end of gimp-measure-tool options

View File

@ -1,4 +0,0 @@
# GIMP gimp-move-tool options
# end of gimp-move-tool options

View File

@ -1,9 +0,0 @@
# GIMP gimp-mypaint-brush-tool options
(mybrush "100% Opaque")
(brush-size 51)
(brush-hardness 0.5)
(radius 3.0099999904632568)
(hardness 0.94999998807907104)
# end of gimp-mypaint-brush-tool options

View File

@ -1,4 +0,0 @@
# GIMP gimp-offset-tool options
# end of gimp-offset-tool options

View File

@ -1,4 +0,0 @@
# GIMP gimp-operation-tool options
# end of gimp-operation-tool options

View File

@ -1,10 +0,0 @@
# GIMP gimp-paintbrush-tool options
(brush "2. Hardness 050")
(dynamics "Dynamics Off")
(gradient "FG to BG (RGB)")
(palette "Color History")
(brush-size 12)
(brush-hardness 0.5)
# end of gimp-paintbrush-tool options

View File

@ -1,10 +0,0 @@
# GIMP gimp-pencil-tool options
(brush "2. Hardness 050")
(dynamics "Dynamics Off")
(gradient "FG to BG (RGB)")
(palette "Color History")
(brush-size 12)
(brush-hardness 0.5)
# end of gimp-pencil-tool options

View File

@ -1,10 +0,0 @@
# GIMP gimp-perspective-clone-tool options
(brush "2. Hardness 050")
(dynamics "Dynamics Off")
(pattern "Pine")
(palette "Color History")
(brush-size 12)
(brush-hardness 0.5)
# end of gimp-perspective-clone-tool options

View File

@ -1,4 +0,0 @@
# GIMP gimp-perspective-tool options
# end of gimp-perspective-tool options

View File

@ -1,4 +0,0 @@
# GIMP gimp-rect-select-tool options
# end of gimp-rect-select-tool options

View File

@ -1,4 +0,0 @@
# GIMP gimp-rotate-tool options
# end of gimp-rotate-tool options

View File

@ -1,6 +0,0 @@
# GIMP gimp-scale-tool options
(interpolation linear)
(preview-opacity 0)
# end of gimp-scale-tool options

View File

@ -1,4 +0,0 @@
# GIMP gimp-shear-tool options
# end of gimp-shear-tool options

View File

@ -1,10 +0,0 @@
# GIMP gimp-smudge-tool options
(brush "2. Hardness 050")
(dynamics "Dynamics Off")
(gradient "FG to BG (RGB)")
(palette "Color History")
(brush-size 12)
(brush-hardness 0.5)
# end of gimp-smudge-tool options

View File

@ -1,7 +0,0 @@
# GIMP gimp-text-tool options
(palette "Color History")
(font "Sans-serif")
(hint-style full)
# end of gimp-text-tool options

View File

@ -1,4 +0,0 @@
# GIMP gimp-threshold-tool options
# end of gimp-threshold-tool options

View File

@ -1,4 +0,0 @@
# GIMP gimp-transform-3d-tool options
# end of gimp-transform-3d-tool options

View File

@ -1,4 +0,0 @@
# GIMP gimp-unified-transform-tool options
# end of gimp-unified-transform-tool options

View File

@ -1,9 +0,0 @@
# GIMP gimp-vector-tool options
(brush "2. Hardness 050")
(dynamics "Dynamics Off")
(pattern "Pine")
(gradient "FG to BG (RGB)")
(palette "Color History")
# end of gimp-vector-tool options

View File

@ -1,4 +0,0 @@
# GIMP gimp-warp-tool options
# end of gimp-warp-tool options

View File

@ -1,4 +0,0 @@
# GIMP gimp-zoom-tool options
# end of gimp-zoom-tool options

View File

@ -1,185 +0,0 @@
# GIMP toolrc
(file-version 1)
(GimpToolGroup "tool group"
(visible yes)
(active-tool "gimp-move-tool")
(children
(GimpToolInfo "gimp-move-tool"
(icon-name "gimp-tool-move")
(visible yes))
(GimpToolInfo "gimp-align-tool"
(icon-name "gimp-tool-align")
(visible yes))))
(GimpToolGroup "tool group"
(visible yes)
(active-tool "gimp-rect-select-tool")
(children
(GimpToolInfo "gimp-rect-select-tool"
(icon-name "gimp-tool-rect-select")
(visible yes))
(GimpToolInfo "gimp-ellipse-select-tool"
(icon-name "gimp-tool-ellipse-select")
(visible yes))))
(GimpToolGroup "tool group"
(visible yes)
(active-tool "gimp-iscissors-tool")
(children
(GimpToolInfo "gimp-free-select-tool"
(icon-name "gimp-tool-free-select")
(visible yes))
(GimpToolInfo "gimp-iscissors-tool"
(icon-name "gimp-tool-iscissors")
(visible yes))
(GimpToolInfo "gimp-foreground-select-tool"
(icon-name "gimp-tool-foreground-select")
(visible yes))))
(GimpToolGroup "tool group"
(visible yes)
(active-tool "gimp-fuzzy-select-tool")
(children
(GimpToolInfo "gimp-fuzzy-select-tool"
(icon-name "gimp-tool-fuzzy-select")
(visible yes))
(GimpToolInfo "gimp-by-color-select-tool"
(icon-name "gimp-tool-by-color-select")
(visible yes))))
(GimpToolInfo "gimp-crop-tool"
(icon-name "gimp-tool-crop")
(visible yes))
(GimpToolGroup "tool group"
(visible yes)
(active-tool "gimp-scale-tool")
(children
(GimpToolInfo "gimp-unified-transform-tool"
(icon-name "gimp-tool-unified-transform")
(visible yes))
(GimpToolInfo "gimp-rotate-tool"
(icon-name "gimp-tool-rotate")
(visible yes))
(GimpToolInfo "gimp-scale-tool"
(icon-name "gimp-tool-scale")
(visible yes))
(GimpToolInfo "gimp-shear-tool"
(icon-name "gimp-tool-shear")
(visible yes))
(GimpToolInfo "gimp-flip-tool"
(icon-name "gimp-tool-flip")
(visible yes))
(GimpToolInfo "gimp-perspective-tool"
(icon-name "gimp-tool-perspective")
(visible yes))
(GimpToolInfo "gimp-transform-3d-tool"
(icon-name "gimp-tool-transform-3d")
(visible yes))
(GimpToolInfo "gimp-handle-transform-tool"
(icon-name "gimp-tool-handle-transform")
(visible yes))))
(GimpToolGroup "tool group"
(visible yes)
(active-tool "gimp-cage-tool")
(children
(GimpToolInfo "gimp-warp-tool"
(icon-name "gimp-tool-warp")
(visible yes))
(GimpToolInfo "gimp-cage-tool"
(icon-name "gimp-tool-cage")
(visible yes))))
(GimpToolGroup "tool group"
(visible yes)
(active-tool "gimp-bucket-fill-tool")
(children
(GimpToolInfo "gimp-bucket-fill-tool"
(icon-name "gimp-tool-bucket-fill")
(visible yes))
(GimpToolInfo "gimp-gradient-tool"
(icon-name "gimp-tool-gradient")
(visible yes))))
(GimpToolGroup "tool group"
(visible yes)
(active-tool "gimp-paintbrush-tool")
(children
(GimpToolInfo "gimp-paintbrush-tool"
(icon-name "gimp-tool-paintbrush")
(visible yes))
(GimpToolInfo "gimp-pencil-tool"
(icon-name "gimp-tool-pencil")
(visible yes))
(GimpToolInfo "gimp-airbrush-tool"
(icon-name "gimp-tool-airbrush")
(visible yes))
(GimpToolInfo "gimp-ink-tool"
(icon-name "gimp-tool-ink")
(visible yes))
(GimpToolInfo "gimp-mypaint-brush-tool"
(icon-name "gimp-tool-mypaint-brush")
(visible yes))))
(GimpToolInfo "gimp-eraser-tool"
(icon-name "gimp-tool-eraser")
(visible yes))
(GimpToolGroup "tool group"
(visible yes)
(active-tool "gimp-clone-tool")
(children
(GimpToolInfo "gimp-clone-tool"
(icon-name "gimp-tool-clone")
(visible yes))
(GimpToolInfo "gimp-perspective-clone-tool"
(icon-name "gimp-tool-perspective-clone")
(visible yes))
(GimpToolInfo "gimp-heal-tool"
(icon-name "gimp-tool-heal")
(visible yes))))
(GimpToolGroup "tool group"
(visible yes)
(active-tool "gimp-dodge-burn-tool")
(children
(GimpToolInfo "gimp-smudge-tool"
(icon-name "gimp-tool-smudge")
(visible yes))
(GimpToolInfo "gimp-convolve-tool"
(icon-name "gimp-tool-blur")
(visible yes))
(GimpToolInfo "gimp-dodge-burn-tool"
(icon-name "gimp-tool-dodge")
(visible yes))))
(GimpToolInfo "gimp-vector-tool"
(icon-name "gimp-tool-path")
(visible yes))
(GimpToolInfo "gimp-text-tool"
(icon-name "gimp-tool-text")
(visible yes))
(GimpToolGroup "tool group"
(visible yes)
(active-tool "gimp-color-picker-tool")
(children
(GimpToolInfo "gimp-color-picker-tool"
(icon-name "gimp-tool-color-picker")
(visible yes))
(GimpToolInfo "gimp-measure-tool"
(icon-name "gimp-tool-measure")
(visible yes))))
(GimpToolInfo "gimp-zoom-tool"
(icon-name "gimp-tool-zoom")
(visible yes))
(GimpToolInfo "gimp-brightness-contrast-tool"
(icon-name "gimp-tool-brightness-contrast")
(visible no))
(GimpToolInfo "gimp-threshold-tool"
(icon-name "gimp-tool-threshold")
(visible no))
(GimpToolInfo "gimp-levels-tool"
(icon-name "gimp-tool-levels")
(visible no))
(GimpToolInfo "gimp-curves-tool"
(icon-name "gimp-tool-curves")
(visible no))
(GimpToolInfo "gimp-offset-tool"
(icon-name "gimp-tool-offset")
(visible no))
(GimpToolInfo "gimp-gegl-tool"
(icon-name "gimp-gegl")
(visible no))
# end of toolrc

View File

@ -1,51 +0,0 @@
# GIMP units
#
# This file contains the user unit database. You can edit this list with the
# unit editor. You are not supposed to edit it manually, but of course you
# can do.
# This file will be entirely rewritten each time you exit.
(unit-info "centimeters"
(factor 2.54)
(digits 2)
(symbol "cm")
(abbreviation "cm")
(singular "centimeter")
(plural "centimeters"))
(unit-info "meters"
(factor 0.025399999999999999)
(digits 4)
(symbol "m")
(abbreviation "m")
(singular "meter")
(plural "meters"))
(unit-info "feet"
(factor 0.083333000000000004)
(digits 4)
(symbol "'")
(abbreviation "ft")
(singular "foot")
(plural "feet"))
(unit-info "yards"
(factor 0.027778000000000001)
(digits 4)
(symbol "yd")
(abbreviation "yd")
(singular "yard")
(plural "yards"))
(unit-info "typogr. points"
(factor 72.269999999999996)
(digits 0)
(symbol "tpt")
(abbreviation "tpt")
(singular "typogr. point")
(plural "typogr. points"))
(unit-info "typogr. picas"
(factor 6.0225)
(digits 1)
(symbol "tpc")
(abbreviation "tpc")
(singular "typogr. pica")
(plural "typogr. picas"))
# end of units

235
LICENSE Normal file
View File

@ -0,0 +1,235 @@
GNU AFFERO GENERAL PUBLIC LICENSE
Version 3, 19 November 2007
Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed.
Preamble
The GNU Affero General Public License is a free, copyleft license for software and other kinds of works, specifically designed to ensure cooperation with the community in the case of network server software.
The licenses for most software and other practical works are designed to take away your freedom to share and change the works. By contrast, our General Public Licenses are intended to guarantee your freedom to share and change all versions of a program--to make sure it remains free software for all its users.
When we speak of free software, we are referring to freedom, not price. Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for them if you wish), that you receive source code or can get it if you want it, that you can change the software or use pieces of it in new free programs, and that you know you can do these things.
Developers that use our General Public Licenses protect your rights with two steps: (1) assert copyright on the software, and (2) offer you this License which gives you legal permission to copy, distribute and/or modify the software.
A secondary benefit of defending all users' freedom is that improvements made in alternate versions of the program, if they receive widespread use, become available for other developers to incorporate. Many developers of free software are heartened and encouraged by the resulting cooperation. However, in the case of software used on network servers, this result may fail to come about. The GNU General Public License permits making a modified version and letting the public access it on a server without ever releasing its source code to the public.
The GNU Affero General Public License is designed specifically to ensure that, in such cases, the modified source code becomes available to the community. It requires the operator of a network server to provide the source code of the modified version running there to the users of that server. Therefore, public use of a modified version, on a publicly accessible server, gives the public access to the source code of the modified version.
An older license, called the Affero General Public License and published by Affero, was designed to accomplish similar goals. This is a different license, not a version of the Affero GPL, but Affero has released a new version of the Affero GPL which permits relicensing under this license.
The precise terms and conditions for copying, distribution and modification follow.
TERMS AND CONDITIONS
0. Definitions.
"This License" refers to version 3 of the GNU Affero General Public License.
"Copyright" also means copyright-like laws that apply to other kinds of works, such as semiconductor masks.
"The Program" refers to any copyrightable work licensed under this License. Each licensee is addressed as "you". "Licensees" and "recipients" may be individuals or organizations.
To "modify" a work means to copy from or adapt all or part of the work in a fashion requiring copyright permission, other than the making of an exact copy. The resulting work is called a "modified version" of the earlier work or a work "based on" the earlier work.
A "covered work" means either the unmodified Program or a work based on the Program.
To "propagate" a work means to do anything with it that, without permission, would make you directly or secondarily liable for infringement under applicable copyright law, except executing it on a computer or modifying a private copy. Propagation includes copying, distribution (with or without modification), making available to the public, and in some countries other activities as well.
To "convey" a work means any kind of propagation that enables other parties to make or receive copies. Mere interaction with a user through a computer network, with no transfer of a copy, is not conveying.
An interactive user interface displays "Appropriate Legal Notices" to the extent that it includes a convenient and prominently visible feature that (1) displays an appropriate copyright notice, and (2) tells the user that there is no warranty for the work (except to the extent that warranties are provided), that licensees may convey the work under this License, and how to view a copy of this License. If the interface presents a list of user commands or options, such as a menu, a prominent item in the list meets this criterion.
1. Source Code.
The "source code" for a work means the preferred form of the work for making modifications to it. "Object code" means any non-source form of a work.
A "Standard Interface" means an interface that either is an official standard defined by a recognized standards body, or, in the case of interfaces specified for a particular programming language, one that is widely used among developers working in that language.
The "System Libraries" of an executable work include anything, other than the work as a whole, that (a) is included in the normal form of packaging a Major Component, but which is not part of that Major Component, and (b) serves only to enable use of the work with that Major Component, or to implement a Standard Interface for which an implementation is available to the public in source code form. A "Major Component", in this context, means a major essential component (kernel, window system, and so on) of the specific operating system (if any) on which the executable work runs, or a compiler used to produce the work, or an object code interpreter used to run it.
The "Corresponding Source" for a work in object code form means all the source code needed to generate, install, and (for an executable work) run the object code and to modify the work, including scripts to control those activities. However, it does not include the work's System Libraries, or general-purpose tools or generally available free programs which are used unmodified in performing those activities but which are not part of the work. For example, Corresponding Source includes interface definition files associated with source files for the work, and the source code for shared libraries and dynamically linked subprograms that the work is specifically designed to require, such as by intimate data communication or control flow between those
subprograms and other parts of the work.
The Corresponding Source need not include anything that users can regenerate automatically from other parts of the Corresponding Source.
The Corresponding Source for a work in source code form is that same work.
2. Basic Permissions.
All rights granted under this License are granted for the term of copyright on the Program, and are irrevocable provided the stated conditions are met. This License explicitly affirms your unlimited permission to run the unmodified Program. The output from running a covered work is covered by this License only if the output, given its content, constitutes a covered work. This License acknowledges your rights of fair use or other equivalent, as provided by copyright law.
You may make, run and propagate covered works that you do not convey, without conditions so long as your license otherwise remains in force. You may convey covered works to others for the sole purpose of having them make modifications exclusively for you, or provide you with facilities for running those works, provided that you comply with the terms of this License in conveying all material for which you do not control copyright. Those thus making or running the covered works for you must do so exclusively on your behalf, under your direction and control, on terms that prohibit them from making any copies of your copyrighted material outside their relationship with you.
Conveying under any other circumstances is permitted solely under the conditions stated below. Sublicensing is not allowed; section 10 makes it unnecessary.
3. Protecting Users' Legal Rights From Anti-Circumvention Law.
No covered work shall be deemed part of an effective technological measure under any applicable law fulfilling obligations under article 11 of the WIPO copyright treaty adopted on 20 December 1996, or similar laws prohibiting or restricting circumvention of such measures.
When you convey a covered work, you waive any legal power to forbid circumvention of technological measures to the extent such circumvention is effected by exercising rights under this License with respect to the covered work, and you disclaim any intention to limit operation or modification of the work as a means of enforcing, against the work's users, your or third parties' legal rights to forbid circumvention of technological measures.
4. Conveying Verbatim Copies.
You may convey verbatim copies of the Program's source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice; keep intact all notices stating that this License and any non-permissive terms added in accord with section 7 apply to the code; keep intact all notices of the absence of any warranty; and give all recipients a copy of this License along with the Program.
You may charge any price or no price for each copy that you convey, and you may offer support or warranty protection for a fee.
5. Conveying Modified Source Versions.
You may convey a work based on the Program, or the modifications to produce it from the Program, in the form of source code under the terms of section 4, provided that you also meet all of these conditions:
a) The work must carry prominent notices stating that you modified it, and giving a relevant date.
b) The work must carry prominent notices stating that it is released under this License and any conditions added under section 7. This requirement modifies the requirement in section 4 to "keep intact all notices".
c) You must license the entire work, as a whole, under this License to anyone who comes into possession of a copy. This License will therefore apply, along with any applicable section 7 additional terms, to the whole of the work, and all its parts, regardless of how they are packaged. This License gives no permission to license the work in any other way, but it does not invalidate such permission if you have separately received it.
d) If the work has interactive user interfaces, each must display Appropriate Legal Notices; however, if the Program has interactive interfaces that do not display Appropriate Legal Notices, your work need not make them do so.
A compilation of a covered work with other separate and independent works, which are not by their nature extensions of the covered work, and which are not combined with it such as to form a larger program, in or on a volume of a storage or distribution medium, is called an "aggregate" if the compilation and its resulting copyright are not used to limit the access or legal rights of the compilation's users beyond what the individual works permit. Inclusion of a covered work in an aggregate does not cause this License to apply to the other parts of the aggregate.
6. Conveying Non-Source Forms.
You may convey a covered work in object code form under the terms of sections 4 and 5, provided that you also convey the machine-readable Corresponding Source under the terms of this License, in one of these ways:
a) Convey the object code in, or embodied in, a physical product (including a physical distribution medium), accompanied by the Corresponding Source fixed on a durable physical medium customarily used for software interchange.
b) Convey the object code in, or embodied in, a physical product (including a physical distribution medium), accompanied by a written offer, valid for at least three years and valid for as long as you offer spare parts or customer support for that product model, to give anyone who possesses the object code either (1) a copy of the Corresponding Source for all the software in the product that is covered by this License, on a durable physical medium customarily used for software interchange, for a price no more than your reasonable cost of physically performing this conveying of source, or (2) access to copy the Corresponding Source from a network server at no charge.
c) Convey individual copies of the object code with a copy of the written offer to provide the Corresponding Source. This alternative is allowed only occasionally and noncommercially, and only if you received the object code with such an offer, in accord with subsection 6b.
d) Convey the object code by offering access from a designated place (gratis or for a charge), and offer equivalent access to the Corresponding Source in the same way through the same place at no further charge. You need not require recipients to copy the Corresponding Source along with the object code. If the place to copy the object code is a network server, the Corresponding Source may be on a different server (operated by you or a third party) that supports equivalent copying facilities, provided you maintain clear directions next to the object code saying where to find the Corresponding Source. Regardless of what server hosts the Corresponding Source, you remain obligated to ensure that it is available for as long as needed to satisfy these requirements.
e) Convey the object code using peer-to-peer transmission, provided you inform other peers where the object code and Corresponding Source of the work are being offered to the general public at no charge under subsection 6d.
A separable portion of the object code, whose source code is excluded from the Corresponding Source as a System Library, need not be included in conveying the object code work.
A "User Product" is either (1) a "consumer product", which means any tangible personal property which is normally used for personal, family, or household purposes, or (2) anything designed or sold for incorporation into a dwelling. In determining whether a product is a consumer product, doubtful cases shall be resolved in favor of coverage. For a particular product received by a particular user, "normally used" refers to a typical or common use of that class of product, regardless of the status of the particular user or of the way in which the particular user actually uses, or expects or is expected to use, the product. A product is a consumer product regardless of whether the product has substantial commercial, industrial or non-consumer uses, unless such uses represent the only significant mode of use of the product.
"Installation Information" for a User Product means any methods, procedures, authorization keys, or other information required to install and execute modified versions of a covered work in that User Product from a modified version of its Corresponding Source. The information must suffice to ensure that the continued functioning of the modified object code is in no case prevented or interfered with solely because modification has been made.
If you convey an object code work under this section in, or with, or specifically for use in, a User Product, and the conveying occurs as part of a transaction in which the right of possession and use of the User Product is transferred to the recipient in perpetuity or for a fixed term (regardless of how the transaction is characterized), the Corresponding Source conveyed under this section must be accompanied by the Installation Information. But this requirement does not apply if neither you nor any third party retains the ability to install modified object code on the User Product (for example, the work has been installed in ROM).
The requirement to provide Installation Information does not include a requirement to continue to provide support service, warranty, or updates for a work that has been modified or installed by the recipient, or for the User Product in which it has been modified or installed. Access to a network may be denied when the modification itself materially and adversely affects the operation of the network or violates the rules and protocols for communication across the network.
Corresponding Source conveyed, and Installation Information provided, in accord with this section must be in a format that is publicly documented (and with an implementation available to the public in source code form), and must require no special password or key for unpacking, reading or copying.
7. Additional Terms.
"Additional permissions" are terms that supplement the terms of this License by making exceptions from one or more of its conditions. Additional permissions that are applicable to the entire Program shall be treated as though they were included in this License, to the extent that they are valid under applicable law. If additional permissions apply only to part of the Program, that part may be used separately under those permissions, but the entire Program remains governed by this License without regard to the additional permissions.
When you convey a copy of a covered work, you may at your option remove any additional permissions from that copy, or from any part of it. (Additional permissions may be written to require their own removal in certain cases when you modify the work.) You may place additional permissions on material, added by you to a covered work, for which you have or can give appropriate copyright permission.
Notwithstanding any other provision of this License, for material you add to a covered work, you may (if authorized by the copyright holders of that material) supplement the terms of this License with terms:
a) Disclaiming warranty or limiting liability differently from the terms of sections 15 and 16 of this License; or
b) Requiring preservation of specified reasonable legal notices or author attributions in that material or in the Appropriate Legal Notices displayed by works containing it; or
c) Prohibiting misrepresentation of the origin of that material, or requiring that modified versions of such material be marked in reasonable ways as different from the original version; or
d) Limiting the use for publicity purposes of names of licensors or authors of the material; or
e) Declining to grant rights under trademark law for use of some trade names, trademarks, or service marks; or
f) Requiring indemnification of licensors and authors of that material by anyone who conveys the material (or modified versions of it) with contractual assumptions of liability to the recipient, for any liability that these contractual assumptions directly impose on those licensors and authors.
All other non-permissive additional terms are considered "further restrictions" within the meaning of section 10. If the Program as you received it, or any part of it, contains a notice stating that it is governed by this License along with a term that is a further restriction, you may remove that term. If a license document contains a further restriction but permits relicensing or conveying under this License, you may add to a covered work material governed by the terms of that license document, provided that the further restriction does not survive such relicensing or conveying.
If you add terms to a covered work in accord with this section, you must place, in the relevant source files, a statement of the additional terms that apply to those files, or a notice indicating where to find the applicable terms.
Additional terms, permissive or non-permissive, may be stated in the form of a separately written license, or stated as exceptions; the above requirements apply either way.
8. Termination.
You may not propagate or modify a covered work except as expressly provided under this License. Any attempt otherwise to propagate or modify it is void, and will automatically terminate your rights under this License (including any patent licenses granted under the third paragraph of section 11).
However, if you cease all violation of this License, then your license from a particular copyright holder is reinstated (a) provisionally, unless and until the copyright holder explicitly and finally terminates your license, and (b) permanently, if the copyright holder fails to notify you of the violation by some reasonable means prior to 60 days after the cessation.
Moreover, your license from a particular copyright holder is reinstated permanently if the copyright holder notifies you of the violation by some reasonable means, this is the first time you have received notice of violation of this License (for any work) from that copyright holder, and you cure the violation prior to 30 days after your receipt of the notice.
Termination of your rights under this section does not terminate the licenses of parties who have received copies or rights from you under this License. If your rights have been terminated and not permanently reinstated, you do not qualify to receive new licenses for the same material under section 10.
9. Acceptance Not Required for Having Copies.
You are not required to accept this License in order to receive or run a copy of the Program. Ancillary propagation of a covered work occurring solely as a consequence of using peer-to-peer transmission to receive a copy likewise does not require acceptance. However, nothing other than this License grants you permission to propagate or modify any covered work. These actions infringe copyright if you do not accept this License. Therefore, by modifying or propagating a covered work, you indicate your acceptance of this License to do so.
10. Automatic Licensing of Downstream Recipients.
Each time you convey a covered work, the recipient automatically receives a license from the original licensors, to run, modify and propagate that work, subject to this License. You are not responsible for enforcing compliance by third parties with this License.
An "entity transaction" is a transaction transferring control of an organization, or substantially all assets of one, or subdividing an organization, or merging organizations. If propagation of a covered work results from an entity transaction, each party to that transaction who receives a copy of the work also receives whatever licenses to the work the party's predecessor in interest had or could give under the previous paragraph, plus a right to possession of the Corresponding Source of the work from the predecessor in interest, if the predecessor has it or can get it with reasonable efforts.
You may not impose any further restrictions on the exercise of the rights granted or affirmed under this License. For example, you may not impose a license fee, royalty, or other charge for exercise of rights granted under this License, and you may not initiate litigation (including a cross-claim or counterclaim in a lawsuit) alleging that any patent claim is infringed by making, using, selling, offering for sale, or importing the Program or any portion of it.
11. Patents.
A "contributor" is a copyright holder who authorizes use under this License of the Program or a work on which the Program is based. The work thus licensed is called the contributor's "contributor version".
A contributor's "essential patent claims" are all patent claims owned or controlled by the contributor, whether already acquired or hereafter acquired, that would be infringed by some manner, permitted by this License, of making, using, or selling its contributor version, but do not include claims that would be infringed only as a consequence of further modification of the contributor version. For purposes of this definition, "control" includes the right to grant patent sublicenses in a manner consistent with the requirements of this License.
Each contributor grants you a non-exclusive, worldwide, royalty-free patent license under the contributor's essential patent claims, to make, use, sell, offer for sale, import and otherwise run, modify and propagate the contents of its contributor version.
In the following three paragraphs, a "patent license" is any express agreement or commitment, however denominated, not to enforce a patent (such as an express permission to practice a patent or covenant not to sue for patent infringement). To "grant" such a patent license to a party means to make such an agreement or commitment not to enforce a patent against the party.
If you convey a covered work, knowingly relying on a patent license, and the Corresponding Source of the work is not available for anyone to copy, free of charge and under the terms of this License, through a publicly available network server or other readily accessible means, then you must either (1) cause the Corresponding Source to be so available, or (2) arrange to deprive yourself of the benefit of the patent license for this particular work, or (3) arrange, in a manner consistent with the requirements of this License, to extend the patent
license to downstream recipients. "Knowingly relying" means you have actual knowledge that, but for the patent license, your conveying the covered work in a country, or your recipient's use of the covered work in a country, would infringe one or more identifiable patents in that country that you have reason to believe are valid.
If, pursuant to or in connection with a single transaction or arrangement, you convey, or propagate by procuring conveyance of, a covered work, and grant a patent license to some of the parties receiving the covered work authorizing them to use, propagate, modify or convey a specific copy of the covered work, then the patent license you grant is automatically extended to all recipients of the covered work and works based on it.
A patent license is "discriminatory" if it does not include within the scope of its coverage, prohibits the exercise of, or is conditioned on the non-exercise of one or more of the rights that are specifically granted under this License. You may not convey a covered work if you are a party to an arrangement with a third party that is in the business of distributing software, under which you make payment to the third party based on the extent of your activity of conveying the work, and under which the third party grants, to any of the parties who would receive the covered work from you, a discriminatory patent license (a) in connection with copies of the covered work conveyed by you (or copies made from those copies), or (b) primarily for and in connection with specific products or compilations that contain the covered work, unless you entered into that arrangement, or that patent license was granted, prior to 28 March 2007.
Nothing in this License shall be construed as excluding or limiting any implied license or other defenses to infringement that may otherwise be available to you under applicable patent law.
12. No Surrender of Others' Freedom.
If conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this License, they do not excuse you from the conditions of this License. If you cannot convey a covered work so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may
not convey it at all. For example, if you agree to terms that obligate you to collect a royalty for further conveying from those to whom you convey the Program, the only way you could satisfy both those terms and this License would be to refrain entirely from conveying the Program.
13. Remote Network Interaction; Use with the GNU General Public License.
Notwithstanding any other provision of this License, if you modify the Program, your modified version must prominently offer all users interacting with it remotely through a computer network (if your version supports such interaction) an opportunity to receive the Corresponding Source of your version by providing access to the Corresponding Source from a network server at no charge, through some standard or customary means of facilitating copying of software. This Corresponding Source shall include the Corresponding Source for any work covered by version 3 of the GNU General Public License that is incorporated pursuant to the following paragraph.
Notwithstanding any other provision of this License, you have permission to link or combine any covered work with a work licensed under version 3 of the GNU General Public License into a single combined work, and to convey the resulting work. The terms of this License will continue to apply to the part which is the covered work, but the work with which it is combined will remain governed by version 3 of the GNU General Public License.
14. Revised Versions of this License.
The Free Software Foundation may publish revised and/or new versions of the GNU Affero General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns.
Each version is given a distinguishing version number. If the Program specifies that a certain numbered version of the GNU Affero General Public License "or any later version" applies to it, you have the option of following the terms and conditions either of that numbered version or of any later version published by the Free Software Foundation. If the Program does not specify a version number of the GNU Affero General Public License, you may choose any version ever published by the Free Software Foundation.
If the Program specifies that a proxy can decide which future versions of the GNU Affero General Public License can be used, that proxy's public statement of acceptance of a version permanently authorizes you to choose that version for the Program.
Later license versions may give you additional or different permissions. However, no additional obligations are imposed on any author or copyright holder as a result of your choosing to follow a later version.
15. Disclaimer of Warranty.
THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
16. Limitation of Liability.
IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
17. Interpretation of Sections 15 and 16.
If the disclaimer of warranty and limitation of liability provided above cannot be given local legal effect according to their terms, reviewing courts shall apply local law that most closely approximates an absolute waiver of all civil liability in connection with the Program, unless a warranty or assumption of liability accompanies a copy of the Program in return for a fee.
END OF TERMS AND CONDITIONS
How to Apply These Terms to Your New Programs
If you develop a new program, and you want it to be of the greatest possible use to the public, the best way to achieve this is to make it free software which everyone can redistribute and change under these terms.
To do so, attach the following notices to the program. It is safest to attach them to the start of each source file to most effectively state the exclusion of warranty; and each file should have at least the "copyright" line and a pointer to where the full notice is found.
<one line to give the program's name and a brief idea of what it does.>
Copyright (C) <year> <name of author>
This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.
Also add information on how to contact you by electronic and paper mail.
If your software can interact with users remotely through a computer network, you should also make sure that it provides a way for users to get its source. For example, if your program is a web application, its interface could display a "Source" link that leads users to an archive of the code. There are many ways you could offer source, and different solutions will be better for different programs; see section 13 for the specific requirements.
You should also get your employer (if you work as a programmer) or school, if any, to sign a "copyright disclaimer" for the program, if necessary. For more information on this, and how to apply and follow the GNU AGPL, see <http://www.gnu.org/licenses/>.

4
README.md Normal file
View File

@ -0,0 +1,4 @@
# configs
i must configggggg!
Fork off Luke Smith's voidrice: https://github.com/LukeSmithxyz/voidrice

View File

@ -1,27 +0,0 @@
[global]
monitor = 0
follow = keyboard
width = 370
height = 350
offset = 0x19
padding = 2
horizontal_padding = 2
transparency = 25
font = Monospace 12
format = "<b>%s</b>\n%b"
[urgency_low]
background = "#1d2021"
foreground = "#928374"
timeout = 3
[urgency_normal]
foreground = "#ebdbb2"
background = "#458588"
timeout = 5
[urgency_critical]
background = "#1cc24d"
foreground = "#ebdbb2"
frame_color = "#fabd2f"
timeout = 10

View File

@ -1,3 +0,0 @@
[window]
DP-4 DP-2 Height 2560x1440=1393
DP-4 DP-2 Width 2560x1440=1363

View File

@ -1,36 +0,0 @@
<?xml version='1.0'?>
<!DOCTYPE fontconfig SYSTEM 'fonts.dtd'>
<fontconfig>
<alias>
<family>serif</family>
<prefer>
<family>Linux Libertine</family>
<family>Joy Pixels</family>
<family>Noto Color Emoji</family>
</prefer>
</alias>
<alias>
<family>sans-serif</family>
<prefer>
<family>Linux Biolinum</family>
<family>Joy Pixels</family>
<family>Noto Color Emoji</family>
</prefer>
</alias>
<alias>
<family>sans</family>
<prefer>
<family>Linux Biolinum</family>
<family>Joy Pixels</family>
<family>Noto Color Emoji</family>
</prefer>
</alias>
<alias>
<family>monospace</family>
<prefer>
<family>Noto Sans Mono</family>
<family>Liberation Mono</family>
<family>Braille</family>
</prefer>
</alias>
</fontconfig>

View File

@ -1,11 +0,0 @@
[Filechooser Settings]
LocationMode=path-bar
ShowHidden=false
ShowSizeColumn=true
GeometryX=2726
GeometryY=374
GeometryWidth=948
GeometryHeight=712
SortColumn=name
SortOrder=ascending
StartupMode=recent

View File

@ -1,20 +0,0 @@
# DO NOT EDIT! This file will be overwritten by LXAppearance.
# Any customization should be done in ~/.gtkrc-2.0.mine instead.
include "/home/victor/.gtkrc-2.0.mine"
gtk-theme-name="Arc-Gruvbox"
gtk-icon-theme-name="ePapirus"
gtk-font-name="Sans 10"
gtk-cursor-theme-name="capitaine-cursors"
gtk-cursor-theme-size=0
gtk-toolbar-style=GTK_TOOLBAR_TEXT
gtk-toolbar-icon-size=GTK_ICON_SIZE_LARGE_TOOLBAR
gtk-button-images=0
gtk-menu-images=1
gtk-enable-event-sounds=1
gtk-enable-input-feedback-sounds=1
gtk-xft-antialias=1
gtk-xft-hinting=1
gtk-xft-hintstyle="hintfull"
gtk-xft-rgba="rgb"
gtk-modules="gail:atk-bridge"

View File

@ -1,7 +0,0 @@
file:///home/victor/pix/1memes
file:///home/victor/pix/screenshots
file:///home/victor/vids
file:///home/victor/down
file:///home/victor/dox
file:///mnt/ssd250
file:///mnt/USB

View File

@ -1,84 +0,0 @@
@define-color borders_breeze #bcbebf;
@define-color content_view_bg_breeze #ffffff;
@define-color error_color_backdrop_breeze #da4453;
@define-color error_color_breeze #da4453;
@define-color error_color_insensitive_backdrop_breeze #f0b1b8;
@define-color error_color_insensitive_breeze #f0b1b8;
@define-color insensitive_base_color_breeze #f3f3f3;
@define-color insensitive_base_fg_color_breeze #aaabac;
@define-color insensitive_bg_color_breeze #e3e5e7;
@define-color insensitive_borders_breeze #d2d4d6;
@define-color insensitive_fg_color_breeze #a0a1a3;
@define-color insensitive_selected_bg_color_breeze #e3e5e7;
@define-color insensitive_selected_fg_color_breeze #a0a1a3;
@define-color insensitive_unfocused_bg_color_breeze #e3e5e7;
@define-color insensitive_unfocused_fg_color_breeze #a0a1a3;
@define-color insensitive_unfocused_selected_bg_color_breeze #e3e5e7;
@define-color insensitive_unfocused_selected_fg_color_breeze #a0a1a3;
@define-color link_color_breeze #2980b9;
@define-color link_visited_color_breeze #9b59b6;
@define-color success_color_backdrop_breeze #27ae60;
@define-color success_color_breeze #27ae60;
@define-color success_color_insensitive_backdrop_breeze #abd8be;
@define-color success_color_insensitive_breeze #abd8be;
@define-color theme_base_color_breeze #ffffff;
@define-color theme_bg_color_breeze #eff0f1;
@define-color theme_button_background_backdrop_breeze #fcfcfc;
@define-color theme_button_background_backdrop_insensitive_breeze #f0f0f0;
@define-color theme_button_background_insensitive_breeze #f0f0f0;
@define-color theme_button_background_normal_breeze #fcfcfc;
@define-color theme_button_decoration_focus_backdrop_breeze #3daee9;
@define-color theme_button_decoration_focus_backdrop_insensitive_breeze #a2d8f3;
@define-color theme_button_decoration_focus_breeze #3daee9;
@define-color theme_button_decoration_focus_insensitive_breeze #a2d8f3;
@define-color theme_button_decoration_hover_backdrop_breeze #3daee9;
@define-color theme_button_decoration_hover_backdrop_insensitive_breeze #a2d8f3;
@define-color theme_button_decoration_hover_breeze #3daee9;
@define-color theme_button_decoration_hover_insensitive_breeze #a2d8f3;
@define-color theme_button_foreground_active_backdrop_breeze #232629;
@define-color theme_button_foreground_active_backdrop_insensitive_breeze #a0a1a3;
@define-color theme_button_foreground_active_breeze #ffffff;
@define-color theme_button_foreground_active_insensitive_breeze #a0a1a3;
@define-color theme_button_foreground_backdrop_breeze #232629;
@define-color theme_button_foreground_backdrop_insensitive_breeze #a8a9aa;
@define-color theme_button_foreground_insensitive_breeze #a8a9aa;
@define-color theme_button_foreground_normal_breeze #232629;
@define-color theme_fg_color_breeze #232629;
@define-color theme_header_background_backdrop_breeze #eff0f1;
@define-color theme_header_background_breeze #dee0e2;
@define-color theme_header_background_light_breeze #eff0f1;
@define-color theme_header_foreground_backdrop_breeze #232629;
@define-color theme_header_foreground_breeze #232629;
@define-color theme_header_foreground_insensitive_backdrop_breeze #232629;
@define-color theme_header_foreground_insensitive_breeze #232629;
@define-color theme_hovering_selected_bg_color_breeze #3daee9;
@define-color theme_selected_bg_color_breeze #3daee9;
@define-color theme_selected_fg_color_breeze #ffffff;
@define-color theme_text_color_breeze #232629;
@define-color theme_titlebar_background_backdrop_breeze #eff0f1;
@define-color theme_titlebar_background_breeze #dee0e2;
@define-color theme_titlebar_background_light_breeze #eff0f1;
@define-color theme_titlebar_foreground_backdrop_breeze #232629;
@define-color theme_titlebar_foreground_breeze #232629;
@define-color theme_titlebar_foreground_insensitive_backdrop_breeze #232629;
@define-color theme_titlebar_foreground_insensitive_breeze #232629;
@define-color theme_unfocused_base_color_breeze #ffffff;
@define-color theme_unfocused_bg_color_breeze #eff0f1;
@define-color theme_unfocused_fg_color_breeze #232629;
@define-color theme_unfocused_selected_bg_color_alt_breeze #c2e0f5;
@define-color theme_unfocused_selected_bg_color_breeze #c2e0f5;
@define-color theme_unfocused_selected_fg_color_breeze #232629;
@define-color theme_unfocused_text_color_breeze #232629;
@define-color theme_unfocused_view_bg_color_breeze #f3f3f3;
@define-color theme_unfocused_view_text_color_breeze #aaabac;
@define-color theme_view_active_decoration_color_breeze #3daee9;
@define-color theme_view_hover_decoration_color_breeze #3daee9;
@define-color tooltip_background_breeze #f7f7f7;
@define-color tooltip_border_breeze #c2c3c3;
@define-color tooltip_text_breeze #232629;
@define-color unfocused_borders_breeze #bcbebf;
@define-color unfocused_insensitive_borders_breeze #d2d4d6;
@define-color warning_color_backdrop_breeze #f67400;
@define-color warning_color_breeze #f67400;
@define-color warning_color_insensitive_backdrop_breeze #fbc289;
@define-color warning_color_insensitive_breeze #fbc289;

View File

@ -1 +0,0 @@
@import 'colors.css';

View File

@ -1,21 +0,0 @@
[Settings]
gtk-application-prefer-dark-theme=false
gtk-button-images=0
gtk-cursor-theme-name=capitaine-cursors
gtk-cursor-theme-size=0
gtk-decoration-layout=icon:minimize,maximize,close
gtk-enable-animations=true
gtk-enable-event-sounds=1
gtk-enable-input-feedback-sounds=1
gtk-font-name=Sans 10
gtk-icon-theme-name=ePapirus
gtk-menu-images=1
gtk-primary-button-warps-slider=false
gtk-theme-name=Arc-Gruvbox
gtk-toolbar-icon-size=GTK_ICON_SIZE_LARGE_TOOLBAR
gtk-toolbar-style=GTK_TOOLBAR_TEXT
gtk-xft-antialias=1
gtk-xft-hinting=1
gtk-xft-hintstyle=hintfull
gtk-xft-rgba=rgb
gtk-modules=gail:atk-bridge

View File

@ -1,9 +0,0 @@
[Settings]
gtk-application-prefer-dark-theme=false
gtk-cursor-theme-name=breeze_cursors
gtk-cursor-theme-size=24
gtk-decoration-layout=icon:minimize,maximize,close
gtk-enable-animations=true
gtk-font-name=Noto Sans, 10
gtk-icon-theme-name=breeze
gtk-primary-button-warps-slider=false

2
gtkrc
View File

@ -1,2 +0,0 @@
# created by KDE Plasma, Sun Aug 14 14:02:50 2022
#

View File

@ -1,5 +0,0 @@
# created by KDE Plasma, Sun Aug 14 14:02:50 2022
#
gtk-alternative-button-order = 1

View File

@ -1,63 +0,0 @@
# Beware! This file is rewritten by htop when settings are changed in the interface.
# The parser is also very primitive, and not human-friendly.
htop_version=3.2.2
config_reader_min_version=3
fields=0 48 17 18 38 39 40 2 46 47 49 1
hide_kernel_threads=1
hide_userland_threads=1
hide_running_in_container=0
shadow_other_users=0
show_thread_names=1
show_program_path=1
highlight_base_name=0
highlight_deleted_exe=1
shadow_distribution_path_prefix=0
highlight_megabytes=1
highlight_threads=1
highlight_changes=0
highlight_changes_delay_secs=5
find_comm_in_cmdline=1
strip_exe_from_cmdline=1
show_merged_command=0
header_margin=1
screen_tabs=1
detailed_cpu_time=0
cpu_count_from_one=0
show_cpu_usage=1
show_cpu_frequency=0
show_cpu_temperature=0
degree_fahrenheit=0
update_process_names=0
account_guest_in_cpu_meter=0
color_scheme=0
enable_mouse=1
delay=15
hide_function_bar=0
header_layout=two_50_50
column_meters_0=CPU LeftCPUs2 Memory Swap
column_meter_modes_0=1 1 1 1
column_meters_1=RightCPUs2 Tasks LoadAverage Uptime NetworkIO
column_meter_modes_1=1 2 2 2 2
tree_view=1
sort_key=46
tree_sort_key=47
sort_direction=-1
tree_sort_direction=-1
tree_view_always_by_pid=0
all_branches_collapsed=0
screen:Main=PID USER PRIORITY NICE M_VIRT M_RESIDENT M_SHARE STATE PERCENT_CPU PERCENT_MEM TIME Command
.sort_key=PERCENT_CPU
.tree_sort_key=PERCENT_MEM
.tree_view=1
.tree_view_always_by_pid=0
.sort_direction=-1
.tree_sort_direction=-1
.all_branches_collapsed=0
screen:I/O=PID USER IO_PRIORITY IO_RATE IO_READ_RATE IO_WRITE_RATE PERCENT_SWAP_DELAY PERCENT_IO_DELAY Command
.sort_key=IO_RATE
.tree_sort_key=PID
.tree_view=0
.tree_view_always_by_pid=0
.sort_direction=-1
.tree_sort_direction=1
.all_branches_collapsed=0

View File

@ -1,4 +0,0 @@
#!/bin/sh
if [ -n "$FIFO_UEBERZUG" ]; then
printf '{"action": "remove", "identifier": "PREVIEW"}\n' > "$FIFO_UEBERZUG"
fi

View File

@ -1,78 +0,0 @@
di 📁
fi 📃
tw 🤝
ow 📂
ln ⛓
or ❌
ex 🎯
*.txt ✍
*.mom ✍
*.me ✍
*.ms ✍
*.avif 🖼
*.png 🖼
*.webp 🖼
*.ico 🖼
*.jpg 📸
*.jpe 📸
*.jpeg 📸
*.gif 🖼
*.svg 🗺
*.tif 🖼
*.tiff 🖼
*.xcf 🖌
*.html 🌎
*.xml 📰
*.gpg 🔒
*.css 🎨
*.pdf 📚
*.djvu 📚
*.epub 📚
*.csv 📓
*.xlsx 📓
*.tex 📜
*.md 📘
*.r 📊
*.R 📊
*.rmd 📊
*.Rmd 📊
*.m 📊
*.py 🐍
*.mp3 🎵
*.opus 🎵
*.ogg 🎵
*.m4a 🎵
*.flac 🎼
*.wav 🎼
*.mkv 🎥
*.mp4 🎥
*.webm 🎥
*.mpeg 🎥
*.avi 🎥
*.mov 🎥
*.mpg 🎥
*.wmv 🎥
*.m4b 🎥
*.flv 🎥
*.zip 📦
*.rar 📦
*.7z 📦
*.tar 📦
*.z64 🎮
*.v64 🎮
*.n64 🎮
*.gba 🎮
*.nes 🎮
*.gdi 🎮
*.1
*.nfo
*.info
*.log 📙
*.iso 📀
*.img 📀
*.bib 🎓
*.ged 👪
*.part 💔
*.torrent 🔽
*.jar ♨
*.java ♨

138
lf/lfrc
View File

@ -1,138 +0,0 @@
# Luke's lf settings
# Note on Image Previews
# For those wanting image previews, like this system, there are four steps to
# set it up. These are done automatically for LARBS users, but I will state
# them here for others doing it manually.
#
# 1. ueberzug must be installed.
# 2. The scope file (~/.config/lf/scope for me), must have a command similar to
# mine to generate ueberzug images.
# 3. A `set cleaner` line as below is a cleaner script.
# 4. lf should be started through a wrapper script (~/.local/bin/lfub for me)
# that creates the environment for ueberzug. This command can be be aliased
# in your shellrc (`alias lf="lfub") or if set to a binding, should be
# called directly instead of normal lf.
# Basic vars
set shellopts '-eu'
set ifs "\n"
set scrolloff 10
set icons
set period 1
set hiddenfiles ".*:*.aux:*.log:*.bbl:*.bcf:*.blg:*.run.xml"
set cleaner '~/.config/lf/cleaner'
set previewer '~/.config/lf/scope'
set autoquit on
# cmds/functions
cmd open ${{
case $(file --mime-type "$(readlink -f $f)" -b) in
application/vnd.openxmlformats-officedocument.spreadsheetml.sheet) localc $fx ;;
image/vnd.djvu|application/pdf|application/octet-stream|application/postscript) setsid -f zathura $fx >/dev/null 2>&1 ;;
text/*|application/json|inode/x-empty|application/x-subrip) $EDITOR $fx;;
image/x-xcf) setsid -f gimp $f >/dev/null 2>&1 ;;
image/svg+xml) display -- $f ;;
image/*) rotdir $f | grep -i "\.\(png\|jpg\|jpeg\|gif\|avif\|webp\|tif\|ico\)\(_large\)*$" |
setsid -f sxiv -aio 2>/dev/null | while read -r file; do
[ -z "$file" ] && continue
lf -remote "send select \"$file\""
lf -remote "send toggle"
done &
;;
audio/*|video/x-ms-asf) mpv --audio-display=no $f ;;
video/*) setsid -f mpv $f -quiet >/dev/null 2>&1 ;;
application/pdf|application/vnd.djvu|application/epub*) setsid -f zathura $fx >/dev/null 2>&1 ;;
application/pgp-encrypted) $EDITOR $fx ;;
application/vnd.openxmlformats-officedocument.wordprocessingml.document|application/vnd.oasis.opendocument.text) setsid -f lowriter $fx >/dev/null 2>&1 ;;
application/vnd.openxmlformats-officedocument.spreadsheetml.sheet|application/octet-stream|application/vnd.oasis.opendocument.spreadsheet|application/vnd.oasis.opendocument.spreadsheet-template) setsid -f localc $fx >/dev/null 2>&1 ;;
application/vnd.openxmlformats-officedocument.presentationml.presentation|application/vnd.oasis.opendocument.presentation-template|application/vnd.oasis.opendocument.presentation|application/vnd.ms-powerpoint) setsid -f loimpress $fx >/dev/null 2>&1 ;;
application/vnd.oasis.opendocument.graphics|application/vnd.oasis.opendocument.graphics-template) setsid -f lodraw $fx >/dev/null 2>&1 ;;
application/vnd.oasis.opendocument.formula) setsid -f lomath $fx >/dev/null 2>&1 ;;
application/vnd.oasis.opendocument.database) setsid -f lobase $fx >/dev/null 2>&1 ;;
*) for f in $fx; do setsid -f $OPENER $f >/dev/null 2>&1; done;;
esac
}}
cmd mkdir $mkdir -p "$(echo $* | tr ' ' '\ ')"
cmd extract ${{
clear; tput cup $(($(tput lines)/3)); tput bold
set -f
printf "%s\n\t" "$fx"
printf "extract?[y/N]"
read ans
[ $ans = "y" ] && aunpack $fx
}}
cmd delete ${{
clear; tput cup $(($(tput lines)/3)); tput bold
set -f
printf "%s\n\t" "$fx"
printf "delete?[y/N]"
read ans
[ $ans = "y" ] && rm -rf -- $fx
}}
cmd moveto ${{
clear; tput cup $(($(tput lines)/3)); tput bold
set -f
clear; echo "Move to where?"
dest="$(sed -e 's/\s*#.*//' -e '/^$/d' -e 's/^\S*\s*//' ${XDG_CONFIG_HOME:-$HOME/.config}/shell/bm-dirs | fzf | sed 's|~|$HOME|')" &&
for x in $fx; do
eval mv -iv \"$x\" \"$dest\"
done &&
notify-send "🚚 File(s) moved." "File(s) moved to $dest."
}}
cmd copyto ${{
clear; tput cup $(($(tput lines)/3)); tput bold
set -f
clear; echo "Copy to where?"
dest="$(sed -e 's/\s*#.*//' -e '/^$/d' -e 's/^\S*\s*//' ${XDG_CONFIG_HOME:-$HOME/.config}/shell/bm-dirs | fzf | sed 's|~|$HOME|')" &&
for x in $fx; do
eval cp -ivr \"$x\" \"$dest\"
done &&
notify-send "📋 File(s) copied." "File(s) copies to $dest."
}}
cmd setbg "$1"
cmd bulkrename $vidir
# Bindings
map <c-f> $lf -remote "send $id select \"$(fzf)\""
map J $lf -remote "send $id cd $(sed -e 's/\s*#.*//' -e '/^$/d' -e 's/^\S*\s*//' ${XDG_CONFIG_HOME:-$HOME/.config}/shell/bm-dirs | fzf)"
map gh
map g top
map D delete
map E extract
map C copyto
map M moveto
map <c-n> push :mkdir<space>
map <c-r> reload
map <c-s> set hidden!
map <enter> shell
map x $$f
map X !$f
map o &mimeopen "$f"
map O $mimeopen --ask "$f"
map A rename # at the very end
map c push A<c-u> # new rename
map I push A<c-a> # at the very beginning
map i push A<a-b><a-b><a-f> # before extension
map a push A<a-b> # after extension
map B bulkrename
map b $setbg $f
map <c-e> down
map <c-y> up
map V push :!nvim<space>
map W $setsid -f $TERMINAL >/dev/null 2>&1
map Y $printf "%s" "$fx" | xclip -selection clipboard
# Source Bookmarks
source "~/.config/lf/shortcutrc"

View File

@ -1,53 +0,0 @@
#!/bin/sh
# File preview handler for lf.
set -C -f
IFS="$(printf '%b_' '\n')"; IFS="${IFS%_}"
image() {
if [ -f "$1" ] && [ -n "$DISPLAY" ] && [ -z "$WAYLAND_DISPLAY" ] && command -V ueberzug >/dev/null 2>&1; then
printf '{"action": "add", "identifier": "PREVIEW", "x": "%s", "y": "%s", "width": "%s", "height": "%s", "scaler": "contain", "path": "%s"}\n' "$4" "$5" "$(($2-1))" "$(($3-1))" "$1" > "$FIFO_UEBERZUG"
else
mediainfo "$6"
fi
}
ifub() {
[ -n "$DISPLAY" ] && [ -z "$WAYLAND_DISPLAY" ] && command -V ueberzug >/dev/null 2>&1
}
# Note that the cache file name is a function of file information, meaning if
# an image appears in multiple places across the machine, it will not have to
# be regenerated once seen.
case "$(file --dereference --brief --mime-type -- "$1")" in
image/avif) CACHE="${XDG_CACHE_HOME:-$HOME/.cache}/lf/thumb.$(stat --printf '%n\0%i\0%F\0%s\0%W\0%Y' -- "$(readlink -f "$1")" | sha256sum | cut -d' ' -f1)"
[ ! -f "$CACHE" ] && convert "$1" "$CACHE.jpg"
image "$CACHE.jpg" "$2" "$3" "$4" "$5" "$1" ;;
image/*) image "$1" "$2" "$3" "$4" "$5" "$1" ;;
text/html) lynx -width="$4" -display_charset=utf-8 -dump "$1" ;;
text/troff) man ./ "$1" | col -b ;;
text/* | */xml | application/json) bat --terminal-width "$(($4-2))" -f "$1" ;;
audio/* | application/octet-stream) mediainfo "$1" || exit 1 ;;
video/* )
CACHE="${XDG_CACHE_HOME:-$HOME/.cache}/lf/thumb.$(stat --printf '%n\0%i\0%F\0%s\0%W\0%Y' -- "$(readlink -f "$1")" | sha256sum | cut -d' ' -f1)"
[ ! -f "$CACHE" ] && ffmpegthumbnailer -i "$1" -o "$CACHE" -s 0
image "$CACHE" "$2" "$3" "$4" "$5" "$1"
;;
*/pdf)
CACHE="${XDG_CACHE_HOME:-$HOME/.cache}/lf/thumb.$(stat --printf '%n\0%i\0%F\0%s\0%W\0%Y' -- "$(readlink -f "$1")" | sha256sum | cut -d' ' -f1)"
[ ! -f "$CACHE.jpg" ] && pdftoppm -jpeg -f 1 -singlefile "$1" "$CACHE"
image "$CACHE.jpg" "$2" "$3" "$4" "$5" "$1"
;;
*/epub+zip|*/mobi*)
CACHE="${XDG_CACHE_HOME:-$HOME/.cache}/lf/thumb.$(stat --printf '%n\0%i\0%F\0%s\0%W\0%Y' -- "$(readlink -f "$1")" | sha256sum | cut -d' ' -f1)"
[ ! -f "$CACHE.jpg" ] && gnome-epub-thumbnailer "$1" "$CACHE.jpg"
image "$CACHE.jpg" "$2" "$3" "$4" "$5" "$1"
;;
application/*zip) atool --list -- "$1" ;;
*opendocument*) odt2txt "$1" ;;
application/pgp-encrypted) gpg -d -- "$1" ;;
esac
exit 1

View File

@ -1,35 +0,0 @@
map Ccac cd "/home/victor/.cache"
map Ccf cd "/home/victor/.config"
map CD cd "/home/victor/down"
map Cd cd "/home/victor/dox"
map Cdt cd "/home/victor/.local/share"
map Crr cd "/home/victor/.local/src"
map Ch cd "/home/victor"
map Cm cd "/home/victor/music"
map Cmn cd "/mnt"
map Cpp cd "/home/victor/pix"
map Csc cd "/home/victor/.local/bin"
map Csrc cd "/home/victor/.local/src"
map Cvv cd "/home/victor/vids"
map Cssd cd "/mnt/ssd250/"
map Cnvme cd "/mnt/nvme/"
map Cbsd cd "/home/victor/bsd"
map Cpub cd "/home/victor/Public"
map Cmemes cd "/home/victor/Pictures/1memes"
map Cweb cd "/home/victor/web"
map Ebf $$EDITOR "/home/victor/.config/shell/bm-files"
map Ebd $$EDITOR "/home/victor/.config/shell/bm-dirs"
map Ecfx $$EDITOR "/home/victor/.config/x11/xresources"
map Ecfb $$EDITOR "~/.local/src/dwmblocks/config.h"
map Ecfv $$EDITOR "/home/victor/.config/nvim/init.vim"
map Ecfz $$EDITOR "/home/victor/.config/zsh/.zshrc"
map Ecfa $$EDITOR "/home/victor/.config/shell/aliasrc"
map Ecfp $$EDITOR "/home/victor/.config/shell/profile"
map Ecfm $$EDITOR "/home/victor/.config/mutt/muttrc"
map Ecfn $$EDITOR "/home/victor/.config/newsboat/config"
map Ecfu $$EDITOR "/home/victor/.config/newsboat/urls"
map Ecfmb $$EDITOR "/home/victor/.config/ncmpcpp/bindings"
map Ecfmc $$EDITOR "/home/victor/.config/ncmpcpp/config"
map Ecfl $$EDITOR "/home/victor/.config/lf/lfrc"
map EcfL $$EDITOR "/home/victor/.config/lf/scope"
map EcfX $$EDITOR "/home/victor/.config/sxiv/exec/key-handler"

View File

@ -1,55 +0,0 @@
[Default Applications]
text/x-shellscript=text.desktop;
x-scheme-handler/magnet=torrent.desktop;
application/x-bittorrent=torrent.desktop;
x-scheme-handler/mailto=userapp-Thunderbird-ELFTO1.desktop
text/plain=text.desktop;
application/postscript=pdf.desktop;
application/pdf=pdf.desktop;
image/png=img.desktop;
image/jpeg=img.desktop;
image/gif=img.desktop;
application/rss+xml=rss.desktop
video/x-matroska=video.desktop
x-scheme-handler/lbry=lbry.desktop
inode/directory=file.desktop
x-scheme-handler/http=firefox.desktop
x-scheme-handler/https=firefox.desktop
x-scheme-handler/chrome=firefox.desktop
text/html=firefox.desktop
application/x-extension-htm=firefox.desktop
application/x-extension-html=firefox.desktop
application/x-extension-shtml=firefox.desktop
application/xhtml+xml=firefox.desktop
application/x-extension-xhtml=firefox.desktop
application/x-extension-xht=firefox.desktop
message/rfc822=userapp-Thunderbird-ELFTO1.desktop
x-scheme-handler/mid=userapp-Thunderbird-ELFTO1.desktop
x-scheme-handler/tg=userapp-Telegram Desktop-KTC7V1.desktop
video/mp4=mpv.desktop
audio/flac=mpv.desktop
application/gzip=unityhub.desktop
[Added Associations]
x-scheme-handler/http=firefox.desktop;
x-scheme-handler/https=firefox.desktop;
x-scheme-handler/chrome=firefox.desktop;
text/html=firefox.desktop;
application/x-extension-htm=firefox.desktop;
application/x-extension-html=firefox.desktop;
application/x-extension-shtml=firefox.desktop;
application/xhtml+xml=firefox.desktop;
application/x-extension-xhtml=firefox.desktop;
application/x-extension-xht=firefox.desktop;
x-scheme-handler/mailto=userapp-Thunderbird-ELFTO1.desktop;
x-scheme-handler/mid=userapp-Thunderbird-ELFTO1.desktop;
x-scheme-handler/tg=userapp-Telegram Desktop-UY5IQ1.desktop;userapp-Telegram Desktop-KTC7V1.desktop;
video/mp4=vlc.desktop;mpv.desktop;
application/x-xpinstall=org.kde.ark.desktop;
application/javascript=codium.desktop;
audio/x-opus+ogg=org.gnome.Rhythmbox3.desktop;mpv.desktop;
video/webm=mpv.desktop;org.kde.kdenlive.desktop;
application/zip=org.kde.ark.desktop;
image/png=sxiv.desktop;org.kde.ark.desktop;
audio/flac=mpv.desktop;
application/gzip=unityhub.desktop;

View File

@ -1,21 +0,0 @@
music_directory "~/music"
playlist_directory "~/.config/mpd/playlists"
auto_update "yes"
bind_to_address "127.0.0.1"
restore_paused "yes"
max_output_buffer_size "16384"
audio_output {
type "pulse"
name "pulse"
#type "alsa"
#name "ALSA"
}
audio_output {
type "fifo"
name "Visualizer feed"
path "/tmp/mpd.fifo"
format "44100:16:2"
}

View File

@ -1,5 +0,0 @@
l seek 5
h seek -5
j seek -60
k seek 60
S cycle sub

View File

@ -1,25 +0,0 @@
# Misc
osc=no
save-position-on-quit
stop-screensaver=yes
fullscreen
ytdl-format=bestvideo[height<=?1080][fps<=?30]+bestaudio/best
#Hardware acceleration
vo=gpu
gpu-api=vulkan
hwdec=nvdec
# Choose a gpu api other than vulkan
cscale=bilinear
# Look
border=no
cursor-autohide=1000
# Cache
cache=yes
cache-default=999999
demuxer-max-bytes=2147483648
demuxer-max-back-bytes=2147483648
# Audio
volume=100
[extension.webm]
loop-file=inf
no-resume-playback

View File

@ -1,21 +0,0 @@
MIT License
Copyright (c) 2019 Wis
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

View File

@ -1,76 +0,0 @@
# mpvSockets
create one sockets per mpv instance (with the instance's process **ID** (PID), (**unique**)), instead of one socket for the last started instance
dangling sockets for crashed or killed instances is an issue,
not sure if this script should handle/remove them or the clients/users, or both.
# Installation
Download the single script file to your mpv-scripts-directory
## Linux / unixes:
``` bash
curl "https://raw.githubusercontent.com/wis/mpvSockets/master/mpvSockets.lua" --create-dirs -o "$Your_Mpv_Scripts_Directory_Location/mpvSockets.lua"
```
if you're on Linux, most likely the location is `~/.config/mpv/scripts`, so run this before:
``` bash
$Your_Mpv_Scripts_Directory_Location=$HOME/config/mpv/scripts
```
## Windows (untested)
powershell:
``` powershell
Invoke-WebRequest -OutFile "$env:LOCALAPPDATA\mpv\scripts\mpvSockets.lua" "https://raw.githubusercontent.com/wis/mpvSockets/master/mpvSockets.lua"
```
# Usage, with Mpv's [JSON IPC](https://github.com/mpv-player/mpv/blob/master/DOCS/man/ipc.rst)
## Linux / unixes (unix sockets):
a script that pauses all running mpv instances:
bash:
``` bash
#!/bin/bash
for i in $(ls /tmp/mpvSockets/*); do
echo '{ "command": ["set_property", "pause", true] }' | socat - "$i";
done
# Socat is a command line based utility that establishes two bidirec-tional byte streams and transfers data between them.
# available on Linux and FreeBSD, propably most unixes. you can also use
```
## Windows (named pipes):
quote from https://mpv.io/manual/stable/#command-prompt-example
> Unfortunately, it's not as easy to test the IPC protocol on Windows, since Windows ports of socat (in Cygwin and MSYS2) don't understand named pipes. In the absence of a simple tool to send and receive from bidirectional pipes, the echo command can be used to send commands, but not receive replies from the command prompt.
>
> Assuming mpv was started with:
>
> `mpv file.mkv --input-ipc-server=\\.\pipe\mpvsocket`
> You can send commands from a command prompt:
>
> `echo show-text ${playback-time} >\\.\pipe\mpvsocket`
To be able to simultaneously read and write from the IPC pipe, like on Linux, it's necessary to write an external program that uses overlapped file I/O (or some wrapper like .NET's NamedPipeClientStream.)
powershell client writer and reader (untested):
``` powershell
# socat.ps1
# usage: socat.ps1 <Pipe-name> <Message>
$sockedName = args[0]
$message = args[1]
$npipeClient = new-object System.IO.Pipes.NamedPipeClientStream('.', $socketName, [System.IO.Pipes.PipeDirection]::InOut, [System.IO.Pipes.PipeOptions]::None, [System.Security.Principal.TokenImpersonationLevel]::Impersonation)
$pipeReader = $pipeWriter = $null
try {
$npipeClient.Connect()
$pipeReader = new-object System.IO.StreamReader($npipeClient)
$pipeWriter = new-object System.IO.StreamWriter($npipeClient)
$pipeWriter.AutoFlush = $true
$pipeWriter.WriteLine($message)
while (($data = $pipeReader.ReadLine()) -ne $null) {
$data
}
}
catch {
"An error occurred that could not be resolved."
}
finally {
$npipeClient.Dispose()
}
```

View File

@ -1,36 +0,0 @@
-- mpvSockets, one socket per instance, removes socket on exit
local utils = require 'mp.utils'
local function get_temp_path()
local directory_seperator = package.config:match("([^\n]*)\n?")
local example_temp_file_path = os.tmpname()
-- remove generated temp file
pcall(os.remove, example_temp_file_path)
local seperator_idx = example_temp_file_path:reverse():find(directory_seperator)
local temp_path_length = #example_temp_file_path - seperator_idx
return example_temp_file_path:sub(1, temp_path_length)
end
tempDir = get_temp_path()
function join_paths(...)
local arg={...}
path = ""
for i,v in ipairs(arg) do
path = utils.join_path(path, tostring(v))
end
return path;
end
ppid = utils.getpid()
os.execute("mkdir " .. join_paths(tempDir, "mpvSockets") .. " 2>/dev/null")
mp.set_property("options/input-ipc-server", join_paths(tempDir, "mpvSockets", ppid))
function shutdown_handler()
os.remove(join_paths(tempDir, "mpvSockets", ppid))
end
mp.register_event("shutdown", shutdown_handler)

View File

@ -1,78 +0,0 @@
opts = {
blacklist="",
whitelist="",
remove_files_without_extension = false,
oneshot = true,
}
(require 'mp.options').read_options(opts)
local msg = require 'mp.msg'
function split(input)
local ret = {}
for str in string.gmatch(input, "([^,]+)") do
ret[#ret + 1] = str
end
return ret
end
opts.blacklist = split(opts.blacklist)
opts.whitelist = split(opts.whitelist)
local exclude
if #opts.whitelist > 0 then
exclude = function(extension)
for _, ext in pairs(opts.whitelist) do
if extension == ext then
return false
end
end
return true
end
elseif #opts.blacklist > 0 then
exclude = function(extension)
for _, ext in pairs(opts.blacklist) do
if extension == ext then
return true
end
end
return false
end
else
return
end
function should_remove(filename)
if string.find(filename, "://") then
return false
end
local extension = string.match(filename, "%.([^./]+)$")
if not extension and opts.remove_file_without_extension then
return true
end
if extension and exclude(string.lower(extension)) then
return true
end
return false
end
function process(playlist_count)
if playlist_count < 2 then return end
if opts.oneshot then
mp.unobserve_property(observe)
end
local playlist = mp.get_property_native("playlist")
local removed = 0
for i = #playlist, 1, -1 do
if should_remove(playlist[i].filename) then
mp.commandv("playlist-remove", i-1)
removed = removed + 1
end
end
if removed == #playlist then
msg.warn("Removed eveything from the playlist")
end
end
function observe(k,v) process(v) end
mp.observe_property("playlist-count", "number", observe)

View File

@ -1,87 +0,0 @@
function rotate(inc)
if (360 + inc) % 90 ~= 0 then
return
end
local vf_table = mp.get_property_native("vf")
local previous_angle = 0
local rotation_index = #vf_table + 1
if #vf_table ~= 0 and vf_table[#vf_table]["name"] == "rotate" then
rotation_index = #vf_table
previous_angle = vf_table[#vf_table]["params"]["angle"]
end
local new_angle = (previous_angle + 360 + inc) % 360
if new_angle == 0 then
vf_table[rotation_index] = nil
else
vf_table[rotation_index] = {
name = "rotate",
params = { angle = tostring(new_angle) }
}
end
mp.set_property_native("vf", vf_table)
end
function toggle(filter)
local vf_table = mp.get_property_native("vf")
if #vf_table ~= 0 and vf_table[#vf_table]["name"] == filter then
vf_table[#vf_table] = nil
else
vf_table[#vf_table + 1] = { name = filter }
end
mp.set_property_native("vf", vf_table)
end
local filters_undo_stack = {}
function remove_last_filter()
local vf_table = mp.get_property_native("vf")
if #vf_table == 0 then
return
end
filters_undo_stack[#filters_undo_stack + 1] = vf_table[#vf_table]
vf_table[#vf_table] = nil
mp.set_property_native("vf", vf_table)
end
function undo_filter_removal()
if #filters_undo_stack == 0 then
return
end
local vf_table = mp.get_property_native("vf")
vf_table[#vf_table + 1] = filters_undo_stack[#filters_undo_stack]
filters_undo_stack[#filters_undo_stack] = nil
mp.set_property_native("vf", vf_table)
end
function clear_filters()
local vf_table = mp.get_property_native("vf")
if #vf_table == 0 then
return
end
for i = 1, #vf_table do
filters_undo_stack[#filters_undo_stack + 1] = vf_table[#vf_table + 1 - i]
end
mp.set_property_native("vf", {})
end
function ab_loop(operation, timestamp)
if not mp.get_property("seekable") then return end
if timestamp ~= "a" and timestamp ~= "b" then return end
timestamp = "ab-loop-" .. timestamp
if operation == "set" then
mp.set_property_number(timestamp, mp.get_property_number("time-pos"))
elseif operation == "jump" then
local t = tonumber(mp.get_property(timestamp))
if t then mp.set_property_number("time-pos", t) end
elseif operation == "clear" then
mp.set_property(timestamp, "no")
end
end
mp.add_key_binding(nil, "rotate", rotate)
mp.add_key_binding(nil, "toggle-filter", toggle)
mp.add_key_binding(nil, "clear-filters", clear_filters)
mp.add_key_binding(nil, "remove-last-filter", remove_last_filter)
mp.add_key_binding(nil, "undo-filter-removal", undo_filter_removal)
mp.add_key_binding(nil, "ab-loop", ab_loop)

View File

@ -1,3 +0,0 @@
local mpv_config_dir_path = require("mp").command_native({"expand-path", "~~/"})
function load(relative_path) dofile(mpv_config_dir_path .. "/script_modules/" .. relative_path) end
load("mpvSockets/mpvSockets.lua")

File diff suppressed because it is too large Load Diff

View File

@ -1,736 +0,0 @@
--[[
Copyright (C) 2017 AMM
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
]]--
--[[
mpv_thumbnail_script.lua 0.4.2 - commit 682becf (branch master)
https://github.com/TheAMM/mpv_thumbnail_script
Built on 2022-08-30 16:27:14
]]--
local assdraw = require 'mp.assdraw'
local msg = require 'mp.msg'
local opt = require 'mp.options'
local utils = require 'mp.utils'
-- Determine platform --
ON_WINDOWS = (package.config:sub(1,1) ~= '/')
-- Some helper functions needed to parse the options --
function isempty(v) return (v == false) or (v == nil) or (v == "") or (v == 0) or (type(v) == "table" and next(v) == nil) end
function divmod (a, b)
return math.floor(a / b), a % b
end
-- Better modulo
function bmod( i, N )
return (i % N + N) % N
end
function join_paths(...)
local sep = ON_WINDOWS and "\\" or "/"
local result = "";
for i, p in pairs({...}) do
if p ~= "" then
if is_absolute_path(p) then
result = p
else
result = (result ~= "") and (result:gsub("[\\"..sep.."]*$", "") .. sep .. p) or p
end
end
end
return result:gsub("[\\"..sep.."]*$", "")
end
-- /some/path/file.ext -> /some/path, file.ext
function split_path( path )
local sep = ON_WINDOWS and "\\" or "/"
local first_index, last_index = path:find('^.*' .. sep)
if last_index == nil then
return "", path
else
local dir = path:sub(0, last_index-1)
local file = path:sub(last_index+1, -1)
return dir, file
end
end
function is_absolute_path( path )
local tmp, is_win = path:gsub("^[A-Z]:\\", "")
local tmp, is_unix = path:gsub("^/", "")
return (is_win > 0) or (is_unix > 0)
end
function Set(source)
local set = {}
for _, l in ipairs(source) do set[l] = true end
return set
end
---------------------------
-- More helper functions --
---------------------------
-- Removes all keys from a table, without destroying the reference to it
function clear_table(target)
for key, value in pairs(target) do
target[key] = nil
end
end
function shallow_copy(target)
local copy = {}
for k, v in pairs(target) do
copy[k] = v
end
return copy
end
-- Rounds to given decimals. eg. round_dec(3.145, 0) => 3
function round_dec(num, idp)
local mult = 10^(idp or 0)
return math.floor(num * mult + 0.5) / mult
end
function file_exists(name)
local f = io.open(name, "rb")
if f ~= nil then
local ok, err, code = f:read(1)
io.close(f)
return code == nil
else
return false
end
end
function path_exists(name)
local f = io.open(name, "rb")
if f ~= nil then
io.close(f)
return true
else
return false
end
end
function create_directories(path)
local cmd
if ON_WINDOWS then
cmd = { args = {"cmd", "/c", "mkdir", path} }
else
cmd = { args = {"mkdir", "-p", path} }
end
utils.subprocess(cmd)
end
-- Find an executable in PATH or CWD with the given name
function find_executable(name)
local delim = ON_WINDOWS and ";" or ":"
local pwd = os.getenv("PWD") or utils.getcwd()
local path = os.getenv("PATH")
local env_path = pwd .. delim .. path -- Check CWD first
local result, filename
for path_dir in env_path:gmatch("[^"..delim.."]+") do
filename = join_paths(path_dir, name)
if file_exists(filename) then
result = filename
break
end
end
return result
end
local ExecutableFinder = { path_cache = {} }
-- Searches for an executable and caches the result if any
function ExecutableFinder:get_executable_path( name, raw_name )
name = ON_WINDOWS and not raw_name and (name .. ".exe") or name
if self.path_cache[name] == nil then
self.path_cache[name] = find_executable(name) or false
end
return self.path_cache[name]
end
-- Format seconds to HH.MM.SS.sss
function format_time(seconds, sep, decimals)
decimals = decimals == nil and 3 or decimals
sep = sep and sep or "."
local s = seconds
local h, s = divmod(s, 60*60)
local m, s = divmod(s, 60)
local second_format = string.format("%%0%d.%df", 2+(decimals > 0 and decimals+1 or 0), decimals)
return string.format("%02d"..sep.."%02d"..sep..second_format, h, m, s)
end
-- Format seconds to 1h 2m 3.4s
function format_time_hms(seconds, sep, decimals, force_full)
decimals = decimals == nil and 1 or decimals
sep = sep ~= nil and sep or " "
local s = seconds
local h, s = divmod(s, 60*60)
local m, s = divmod(s, 60)
if force_full or h > 0 then
return string.format("%dh"..sep.."%dm"..sep.."%." .. tostring(decimals) .. "fs", h, m, s)
elseif m > 0 then
return string.format("%dm"..sep.."%." .. tostring(decimals) .. "fs", m, s)
else
return string.format("%." .. tostring(decimals) .. "fs", s)
end
end
-- Writes text on OSD and console
function log_info(txt, timeout)
timeout = timeout or 1.5
msg.info(txt)
mp.osd_message(txt, timeout)
end
-- Join table items, ala ({"a", "b", "c"}, "=", "-", ", ") => "=a-, =b-, =c-"
function join_table(source, before, after, sep)
before = before or ""
after = after or ""
sep = sep or ", "
local result = ""
for i, v in pairs(source) do
if not isempty(v) then
local part = before .. v .. after
if i == 1 then
result = part
else
result = result .. sep .. part
end
end
end
return result
end
function wrap(s, char)
char = char or "'"
return char .. s .. char
end
-- Wraps given string into 'string' and escapes any 's in it
function escape_and_wrap(s, char, replacement)
char = char or "'"
replacement = replacement or "\\" .. char
return wrap(string.gsub(s, char, replacement), char)
end
-- Escapes single quotes in a string and wraps the input in single quotes
function escape_single_bash(s)
return escape_and_wrap(s, "'", "'\\''")
end
-- Returns (a .. b) if b is not empty or nil
function joined_or_nil(a, b)
return not isempty(b) and (a .. b) or nil
end
-- Put items from one table into another
function extend_table(target, source)
for i, v in pairs(source) do
table.insert(target, v)
end
end
-- Creates a handle and filename for a temporary random file (in current directory)
function create_temporary_file(base, mode, suffix)
local handle, filename
suffix = suffix or ""
while true do
filename = base .. tostring(math.random(1, 5000)) .. suffix
handle = io.open(filename, "r")
if not handle then
handle = io.open(filename, mode)
break
end
io.close(handle)
end
return handle, filename
end
function get_processor_count()
local proc_count
if ON_WINDOWS then
proc_count = tonumber(os.getenv("NUMBER_OF_PROCESSORS"))
else
local cpuinfo_handle = io.open("/proc/cpuinfo")
if cpuinfo_handle ~= nil then
local cpuinfo_contents = cpuinfo_handle:read("*a")
local _, replace_count = cpuinfo_contents:gsub('processor', '')
proc_count = replace_count
end
end
if proc_count and proc_count > 0 then
return proc_count
else
return nil
end
end
function substitute_values(string, values)
local substitutor = function(match)
if match == "%" then
return "%"
else
-- nil is discarded by gsub
return values[match]
end
end
local substituted = string:gsub('%%(.)', substitutor)
return substituted
end
-- ASS HELPERS --
function round_rect_top( ass, x0, y0, x1, y1, r )
local c = 0.551915024494 * r -- circle approximation
ass:move_to(x0 + r, y0)
ass:line_to(x1 - r, y0) -- top line
if r > 0 then
ass:bezier_curve(x1 - r + c, y0, x1, y0 + r - c, x1, y0 + r) -- top right corner
end
ass:line_to(x1, y1) -- right line
ass:line_to(x0, y1) -- bottom line
ass:line_to(x0, y0 + r) -- left line
if r > 0 then
ass:bezier_curve(x0, y0 + r - c, x0 + r - c, y0, x0 + r, y0) -- top left corner
end
end
function round_rect(ass, x0, y0, x1, y1, rtl, rtr, rbr, rbl)
local c = 0.551915024494
ass:move_to(x0 + rtl, y0)
ass:line_to(x1 - rtr, y0) -- top line
if rtr > 0 then
ass:bezier_curve(x1 - rtr + rtr*c, y0, x1, y0 + rtr - rtr*c, x1, y0 + rtr) -- top right corner
end
ass:line_to(x1, y1 - rbr) -- right line
if rbr > 0 then
ass:bezier_curve(x1, y1 - rbr + rbr*c, x1 - rbr + rbr*c, y1, x1 - rbr, y1) -- bottom right corner
end
ass:line_to(x0 + rbl, y1) -- bottom line
if rbl > 0 then
ass:bezier_curve(x0 + rbl - rbl*c, y1, x0, y1 - rbl + rbl*c, x0, y1 - rbl) -- bottom left corner
end
ass:line_to(x0, y0 + rtl) -- left line
if rtl > 0 then
ass:bezier_curve(x0, y0 + rtl - rtl*c, x0 + rtl - rtl*c, y0, x0 + rtl, y0) -- top left corner
end
end
local SCRIPT_NAME = "mpv_thumbnail_script"
local default_cache_base = ON_WINDOWS and os.getenv("TEMP") or "/tmp/"
local thumbnailer_options = {
-- The thumbnail directory
cache_directory = join_paths(default_cache_base, "mpv_thumbs_cache"),
------------------------
-- Generation options --
------------------------
-- Automatically generate the thumbnails on video load, without a keypress
autogenerate = true,
-- Only automatically thumbnail videos shorter than this (seconds)
autogenerate_max_duration = 3600, -- 1 hour
-- SHA1-sum filenames over this length
-- It's nice to know what files the thumbnails are (hence directory names)
-- but long URLs may approach filesystem limits.
hash_filename_length = 128,
-- Use mpv to generate thumbnail even if ffmpeg is found in PATH
-- ffmpeg does not handle ordered chapters (MKVs which rely on other MKVs)!
-- mpv is a bit slower, but has better support overall (eg. subtitles in the previews)
prefer_mpv = true,
-- Explicitly disable subtitles on the mpv sub-calls
mpv_no_sub = false,
-- Add a "--no-config" to the mpv sub-call arguments
mpv_no_config = false,
-- Add a "--profile=<mpv_profile>" to the mpv sub-call arguments
-- Use "" to disable
mpv_profile = "",
-- Output debug logs to <thumbnail_path>.log, ala <cache_directory>/<video_filename>/000000.bgra.log
-- The logs are removed after successful encodes, unless you set mpv_keep_logs below
mpv_logs = true,
-- Keep all mpv logs, even the succesfull ones
mpv_keep_logs = false,
-- Disable the built-in keybind ("T") to add your own
disable_keybinds = false,
---------------------
-- Display options --
---------------------
-- Move the thumbnail up or down
-- For example:
-- topbar/bottombar: 24
-- rest: 0
vertical_offset = 24,
-- Adjust background padding
-- Examples:
-- topbar: 0, 10, 10, 10
-- bottombar: 10, 0, 10, 10
-- slimbox/box: 10, 10, 10, 10
pad_top = 10,
pad_bot = 0,
pad_left = 10,
pad_right = 10,
-- If true, pad values are screen-pixels. If false, video-pixels.
pad_in_screenspace = true,
-- Calculate pad into the offset
offset_by_pad = true,
-- Background color in BBGGRR
background_color = "000000",
-- Alpha: 0 - fully opaque, 255 - transparent
background_alpha = 80,
-- Keep thumbnail on the screen near left or right side
constrain_to_screen = true,
-- Do not display the thumbnailing progress
hide_progress = false,
-----------------------
-- Thumbnail options --
-----------------------
-- The maximum dimensions of the thumbnails (pixels)
thumbnail_width = 200,
thumbnail_height = 200,
-- The thumbnail count target
-- (This will result in a thumbnail every ~10 seconds for a 25 minute video)
thumbnail_count = 150,
-- The above target count will be adjusted by the minimum and
-- maximum time difference between thumbnails.
-- The thumbnail_count will be used to calculate a target separation,
-- and min/max_delta will be used to constrict it.
-- In other words, thumbnails will be:
-- at least min_delta seconds apart (limiting the amount)
-- at most max_delta seconds apart (raising the amount if needed)
min_delta = 5,
-- 120 seconds aka 2 minutes will add more thumbnails when the video is over 5 hours!
max_delta = 90,
-- Overrides for remote urls (you generally want less thumbnails!)
-- Thumbnailing network paths will be done with mpv
-- Allow thumbnailing network paths (naive check for "://")
thumbnail_network = false,
-- Override thumbnail count, min/max delta
remote_thumbnail_count = 60,
remote_min_delta = 15,
remote_max_delta = 120,
-- Try to grab the raw stream and disable ytdl for the mpv subcalls
-- Much faster than passing the url to ytdl again, but may cause problems with some sites
remote_direct_stream = true,
}
read_options(thumbnailer_options, SCRIPT_NAME)
function skip_nil(tbl)
local n = {}
for k, v in pairs(tbl) do
table.insert(n, v)
end
return n
end
function create_thumbnail_mpv(file_path, timestamp, size, output_path, options)
options = options or {}
local ytdl_disabled = not options.enable_ytdl and (mp.get_property_native("ytdl") == false
or thumbnailer_options.remote_direct_stream)
local header_fields_arg = nil
local header_fields = mp.get_property_native("http-header-fields")
if #header_fields > 0 then
-- We can't escape the headers, mpv won't parse "--http-header-fields='Name: value'" properly
header_fields_arg = "--http-header-fields=" .. table.concat(header_fields, ",")
end
local profile_arg = nil
if thumbnailer_options.mpv_profile ~= "" then
profile_arg = "--profile=" .. thumbnailer_options.mpv_profile
end
local log_arg = "--log-file=" .. output_path .. ".log"
local mpv_command = skip_nil({
"mpv",
-- Hide console output
"--msg-level=all=no",
-- Disable ytdl
(ytdl_disabled and "--no-ytdl" or nil),
-- Pass HTTP headers from current instance
header_fields_arg,
-- Pass User-Agent and Referer - should do no harm even with ytdl active
"--user-agent=" .. mp.get_property_native("user-agent"),
"--referrer=" .. mp.get_property_native("referrer"),
-- Disable hardware decoding
"--hwdec=no",
-- Insert --no-config, --profile=... and --log-file if enabled
(thumbnailer_options.mpv_no_config and "--no-config" or nil),
profile_arg,
(thumbnailer_options.mpv_logs and log_arg or nil),
file_path,
"--start=" .. tostring(timestamp),
"--frames=1",
"--hr-seek=yes",
"--no-audio",
-- Optionally disable subtitles
(thumbnailer_options.mpv_no_sub and "--no-sub" or nil),
("--vf=scale=%d:%d"):format(size.w, size.h),
"--vf-add=format=bgra",
"--of=rawvideo",
"--ovc=rawvideo",
"--o=" .. output_path
})
return utils.subprocess({args=mpv_command})
end
function create_thumbnail_ffmpeg(file_path, timestamp, size, output_path)
local ffmpeg_command = {
"ffmpeg",
"-loglevel", "quiet",
"-noaccurate_seek",
"-ss", format_time(timestamp, ":"),
"-i", file_path,
"-frames:v", "1",
"-an",
"-vf", ("scale=%d:%d"):format(size.w, size.h),
"-c:v", "rawvideo",
"-pix_fmt", "bgra",
"-f", "rawvideo",
"-y", output_path
}
return utils.subprocess({args=ffmpeg_command})
end
function check_output(ret, output_path, is_mpv)
local log_path = output_path .. ".log"
local success = true
if ret.killed_by_us then
return nil
else
if ret.error or ret.status ~= 0 then
msg.error("Thumbnailing command failed!")
msg.error("mpv process error:", ret.error)
msg.error("Process stdout:", ret.stdout)
if is_mpv then
msg.error("Debug log:", log_path)
end
success = false
end
if not file_exists(output_path) then
msg.error("Output file missing!", output_path)
success = false
end
end
if is_mpv and not thumbnailer_options.mpv_keep_logs then
-- Remove successful debug logs
if success and file_exists(log_path) then
os.remove(log_path)
end
end
return success
end
function do_worker_job(state_json_string, frames_json_string)
msg.debug("Handling given job")
local thumb_state, err = utils.parse_json(state_json_string)
if err then
msg.error("Failed to parse state JSON")
return
end
local thumbnail_indexes, err = utils.parse_json(frames_json_string)
if err then
msg.error("Failed to parse thumbnail frame indexes")
return
end
local thumbnail_func = create_thumbnail_mpv
if not thumbnailer_options.prefer_mpv then
if ExecutableFinder:get_executable_path("ffmpeg") then
thumbnail_func = create_thumbnail_ffmpeg
else
msg.warn("Could not find ffmpeg in PATH! Falling back on mpv.")
end
end
local file_duration = mp.get_property_native("duration")
local file_path = thumb_state.worker_input_path
if thumb_state.is_remote then
if (thumbnail_func == create_thumbnail_ffmpeg) then
msg.warn("Thumbnailing remote path, falling back on mpv.")
end
thumbnail_func = create_thumbnail_mpv
end
local generate_thumbnail_for_index = function(thumbnail_index)
-- Given a 1-based thumbnail index, generate a thumbnail for it based on the thumbnailer state
local thumb_idx = thumbnail_index - 1
msg.debug("Starting work on thumbnail", thumb_idx)
local thumbnail_path = thumb_state.thumbnail_template:format(thumb_idx)
-- Grab the "middle" of the thumbnail duration instead of the very start, and leave some margin in the end
local timestamp = math.min(file_duration - 0.25, (thumb_idx + 0.5) * thumb_state.thumbnail_delta)
mp.commandv("script-message", "mpv_thumbnail_script-progress", tostring(thumbnail_index))
-- The expected size (raw BGRA image)
local thumbnail_raw_size = (thumb_state.thumbnail_size.w * thumb_state.thumbnail_size.h * 4)
local need_thumbnail_generation = false
-- Check if the thumbnail already exists and is the correct size
local thumbnail_file = io.open(thumbnail_path, "rb")
if thumbnail_file == nil then
need_thumbnail_generation = true
else
local existing_thumbnail_filesize = thumbnail_file:seek("end")
if existing_thumbnail_filesize ~= thumbnail_raw_size then
-- Size doesn't match, so (re)generate
msg.warn("Thumbnail", thumb_idx, "did not match expected size, regenerating")
need_thumbnail_generation = true
end
thumbnail_file:close()
end
if need_thumbnail_generation then
local ret = thumbnail_func(file_path, timestamp, thumb_state.thumbnail_size, thumbnail_path, thumb_state.worker_extra)
local success = check_output(ret, thumbnail_path, thumbnail_func == create_thumbnail_mpv)
if success == nil then
-- Killed by us, changing files, ignore
msg.debug("Changing files, subprocess killed")
return true
elseif not success then
-- Real failure
mp.osd_message("Thumbnailing failed, check console for details", 3.5)
return true
end
else
msg.debug("Thumbnail", thumb_idx, "already done!")
end
-- Verify thumbnail size
-- Sometimes ffmpeg will output an empty file when seeking to a "bad" section (usually the end)
thumbnail_file = io.open(thumbnail_path, "rb")
-- Bail if we can't read the file (it should really exist by now, we checked this in check_output!)
if thumbnail_file == nil then
msg.error("Thumbnail suddenly disappeared!")
return true
end
-- Check the size of the generated file
local thumbnail_file_size = thumbnail_file:seek("end")
thumbnail_file:close()
-- Check if the file is big enough
local missing_bytes = math.max(0, thumbnail_raw_size - thumbnail_file_size)
if missing_bytes > 0 then
msg.warn(("Thumbnail missing %d bytes (expected %d, had %d), padding %s"):format(
missing_bytes, thumbnail_raw_size, thumbnail_file_size, thumbnail_path
))
-- Pad the file if it's missing content (eg. ffmpeg seek to file end)
thumbnail_file = io.open(thumbnail_path, "ab")
thumbnail_file:write(string.rep(string.char(0), missing_bytes))
thumbnail_file:close()
end
msg.debug("Finished work on thumbnail", thumb_idx)
mp.commandv("script-message", "mpv_thumbnail_script-ready", tostring(thumbnail_index), thumbnail_path)
end
msg.debug(("Generating %d thumbnails @ %dx%d for %q"):format(
#thumbnail_indexes,
thumb_state.thumbnail_size.w,
thumb_state.thumbnail_size.h,
file_path))
for i, thumbnail_index in ipairs(thumbnail_indexes) do
local bail = generate_thumbnail_for_index(thumbnail_index)
if bail then return end
end
end
-- Set up listeners and keybinds
-- Job listener
mp.register_script_message("mpv_thumbnail_script-job", do_worker_job)
-- Register this worker with the master script
local register_timer = nil
local register_timeout = mp.get_time() + 1.5
local register_function = function()
if mp.get_time() > register_timeout and register_timer then
msg.error("Thumbnail worker registering timed out")
register_timer:stop()
else
msg.debug("Announcing self to master...")
mp.commandv("script-message", "mpv_thumbnail_script-worker", mp.get_script_name())
end
end
register_timer = mp.add_periodic_timer(0.1, register_function)
mp.register_script_message("mpv_thumbnail_script-slaved", function()
msg.debug("Successfully registered with master")
register_timer:stop()
end)

View File

@ -1,157 +0,0 @@
local assdraw = require 'mp.assdraw'
local active = false
local cursor_position = 1
local time_scale = {60*60*10, 60*60, 60*10, 60, 10, 1, 0.1, 0.01, 0.001}
local ass_begin = mp.get_property("osd-ass-cc/0")
local ass_end = mp.get_property("osd-ass-cc/1")
local history = { {} }
for i = 1, 9 do
history[1][i] = 0
end
local history_position = 1
-- timer to redraw periodically the message
-- to avoid leaving bindings when the seeker disappears for whatever reason
-- pretty hacky tbh
local timer = nil
local timer_duration = 3
function show_seeker()
local prepend_char = {'','',':','',':','','.','',''}
local str = ''
for i = 1, 9 do
str = str .. prepend_char[i]
if i == cursor_position then
str = str .. '{\\b1}' .. history[history_position][i] .. '{\\r}'
else
str = str .. history[history_position][i]
end
end
mp.osd_message("Seek to: " .. ass_begin .. str .. ass_end, timer_duration)
end
function copy_history_to_last()
if history_position ~= #history then
for i = 1, 9 do
history[#history][i] = history[history_position][i]
end
history_position = #history
end
end
function change_number(i)
-- can't set above 60 minutes or seconds
if (cursor_position == 3 or cursor_position == 5) and i >= 6 then
return
end
if history[history_position][cursor_position] ~= i then
copy_history_to_last()
history[#history][cursor_position] = i
end
shift_cursor(false)
end
function shift_cursor(left)
if left then
cursor_position = math.max(1, cursor_position - 1)
else
cursor_position = math.min(cursor_position + 1, 9)
end
end
function current_time_as_sec(time)
local sec = 0
for i = 1, 9 do
sec = sec + time_scale[i] * time[i]
end
return sec
end
function time_equal(lhs, rhs)
for i = 1, 9 do
if lhs[i] ~= rhs[i] then
return false
end
end
return true
end
function seek_to()
copy_history_to_last()
mp.commandv("osd-bar", "seek", current_time_as_sec(history[history_position]), "absolute")
--deduplicate consecutive timestamps
if #history == 1 or not time_equal(history[history_position], history[#history - 1]) then
history[#history + 1] = {}
history_position = #history
end
for i = 1, 9 do
history[#history][i] = 0
end
end
function backspace()
if cursor_position ~= 9 or current_time[9] == 0 then
shift_cursor(true)
end
if history[history_position][cursor_position] ~= 0 then
copy_history_to_last()
history[#history][cursor_position] = 0
end
end
function history_move(up)
if up then
history_position = math.max(1, history_position - 1)
else
history_position = math.min(history_position + 1, #history)
end
end
local key_mappings = {
LEFT = function() shift_cursor(true) show_seeker() end,
RIGHT = function() shift_cursor(false) show_seeker() end,
UP = function() history_move(true) show_seeker() end,
DOWN = function() history_move(false) show_seeker() end,
BS = function() backspace() show_seeker() end,
ESC = function() set_inactive() end,
ENTER = function() seek_to() set_inactive() end
}
for i = 0, 9 do
local func = function() change_number(i) show_seeker() end
key_mappings[string.format("KP%d", i)] = func
key_mappings[string.format("%d", i)] = func
end
function set_active()
if not mp.get_property("seekable") then return end
-- find duration of the video and set cursor position accordingly
local duration = mp.get_property_number("duration")
if duration ~= nil then
for i = 1, 9 do
if duration > time_scale[i] then
cursor_position = i
break
end
end
end
for key, func in pairs(key_mappings) do
mp.add_forced_key_binding(key, "seek-to-"..key, func)
end
show_seeker()
timer = mp.add_periodic_timer(timer_duration, show_seeker)
active = true
end
function set_inactive()
mp.osd_message("")
for key, _ in pairs(key_mappings) do
mp.remove_key_binding("seek-to-"..key)
end
timer:kill()
active = false
end
mp.add_key_binding(nil, "toggle-seeker", function() if active then set_inactive() else set_active() end end)

@ -1 +0,0 @@
Subproject commit 4120b5afc0578ce00fbede01bc9e0b8c5fc31adf

View File

@ -1,3 +0,0 @@
[directory]
nautilus-icon-view-sort-by=search_relevance
nautilus-icon-view-sort-reversed=true

View File

@ -1,479 +0,0 @@
##############################################################
## This is the example bindings file. Copy it to ##
## ~/.ncmpcpp/bindings or $XDG_CONFIG_HOME/ncmpcpp/bindings ##
## and set up your preferences ##
##############################################################
#
#def_key "mouse"
# mouse_event
#
#def_key "up"
# scroll_up
#
#def_key "shift-up"
# select_item
# scroll_up
#
#def_key "down"
# scroll_down
#
#def_key "shift-down"
# select_item
# scroll_down
#
#def_key "["
# scroll_up_album
#
#def_key "]"
# scroll_down_album
#
#def_key "{"
# scroll_up_artist
#
#def_key "}"
# scroll_down_artist
#
#def_key "page_up"
# page_up
#
#def_key "page_down"
# page_down
#
#def_key "home"
# move_home
#
#def_key "end"
# move_end
#
#def_key "insert"
# select_item
#
#def_key "enter"
# enter_directory
#
#def_key "enter"
# toggle_output
#
#def_key "enter"
# run_action
#
#def_key "enter"
# play_item
#
#def_key "space"
# add_item_to_playlist
#
#def_key "space"
# toggle_lyrics_update_on_song_change
#
#def_key "space"
# toggle_visualization_type
#
#def_key "delete"
# delete_playlist_items
#
#def_key "delete"
# delete_browser_items
#
#def_key "delete"
# delete_stored_playlist
#
#def_key "right"
# next_column
#
#def_key "right"
# slave_screen
#
#def_key "right"
# volume_up
#
#def_key "+"
# volume_up
#
#def_key "left"
# previous_column
#
#def_key "left"
# master_screen
#
#def_key "left"
# volume_down
#
#def_key "-"
# volume_down
#
#def_key ":"
# execute_command
#
#def_key "tab"
# next_screen
#
#def_key "shift-tab"
# previous_screen
#
#def_key "f1"
# show_help
#
#def_key "1"
# show_playlist
#
#def_key "2"
# show_browser
#
#def_key "2"
# change_browse_mode
#
#def_key "3"
# show_search_engine
#
#def_key "3"
# reset_search_engine
#
#def_key "4"
# show_media_library
#
#def_key "4"
# toggle_media_library_columns_mode
#
#def_key "5"
# show_playlist_editor
#
#def_key "6"
# show_tag_editor
#
#def_key "7"
# show_outputs
#
#def_key "8"
# show_visualizer
#
#def_key "="
# show_clock
#
#def_key "@"
# show_server_info
#
#def_key "s"
# stop
#
#def_key "p"
# pause
#
#def_key ">"
# next
#
#def_key "<"
# previous
#
#def_key "ctrl-h"
# jump_to_parent_directory
#
#def_key "ctrl-h"
# replay_song
#
#def_key "backspace"
# jump_to_parent_directory
#
#def_key "backspace"
# replay_song
#
#def_key "f"
# seek_forward
#
#def_key "b"
# seek_backward
#
#def_key "r"
# toggle_repeat
#
#def_key "z"
# toggle_random
#
#def_key "y"
# save_tag_changes
#
#def_key "y"
# start_searching
#
#def_key "y"
# toggle_single
#
#def_key "R"
# toggle_consume
#
#def_key "Y"
# toggle_replay_gain_mode
#
#def_key "T"
# toggle_add_mode
#
#def_key "|"
# toggle_mouse
#
#def_key "#"
# toggle_bitrate_visibility
#
#def_key "Z"
# shuffle
#
#def_key "x"
# toggle_crossfade
#
#def_key "X"
# set_crossfade
#
#def_key "u"
# update_database
#
#def_key "ctrl-s"
# sort_playlist
#
#def_key "ctrl-s"
# toggle_browser_sort_mode
#
#def_key "ctrl-s"
# toggle_media_library_sort_mode
#
#def_key "ctrl-r"
# reverse_playlist
#
#def_key "ctrl-f"
# apply_filter
#
#def_key "ctrl-_"
# select_found_items
#
#def_key "/"
# find
#
#def_key "/"
# find_item_forward
#
#def_key "?"
# find
#
#def_key "?"
# find_item_backward
#
#def_key "."
# next_found_item
#
#def_key ","
# previous_found_item
#
#def_key "w"
# toggle_find_mode
#
#def_key "e"
# edit_song
#
#def_key "e"
# edit_library_tag
#
#def_key "e"
# edit_library_album
#
#def_key "e"
# edit_directory_name
#
#def_key "e"
# edit_playlist_name
#
#def_key "e"
# edit_lyrics
#
#def_key "i"
# show_song_info
#
#def_key "I"
# show_artist_info
#
#def_key "g"
# jump_to_position_in_song
#
#def_key "l"
# show_lyrics
#
#def_key "ctrl-v"
# select_range
#
#def_key "v"
# reverse_selection
#
#def_key "V"
# remove_selection
#
#def_key "B"
# select_album
#
#def_key "a"
# add_selected_items
#
#def_key "c"
# clear_playlist
#
#def_key "c"
# clear_main_playlist
#
#def_key "C"
# crop_playlist
#
#def_key "C"
# crop_main_playlist
#
#def_key "m"
# move_sort_order_up
#
#def_key "m"
# move_selected_items_up
#
#def_key "n"
# move_sort_order_down
#
#def_key "n"
# move_selected_items_down
#
#def_key "M"
# move_selected_items_to
#
#def_key "A"
# add
#
#def_key "S"
# save_playlist
#
#def_key "o"
# jump_to_playing_song
#
#def_key "G"
# jump_to_browser
#
#def_key "G"
# jump_to_playlist_editor
#
#def_key "~"
# jump_to_media_library
#
#def_key "E"
# jump_to_tag_editor
#
#def_key "U"
# toggle_playing_song_centering
#
#def_key "P"
# toggle_display_mode
#
#def_key "\\"
# toggle_interface
#
#def_key "!"
# toggle_separators_between_albums
#
#def_key "L"
# toggle_lyrics_fetcher
#
#def_key "F"
# fetch_lyrics_in_background
#
#def_key "alt-l"
# toggle_fetching_lyrics_in_background
#
#def_key "ctrl-l"
# toggle_screen_lock
#
#def_key "`"
# toggle_library_tag_type
#
#def_key "`"
# refetch_lyrics
#
#def_key "`"
# add_random_items
#
#def_key "ctrl-p"
# set_selected_items_priority
#
#def_key "q"
# quit
#
#
#def_key "f"
# find
#def_key "f"
# find_item_forward
def_key "+"
show_clock
def_key "="
volume_up
def_key "j"
scroll_down
def_key "k"
scroll_up
def_key "ctrl-u"
page_up
#push_characters "kkkkkkkkkkkkkkk"
def_key "ctrl-d"
page_down
#push_characters "jjjjjjjjjjjjjjj"
def_key "u"
page_up
#push_characters "kkkkkkkkkkkkkkk"
def_key "d"
page_down
#push_characters "jjjjjjjjjjjjjjj"
def_key "h"
previous_column
def_key "l"
next_column
def_key "."
show_lyrics
def_key "n"
next_found_item
def_key "N"
previous_found_item
# not used but bound
def_key "J"
move_sort_order_down
def_key "K"
move_sort_order_up
def_key "h"
jump_to_parent_directory
def_key "l"
enter_directory
def_key "l"
run_action
def_key "l"
play_item
def_key "m"
show_media_library
def_key "m"
toggle_media_library_columns_mode
def_key "t"
show_tag_editor
def_key "v"
show_visualizer
def_key "G"
move_end
def_key "g"
move_home
#jump_to_position_in_song
def_key "U"
update_database
def_key "s"
reset_search_engine
def_key "s"
show_search_engine
def_key "f"
show_browser
def_key "f"
change_browse_mode
def_key "x"
delete_playlist_items
def_key "P"
show_playlist

Some files were not shown because too many files have changed in this diff Show More