mirror of
https://github.com/ksyasuda/rice.git
synced 2024-11-22 03:19:58 -08:00
updates
This commit is contained in:
parent
a4fb803411
commit
1a35b34fbc
58
colorls/dark_colors.yaml
Normal file
58
colorls/dark_colors.yaml
Normal file
@ -0,0 +1,58 @@
|
|||||||
|
# Main Colors
|
||||||
|
unrecognized_file: gold
|
||||||
|
# recognized_file: yellow
|
||||||
|
recognized_file: "#d19a66"
|
||||||
|
executable_file: "#98c379"
|
||||||
|
# executable_file: lime
|
||||||
|
# dir: dodgerblue
|
||||||
|
dir: "#1E90FF"
|
||||||
|
|
||||||
|
# Link
|
||||||
|
# dead_link: red
|
||||||
|
dead_link: "#e06c75"
|
||||||
|
link: "#56b6c2"
|
||||||
|
|
||||||
|
# special files
|
||||||
|
# socket: green
|
||||||
|
# blockdev: green
|
||||||
|
# chardev: green
|
||||||
|
socket: "#98c379"
|
||||||
|
blockdev: "#98c379"
|
||||||
|
chardev: "#98c379"
|
||||||
|
|
||||||
|
# Access Modes
|
||||||
|
# write: darkkhaki
|
||||||
|
# read: limegreen
|
||||||
|
# exec: red
|
||||||
|
write: "#d19a66"
|
||||||
|
read: "#98c379"
|
||||||
|
exec: "#e06c75"
|
||||||
|
no_access: indianred
|
||||||
|
|
||||||
|
# Age
|
||||||
|
day_old: mediumspringgreen
|
||||||
|
# hour_old: lime
|
||||||
|
hour_old: "#98c379"
|
||||||
|
no_modifier: seagreen
|
||||||
|
|
||||||
|
# File Size
|
||||||
|
file_large: orange
|
||||||
|
file_medium: gold
|
||||||
|
file_small: peachpuff
|
||||||
|
|
||||||
|
# Random
|
||||||
|
report: white
|
||||||
|
user: moccasin
|
||||||
|
tree: cyan
|
||||||
|
empty: yellow
|
||||||
|
error: red
|
||||||
|
normal: darkkhaki
|
||||||
|
|
||||||
|
# Git
|
||||||
|
# addition: chartreuse
|
||||||
|
addition: "#98c379"
|
||||||
|
# modification: darkkhaki
|
||||||
|
modification: "#d19a66"
|
||||||
|
deletion: "#e06c75"
|
||||||
|
untracked: darkorange
|
||||||
|
unchanged: forestgreen
|
48
colorls/dark_colors_orig.yaml
Normal file
48
colorls/dark_colors_orig.yaml
Normal file
@ -0,0 +1,48 @@
|
|||||||
|
# Main Colors
|
||||||
|
unrecognized_file: gold
|
||||||
|
recognized_file: yellow
|
||||||
|
executable_file: lime
|
||||||
|
dir: dodgerblue
|
||||||
|
|
||||||
|
# Link
|
||||||
|
dead_link: red
|
||||||
|
link: cyan
|
||||||
|
|
||||||
|
# special files
|
||||||
|
socket: green
|
||||||
|
blockdev: green
|
||||||
|
chardev: green
|
||||||
|
|
||||||
|
# Access Modes
|
||||||
|
# write: darkkhaki
|
||||||
|
# read: limegreen
|
||||||
|
# exec: red
|
||||||
|
write: "#d19a66"
|
||||||
|
read: "#98c379"
|
||||||
|
exec: "#e06c75"
|
||||||
|
no_access: indianred
|
||||||
|
|
||||||
|
# Age
|
||||||
|
day_old: mediumspringgreen
|
||||||
|
hour_old: lime
|
||||||
|
no_modifier: seagreen
|
||||||
|
|
||||||
|
# File Size
|
||||||
|
file_large: orange
|
||||||
|
file_medium: gold
|
||||||
|
file_small: peachpuff
|
||||||
|
|
||||||
|
# Random
|
||||||
|
report: white
|
||||||
|
user: moccasin
|
||||||
|
tree: cyan
|
||||||
|
empty: yellow
|
||||||
|
error: red
|
||||||
|
normal: darkkhaki
|
||||||
|
|
||||||
|
# Git
|
||||||
|
addition: chartreuse
|
||||||
|
modification: darkkhaki
|
||||||
|
deletion: darkred
|
||||||
|
untracked: darkorange
|
||||||
|
unchanged: forestgreen
|
69
colorls/files.yaml
Normal file
69
colorls/files.yaml
Normal file
@ -0,0 +1,69 @@
|
|||||||
|
ai: ""
|
||||||
|
android: ""
|
||||||
|
apple: ""
|
||||||
|
audio: ""
|
||||||
|
avro: ""
|
||||||
|
c: ""
|
||||||
|
clj: ""
|
||||||
|
coffee: ""
|
||||||
|
conf: ""
|
||||||
|
cpp: ""
|
||||||
|
css: ""
|
||||||
|
d: ""
|
||||||
|
dart: ""
|
||||||
|
db: ""
|
||||||
|
diff: ""
|
||||||
|
doc: ""
|
||||||
|
docker: ""
|
||||||
|
ebook: ""
|
||||||
|
env: ""
|
||||||
|
epub: ""
|
||||||
|
erl: ""
|
||||||
|
file: ""
|
||||||
|
font: ""
|
||||||
|
gform: ""
|
||||||
|
git: ""
|
||||||
|
go: ""
|
||||||
|
gruntfile.js: ""
|
||||||
|
hs: ""
|
||||||
|
html: ""
|
||||||
|
image: ""
|
||||||
|
iml: ""
|
||||||
|
java: ""
|
||||||
|
js: ""
|
||||||
|
json: ""
|
||||||
|
jsx: ""
|
||||||
|
less: ""
|
||||||
|
log: ""
|
||||||
|
lua: ""
|
||||||
|
md: ""
|
||||||
|
mustache: ""
|
||||||
|
npmignore: ""
|
||||||
|
pdf: ""
|
||||||
|
php: ""
|
||||||
|
pl: ""
|
||||||
|
ppt: ""
|
||||||
|
psd: ""
|
||||||
|
py: ""
|
||||||
|
r: ""
|
||||||
|
rb: ""
|
||||||
|
rdb: ""
|
||||||
|
rss: ""
|
||||||
|
rubydoc: ""
|
||||||
|
sass: ""
|
||||||
|
scala: ""
|
||||||
|
shell: ""
|
||||||
|
sqlite3: ""
|
||||||
|
styl: ""
|
||||||
|
tex: ""
|
||||||
|
ts: ""
|
||||||
|
twig: ""
|
||||||
|
txt: ""
|
||||||
|
video: ""
|
||||||
|
vim: ""
|
||||||
|
windows: ""
|
||||||
|
xls: ""
|
||||||
|
xml: ""
|
||||||
|
yarn.lock: ""
|
||||||
|
yml: ""
|
||||||
|
zip: ""
|
@ -22,7 +22,7 @@
|
|||||||
;; (setq doom-font (font-spec :family "monospace" :size 12 :weight 'semi-light)
|
;; (setq doom-font (font-spec :family "monospace" :size 12 :weight 'semi-light)
|
||||||
;; doom-variable-pitch-font (font-spec :family "sans" :size 13))
|
;; doom-variable-pitch-font (font-spec :family "sans" :size 13))
|
||||||
;; (setq doom-font (font-spec :family "FiraCode Nerd Font" :size 14))
|
;; (setq doom-font (font-spec :family "FiraCode Nerd Font" :size 14))
|
||||||
(setq doom-font (font-spec :family "mononoki Nerd Font Mono" :size 18))
|
(setq doom-font (font-spec :family "FiraCode Nerd Font" :size 18))
|
||||||
|
|
||||||
;; There are two ways to load a theme. Both assume the theme is installed and
|
;; There are two ways to load a theme. Both assume the theme is installed and
|
||||||
;; available. You can either set `doom-theme' or manually load a theme with the
|
;; available. You can either set `doom-theme' or manually load a theme with the
|
||||||
@ -82,6 +82,8 @@
|
|||||||
:hook
|
:hook
|
||||||
(sh-mode . 'lsp))
|
(sh-mode . 'lsp))
|
||||||
|
|
||||||
|
(setq lsp-enable-folding t)
|
||||||
|
|
||||||
(add-hook 'python-mode 'python-pylint)
|
(add-hook 'python-mode 'python-pylint)
|
||||||
|
|
||||||
(add-hook 'sh-mode-hook 'flycheck-mode)
|
(add-hook 'sh-mode-hook 'flycheck-mode)
|
||||||
@ -122,7 +124,7 @@
|
|||||||
(use-package! company-tabnine :ensure t)
|
(use-package! company-tabnine :ensure t)
|
||||||
|
|
||||||
(after! company
|
(after! company
|
||||||
(setq +lsp-company-backends '(company-tabnine :separate company-capf company-yasnippet))
|
(setq +lsp-company-backends '(company-tabnine :separate company-capf company-yasnippet company-shell))
|
||||||
(setq company-show-quick-access t)
|
(setq company-show-quick-access t)
|
||||||
(setq company-idle-delay 0)
|
(setq company-idle-delay 0)
|
||||||
)
|
)
|
||||||
@ -140,9 +142,14 @@
|
|||||||
;; (defun my/python-mode-hook ()
|
;; (defun my/python-mode-hook ()
|
||||||
;; (add-to-list 'company-backends 'company-jedi))
|
;; (add-to-list 'company-backends 'company-jedi))
|
||||||
|
|
||||||
(add-to-list 'company-backends 'company-shell)
|
|
||||||
|
|
||||||
(setq jedi:setup-keys t)
|
(setq jedi:setup-keys t)
|
||||||
(setq jedi:complete-on-dot t)
|
(setq jedi:complete-on-dot t)
|
||||||
(setq jedi:environment-virtualenv ["source", "env/bin/activate"])
|
(setq jedi:environment-virtualenv ["source", "./env/bin/activate"])
|
||||||
|
(setq jedi:key-complete ["Tab"])
|
||||||
(add-hook 'python-mode-hook 'jedi:setup)
|
(add-hook 'python-mode-hook 'jedi:setup)
|
||||||
|
|
||||||
|
(setq format-all-debug nil)
|
||||||
|
;; (global-fira-code-mode)
|
||||||
|
;; Enable fira-code-mode automatically for programming major modes
|
||||||
|
(add-hook 'prog-mode-hook 'fira-code-mode)
|
||||||
|
14
doom/init.el
14
doom/init.el
@ -34,8 +34,8 @@
|
|||||||
(emoji +unicode) ; 🙂
|
(emoji +unicode) ; 🙂
|
||||||
hl-todo ; highlight TODO/FIXME/NOTE/DEPRECATED/HACK/REVIEW
|
hl-todo ; highlight TODO/FIXME/NOTE/DEPRECATED/HACK/REVIEW
|
||||||
;;hydra
|
;;hydra
|
||||||
;;indent-guides ; highlighted indent columns
|
indent-guides ; highlighted indent columns
|
||||||
;;ligatures ; ligatures and symbols to make your code pretty again
|
(ligatures +fira) ; ligatures and symbols to make your code pretty again
|
||||||
minimap ; show a map of the code on the side
|
minimap ; show a map of the code on the side
|
||||||
modeline ; snazzy, Atom-inspired modeline, plus API
|
modeline ; snazzy, Atom-inspired modeline, plus API
|
||||||
;;nav-flash ; blink cursor line after big motions
|
;;nav-flash ; blink cursor line after big motions
|
||||||
@ -68,7 +68,7 @@
|
|||||||
:emacs
|
:emacs
|
||||||
(dired +icons) ; making dired pretty [functional]
|
(dired +icons) ; making dired pretty [functional]
|
||||||
electric ; smarter, keyword-based electric-indent
|
electric ; smarter, keyword-based electric-indent
|
||||||
;;ibuffer ; interactive buffer management
|
(ibuffer +icons) ; interactive buffer management
|
||||||
undo ; persistent, smarter undo for your inevitable mistakes
|
undo ; persistent, smarter undo for your inevitable mistakes
|
||||||
vc ; version-control and Emacs, sitting in a tree
|
vc ; version-control and Emacs, sitting in a tree
|
||||||
|
|
||||||
@ -89,7 +89,7 @@
|
|||||||
direnv
|
direnv
|
||||||
docker
|
docker
|
||||||
;;editorconfig ; let someone else argue about tabs vs spaces
|
;;editorconfig ; let someone else argue about tabs vs spaces
|
||||||
;;ein ; tame Jupyter notebooks with emacs
|
ein ; tame Jupyter notebooks with emacs
|
||||||
(eval +overlay) ; run code, run (also, repls)
|
(eval +overlay) ; run code, run (also, repls)
|
||||||
gist ; interacting with github gists
|
gist ; interacting with github gists
|
||||||
lookup ; navigate your code and its documentation
|
lookup ; navigate your code and its documentation
|
||||||
@ -112,7 +112,7 @@
|
|||||||
:lang
|
:lang
|
||||||
;;agda ; types of types of types of types...
|
;;agda ; types of types of types of types...
|
||||||
;;beancount ; mind the GAAP
|
;;beancount ; mind the GAAP
|
||||||
cc ; C > C++ == 1
|
(cc +lsp) ; C > C++ == 1
|
||||||
;;clojure ; java with a lisp
|
;;clojure ; java with a lisp
|
||||||
;;common-lisp ; if you've seen one lisp, you've seen them all
|
;;common-lisp ; if you've seen one lisp, you've seen them all
|
||||||
;;coq ; proofs-as-programs
|
;;coq ; proofs-as-programs
|
||||||
@ -137,14 +137,14 @@
|
|||||||
;;idris ; a language you can depend on
|
;;idris ; a language you can depend on
|
||||||
json ; At least it ain't XML
|
json ; At least it ain't XML
|
||||||
(java +meghanada) ; the poster child for carpal tunnel syndrome
|
(java +meghanada) ; the poster child for carpal tunnel syndrome
|
||||||
javascript ; all(hope(abandon(ye(who(enter(here))))))
|
(javascript +lsp) ; all(hope(abandon(ye(who(enter(here))))))
|
||||||
;;julia ; a better, faster MATLAB
|
;;julia ; a better, faster MATLAB
|
||||||
;;kotlin ; a better, slicker Java(Script)
|
;;kotlin ; a better, slicker Java(Script)
|
||||||
;;latex ; writing papers in Emacs has never been so fun
|
;;latex ; writing papers in Emacs has never been so fun
|
||||||
;;lean ; for folks with too much to prove
|
;;lean ; for folks with too much to prove
|
||||||
;;ledger ; be audit you can be
|
;;ledger ; be audit you can be
|
||||||
;;lua ; one-based indices? one-based indices
|
;;lua ; one-based indices? one-based indices
|
||||||
markdown ; writing docs for people to ignore
|
(markdown +grip) ; writing docs for people to ignore
|
||||||
;;nim ; python + lisp at the speed of c
|
;;nim ; python + lisp at the speed of c
|
||||||
nix ; I hereby declare "nix geht mehr!"
|
nix ; I hereby declare "nix geht mehr!"
|
||||||
;;ocaml ; an objective camel
|
;;ocaml ; an objective camel
|
||||||
|
@ -62,9 +62,10 @@
|
|||||||
|
|
||||||
(package! py-isort)
|
(package! py-isort)
|
||||||
(package! python-pytest)
|
(package! python-pytest)
|
||||||
(package! ein)
|
|
||||||
(package! python-docstring)
|
(package! python-docstring)
|
||||||
(package! py-autopep8)
|
(package! py-autopep8)
|
||||||
|
|
||||||
(package! diredfl)
|
(package! diredfl)
|
||||||
(package! peep-dired)
|
(package! peep-dired)
|
||||||
|
|
||||||
|
(package! fira-code-mode)
|
||||||
|
@ -31,8 +31,6 @@ Plug 'sheerun/vim-polyglot'
|
|||||||
|
|
||||||
Plug 'vim-scripts/SQLUtilities'
|
Plug 'vim-scripts/SQLUtilities'
|
||||||
|
|
||||||
Plug 'ryanoasis/vim-devicons'
|
|
||||||
|
|
||||||
Plug 'itchyny/vim-gitbranch'
|
Plug 'itchyny/vim-gitbranch'
|
||||||
|
|
||||||
Plug 'ap/vim-css-color'
|
Plug 'ap/vim-css-color'
|
||||||
@ -41,6 +39,8 @@ Plug 'wakatime/vim-wakatime'
|
|||||||
|
|
||||||
Plug 'itchyny/lightline.vim'
|
Plug 'itchyny/lightline.vim'
|
||||||
|
|
||||||
|
Plug 'ryanoasis/vim-devicons'
|
||||||
|
|
||||||
Plug 'prettier/vim-prettier', { 'do': 'yarn install' }
|
Plug 'prettier/vim-prettier', { 'do': 'yarn install' }
|
||||||
|
|
||||||
Plug 'jiangmiao/auto-pairs'
|
Plug 'jiangmiao/auto-pairs'
|
||||||
|
@ -18,17 +18,18 @@ export EDITOR=vim
|
|||||||
export VISUAL=vim
|
export VISUAL=vim
|
||||||
|
|
||||||
if [ -f ~/.bash_aliases ]; then
|
if [ -f ~/.bash_aliases ]; then
|
||||||
. ~/.bash_aliases
|
. $HOME/.bash_aliases
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -f ~/.aliases ]; then
|
if [ -f ~/.aliases ]; then
|
||||||
. ~/.aliases
|
. $HOME/.aliases
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -f ~/Work/.aliases ]; then
|
if [ -f ~/Work/.aliases ]; then
|
||||||
. ~/Work/.aliases
|
. $HOME/Work/.aliases
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
source ~/.bash_aliases
|
||||||
|
|
||||||
#POWERLEVEL9K_MODE='nerdfont'
|
#POWERLEVEL9K_MODE='nerdfont'
|
||||||
#POWERLEVEL9K_MODE='awesome-fontconfig'
|
#POWERLEVEL9K_MODE='awesome-fontconfig'
|
||||||
@ -256,8 +257,11 @@ source $(dirname $(gem which colorls))/tab_complete.sh
|
|||||||
# ibus-daemon -drx
|
# ibus-daemon -drx
|
||||||
|
|
||||||
export VISUAL=vim
|
export VISUAL=vim
|
||||||
|
export XDG_CONFIG_HOME="$HOME/.config"
|
||||||
|
export XDG_CACHE_DIR="$HOME/.cache"
|
||||||
export SSH_AUTH_SOCK="$XDG_RUNTIME_DIR/ssh-agent.socket"
|
export SSH_AUTH_SOCK="$XDG_RUNTIME_DIR/ssh-agent.socket"
|
||||||
|
|
||||||
|
|
||||||
# source the Xmodmap file to get custom keybindings
|
# source the Xmodmap file to get custom keybindings
|
||||||
# [[ -f ~/.Xmodmap ]] && xmodmap ~/.Xmodmap
|
# [[ -f ~/.Xmodmap ]] && xmodmap ~/.Xmodmap
|
||||||
|
|
||||||
|
199
mpv/input.conf
Normal file
199
mpv/input.conf
Normal file
@ -0,0 +1,199 @@
|
|||||||
|
# mpv keybindings
|
||||||
|
#
|
||||||
|
# Location of user-defined bindings: ~/.config/mpv/input.conf
|
||||||
|
#
|
||||||
|
# Lines starting with # are comments. Use SHARP to assign the # key.
|
||||||
|
# Copy this file and uncomment and edit the bindings you want to change.
|
||||||
|
#
|
||||||
|
# List of commands and further details: DOCS/man/input.rst
|
||||||
|
# List of special keys: --input-keylist
|
||||||
|
# Keybindings testing mode: mpv --input-test --force-window --idle
|
||||||
|
#
|
||||||
|
# Use 'ignore' to unbind a key fully (e.g. 'ctrl+a ignore').
|
||||||
|
#
|
||||||
|
# Strings need to be quoted and escaped:
|
||||||
|
# KEY show-text "This is a single backslash: \\ and a quote: \" !"
|
||||||
|
#
|
||||||
|
# You can use modifier-key combinations like Shift+Left or Ctrl+Alt+x with
|
||||||
|
# the modifiers Shift, Ctrl, Alt and Meta (may not work on the terminal).
|
||||||
|
#
|
||||||
|
# The default keybindings are hardcoded into the mpv binary.
|
||||||
|
# You can disable them completely with: --no-input-default-bindings
|
||||||
|
|
||||||
|
# Developer note:
|
||||||
|
# On compilation, this file is baked into the mpv binary, and all lines are
|
||||||
|
# uncommented (unless '#' is followed by a space) - thus this file defines the
|
||||||
|
# default key bindings.
|
||||||
|
|
||||||
|
# If this is enabled, treat all the following bindings as default.
|
||||||
|
#default-bindings start
|
||||||
|
|
||||||
|
#MBTN_LEFT ignore # don't do anything
|
||||||
|
#MBTN_LEFT_DBL cycle fullscreen # toggle fullscreen on/off
|
||||||
|
#MBTN_RIGHT cycle pause # toggle pause on/off
|
||||||
|
#MBTN_BACK playlist-prev
|
||||||
|
#MBTN_FORWARD playlist-next
|
||||||
|
|
||||||
|
# Mouse wheels, touchpad or other input devices that have axes
|
||||||
|
# if the input devices supports precise scrolling it will also scale the
|
||||||
|
# numeric value accordingly
|
||||||
|
#WHEEL_UP seek 10
|
||||||
|
#WHEEL_DOWN seek -10
|
||||||
|
#WHEEL_LEFT add volume -2
|
||||||
|
#WHEEL_RIGHT add volume 2
|
||||||
|
|
||||||
|
## Seek units are in seconds, but note that these are limited by keyframes
|
||||||
|
#RIGHT seek 5
|
||||||
|
#LEFT seek -5
|
||||||
|
#UP seek 60
|
||||||
|
#DOWN seek -60
|
||||||
|
# Do smaller, always exact (non-keyframe-limited), seeks with shift.
|
||||||
|
# Don't show them on the OSD (no-osd).
|
||||||
|
#Shift+RIGHT no-osd seek 1 exact
|
||||||
|
#Shift+LEFT no-osd seek -1 exact
|
||||||
|
#Shift+UP no-osd seek 5 exact
|
||||||
|
#Shift+DOWN no-osd seek -5 exact
|
||||||
|
# Skip to previous/next subtitle (subject to some restrictions; see manpage)
|
||||||
|
#Ctrl+LEFT no-osd sub-seek -1
|
||||||
|
#Ctrl+RIGHT no-osd sub-seek 1
|
||||||
|
# Adjust timing to previous/next subtitle
|
||||||
|
#Ctrl+Shift+LEFT sub-step -1
|
||||||
|
#Ctrl+Shift+RIGHT sub-step 1
|
||||||
|
# Move video rectangle
|
||||||
|
#Alt+left add video-pan-x 0.1
|
||||||
|
#Alt+right add video-pan-x -0.1
|
||||||
|
#Alt+up add video-pan-y 0.1
|
||||||
|
#Alt+down add video-pan-y -0.1
|
||||||
|
# Zoom/unzoom video
|
||||||
|
#Alt++ add video-zoom 0.1
|
||||||
|
#Alt+- add video-zoom -0.1
|
||||||
|
# Reset video zoom/pan settings
|
||||||
|
#Alt+BS set video-zoom 0 ; set video-pan-x 0 ; set video-pan-y 0
|
||||||
|
#PGUP add chapter 1 # skip to next chapter
|
||||||
|
#PGDWN add chapter -1 # skip to previous chapter
|
||||||
|
#Shift+PGUP seek 600
|
||||||
|
#Shift+PGDWN seek -600
|
||||||
|
#[ multiply speed 1/1.1 # scale playback speed
|
||||||
|
#] multiply speed 1.1
|
||||||
|
#{ multiply speed 0.5
|
||||||
|
#} multiply speed 2.0
|
||||||
|
#BS set speed 1.0 # reset speed to normal
|
||||||
|
#Shift+BS revert-seek # undo previous (or marked) seek
|
||||||
|
#Shift+Ctrl+BS revert-seek mark # mark position for revert-seek
|
||||||
|
#q quit
|
||||||
|
#Q quit-watch-later
|
||||||
|
#q {encode} quit 4
|
||||||
|
#ESC set fullscreen no
|
||||||
|
#ESC {encode} quit 4
|
||||||
|
#p cycle pause # toggle pause/playback mode
|
||||||
|
#. frame-step # advance one frame and pause
|
||||||
|
#, frame-back-step # go back by one frame and pause
|
||||||
|
#SPACE cycle pause
|
||||||
|
#> playlist-next # skip to next file
|
||||||
|
#ENTER playlist-next # skip to next file
|
||||||
|
#< playlist-prev # skip to previous file
|
||||||
|
#O no-osd cycle-values osd-level 3 1 # cycle through OSD mode
|
||||||
|
#o show-progress
|
||||||
|
#P show-progress
|
||||||
|
#i script-binding stats/display-stats
|
||||||
|
#I script-binding stats/display-stats-toggle
|
||||||
|
#` script-binding console/enable
|
||||||
|
#z add sub-delay -0.1 # subtract 100 ms delay from subs
|
||||||
|
#Z add sub-delay +0.1 # add
|
||||||
|
#x add sub-delay +0.1 # same as previous binding (discouraged)
|
||||||
|
#ctrl++ add audio-delay 0.100 # this changes audio/video sync
|
||||||
|
#ctrl+- add audio-delay -0.100
|
||||||
|
#Shift+g add sub-scale +0.1 # increase subtitle font size
|
||||||
|
#Shift+f add sub-scale -0.1 # decrease subtitle font size
|
||||||
|
#9 add volume -2
|
||||||
|
#/ add volume -2
|
||||||
|
#0 add volume 2
|
||||||
|
#* add volume 2
|
||||||
|
#m cycle mute
|
||||||
|
#1 add contrast -1
|
||||||
|
#2 add contrast 1
|
||||||
|
#3 add brightness -1
|
||||||
|
#4 add brightness 1
|
||||||
|
#5 add gamma -1
|
||||||
|
#6 add gamma 1
|
||||||
|
#7 add saturation -1
|
||||||
|
#8 add saturation 1
|
||||||
|
#Alt+0 set window-scale 0.5
|
||||||
|
#Alt+1 set window-scale 1.0
|
||||||
|
#Alt+2 set window-scale 2.0
|
||||||
|
# toggle deinterlacer (automatically inserts or removes required filter)
|
||||||
|
#d cycle deinterlace
|
||||||
|
#r add sub-pos -1 # move subtitles up
|
||||||
|
#R add sub-pos +1 # down
|
||||||
|
#t add sub-pos +1 # same as previous binding (discouraged)
|
||||||
|
#v cycle sub-visibility
|
||||||
|
# stretch SSA/ASS subtitles with anamorphic videos to match historical
|
||||||
|
#V cycle sub-ass-vsfilter-aspect-compat
|
||||||
|
# switch between applying no style overrides to SSA/ASS subtitles, and
|
||||||
|
# overriding them almost completely with the normal subtitle style
|
||||||
|
#u cycle-values sub-ass-override "force" "no"
|
||||||
|
#j cycle sub # cycle through subtitles
|
||||||
|
#J cycle sub down # ...backwards
|
||||||
|
#SHARP cycle audio # switch audio streams
|
||||||
|
#_ cycle video
|
||||||
|
#T cycle ontop # toggle video window ontop of other windows
|
||||||
|
#f cycle fullscreen # toggle fullscreen
|
||||||
|
#s screenshot # take a screenshot
|
||||||
|
#S screenshot video # ...without subtitles
|
||||||
|
#Ctrl+s screenshot window # ...with subtitles and OSD, and scaled
|
||||||
|
#Alt+s screenshot each-frame # automatically screenshot every frame
|
||||||
|
#w add panscan -0.1 # zoom out with -panscan 0 -fs
|
||||||
|
#W add panscan +0.1 # in
|
||||||
|
#e add panscan +0.1 # same as previous binding (discouraged)
|
||||||
|
# cycle video aspect ratios; "-1" is the container aspect
|
||||||
|
#A cycle-values video-aspect-override "16:9" "4:3" "2.35:1" "-1"
|
||||||
|
#POWER quit
|
||||||
|
#PLAY cycle pause
|
||||||
|
#PAUSE cycle pause
|
||||||
|
#PLAYPAUSE cycle pause
|
||||||
|
#PLAYONLY set pause no
|
||||||
|
#PAUSEONLY set pause yes
|
||||||
|
#STOP quit
|
||||||
|
#FORWARD seek 60
|
||||||
|
#REWIND seek -60
|
||||||
|
#NEXT playlist-next
|
||||||
|
#PREV playlist-prev
|
||||||
|
#VOLUME_UP add volume 2
|
||||||
|
#VOLUME_DOWN add volume -2
|
||||||
|
#MUTE cycle mute
|
||||||
|
#CLOSE_WIN quit
|
||||||
|
#CLOSE_WIN {encode} quit 4
|
||||||
|
#ctrl+w quit
|
||||||
|
#E cycle edition # next edition
|
||||||
|
#l ab-loop # Set/clear A-B loop points
|
||||||
|
#L cycle-values loop-file "inf" "no" # toggle infinite looping
|
||||||
|
#ctrl+c quit 4
|
||||||
|
#DEL script-binding osc/visibility # cycle OSC display
|
||||||
|
#ctrl+h cycle-values hwdec "auto" "no" # cycle hardware decoding
|
||||||
|
#F8 show_text ${playlist} # show playlist
|
||||||
|
#F9 show_text ${track-list} # show list of audio/sub streams
|
||||||
|
|
||||||
|
#
|
||||||
|
# Legacy bindings (may or may not be removed in the future)
|
||||||
|
#
|
||||||
|
#! add chapter -1 # skip to previous chapter
|
||||||
|
#@ add chapter 1 # next
|
||||||
|
|
||||||
|
#
|
||||||
|
# Not assigned by default
|
||||||
|
# (not an exhaustive list of unbound commands)
|
||||||
|
#
|
||||||
|
|
||||||
|
# ? cycle angle # switch DVD/Bluray angle
|
||||||
|
# ? cycle sub-forced-only # toggle DVD forced subs
|
||||||
|
# ? cycle program # cycle transport stream programs
|
||||||
|
# ? stop # stop playback (quit or enter idle mode)
|
||||||
|
n cycle_values af loudnorm=I=-30 loudnorm=I=-15 anull
|
||||||
|
CTRL+1 no-osd change-list glsl-shaders set "~~/shaders/Anime4K_Clamp_Highlights.glsl:~~/shaders/Anime4K_Restore_CNN_VL.glsl:~~/shaders/Anime4K_Upscale_CNN_x2_VL.glsl:~~/shaders/Anime4K_AutoDownscalePre_x2.glsl:~~/shaders/Anime4K_AutoDownscalePre_x4.glsl:~~/shaders/Anime4K_Upscale_CNN_x2_M.glsl"; show-text "Anime4K: Mode A (HQ)"
|
||||||
|
CTRL+2 no-osd change-list glsl-shaders set "~~/shaders/Anime4K_Clamp_Highlights.glsl:~~/shaders/Anime4K_Restore_CNN_Soft_VL.glsl:~~/shaders/Anime4K_Upscale_CNN_x2_VL.glsl:~~/shaders/Anime4K_AutoDownscalePre_x2.glsl:~~/shaders/Anime4K_AutoDownscalePre_x4.glsl:~~/shaders/Anime4K_Upscale_CNN_x2_M.glsl"; show-text "Anime4K: Mode B (HQ)"
|
||||||
|
CTRL+3 no-osd change-list glsl-shaders set "~~/shaders/Anime4K_Clamp_Highlights.glsl:~~/shaders/Anime4K_Upscale_Denoise_CNN_x2_VL.glsl:~~/shaders/Anime4K_AutoDownscalePre_x2.glsl:~~/shaders/Anime4K_AutoDownscalePre_x4.glsl:~~/shaders/Anime4K_Upscale_CNN_x2_M.glsl"; show-text "Anime4K: Mode C (HQ)"
|
||||||
|
CTRL+4 no-osd change-list glsl-shaders set "~~/shaders/Anime4K_Clamp_Highlights.glsl:~~/shaders/Anime4K_Restore_CNN_VL.glsl:~~/shaders/Anime4K_Upscale_CNN_x2_VL.glsl:~~/shaders/Anime4K_Restore_CNN_M.glsl:~~/shaders/Anime4K_AutoDownscalePre_x2.glsl:~~/shaders/Anime4K_AutoDownscalePre_x4.glsl:~~/shaders/Anime4K_Upscale_CNN_x2_M.glsl"; show-text "Anime4K: Mode A+A (HQ)"
|
||||||
|
CTRL+5 no-osd change-list glsl-shaders set "~~/shaders/Anime4K_Clamp_Highlights.glsl:~~/shaders/Anime4K_Restore_CNN_Soft_VL.glsl:~~/shaders/Anime4K_Upscale_CNN_x2_VL.glsl:~~/shaders/Anime4K_AutoDownscalePre_x2.glsl:~~/shaders/Anime4K_AutoDownscalePre_x4.glsl:~~/shaders/Anime4K_Restore_CNN_Soft_M.glsl:~~/shaders/Anime4K_Upscale_CNN_x2_M.glsl"; show-text "Anime4K: Mode B+B (HQ)"
|
||||||
|
CTRL+6 no-osd change-list glsl-shaders set "~~/shaders/Anime4K_Clamp_Highlights.glsl:~~/shaders/Anime4K_Upscale_Denoise_CNN_x2_VL.glsl:~~/shaders/Anime4K_AutoDownscalePre_x2.glsl:~~/shaders/Anime4K_AutoDownscalePre_x4.glsl:~~/shaders/Anime4K_Restore_CNN_M.glsl:~~/shaders/Anime4K_Upscale_CNN_x2_M.glsl"; show-text "Anime4K: Mode C+A (HQ)"
|
||||||
|
|
||||||
|
CTRL+0 no-osd change-list glsl-shaders clr ""; show-text "GLSL shaders cleared"
|
142
mpv/mpv.conf
Normal file
142
mpv/mpv.conf
Normal file
@ -0,0 +1,142 @@
|
|||||||
|
#
|
||||||
|
# Example mpv configuration file
|
||||||
|
#
|
||||||
|
# Warning:
|
||||||
|
#
|
||||||
|
# The commented example options usually do _not_ set the default values. Call
|
||||||
|
# mpv with --list-options to see the default values for most options. There is
|
||||||
|
# no builtin or example mpv.conf with all the defaults.
|
||||||
|
#
|
||||||
|
#
|
||||||
|
# Configuration files are read system-wide from /usr/local/etc/mpv.conf
|
||||||
|
# and per-user from ~/.config/mpv/mpv.conf, where per-user settings override
|
||||||
|
# system-wide settings, all of which are overridden by the command line.
|
||||||
|
#
|
||||||
|
# Configuration file settings and the command line options use the same
|
||||||
|
# underlying mechanisms. Most options can be put into the configuration file
|
||||||
|
# by dropping the preceding '--'. See the man page for a complete list of
|
||||||
|
# options.
|
||||||
|
#
|
||||||
|
# Lines starting with '#' are comments and are ignored.
|
||||||
|
#
|
||||||
|
# See the CONFIGURATION FILES section in the man page
|
||||||
|
# for a detailed description of the syntax.
|
||||||
|
#
|
||||||
|
# Profiles should be placed at the bottom of the configuration file to ensure
|
||||||
|
# that settings wanted as defaults are not restricted to specific profiles.
|
||||||
|
|
||||||
|
##################
|
||||||
|
# video settings #
|
||||||
|
##################
|
||||||
|
|
||||||
|
# Start in fullscreen mode by default.
|
||||||
|
#fs=yes
|
||||||
|
|
||||||
|
# force starting with centered window
|
||||||
|
#geometry=50%:50%
|
||||||
|
|
||||||
|
# don't allow a new window to have a size larger than 90% of the screen size
|
||||||
|
#autofit-larger=90%x90%
|
||||||
|
|
||||||
|
# Do not close the window on exit.
|
||||||
|
#keep-open=yes
|
||||||
|
|
||||||
|
# Do not wait with showing the video window until it has loaded. (This will
|
||||||
|
# resize the window once video is loaded. Also always shows a window with
|
||||||
|
# audio.)
|
||||||
|
#force-window=immediate
|
||||||
|
|
||||||
|
# Disable the On Screen Controller (OSC).
|
||||||
|
#osc=no
|
||||||
|
|
||||||
|
# Keep the player window on top of all other windows.
|
||||||
|
#ontop=yes
|
||||||
|
|
||||||
|
# Specify high quality video rendering preset (for --vo=gpu only)
|
||||||
|
# Can cause performance problems with some drivers and GPUs.
|
||||||
|
profile=gpu-hq
|
||||||
|
|
||||||
|
# Force video to lock on the display's refresh rate, and change video and audio
|
||||||
|
# speed to some degree to ensure synchronous playback - can cause problems
|
||||||
|
# with some drivers and desktop environments.
|
||||||
|
#video-sync=display-resample
|
||||||
|
|
||||||
|
# Enable hardware decoding if available. Often, this does not work with all
|
||||||
|
# video outputs, but should work well with default settings on most systems.
|
||||||
|
# If performance or energy usage is an issue, forcing the vdpau or vaapi VOs
|
||||||
|
# may or may not help.
|
||||||
|
#hwdec=auto
|
||||||
|
|
||||||
|
##################
|
||||||
|
# audio settings #
|
||||||
|
##################
|
||||||
|
|
||||||
|
# Specify default audio device. You can list devices with: --audio-device=help
|
||||||
|
# The option takes the device string (the stuff between the '...').
|
||||||
|
#audio-device=alsa/default
|
||||||
|
|
||||||
|
# Do not filter audio to keep pitch when changing playback speed.
|
||||||
|
#audio-pitch-correction=no
|
||||||
|
|
||||||
|
# Output 5.1 audio natively, and upmix/downmix audio with a different format.
|
||||||
|
#audio-channels=5.1
|
||||||
|
# Disable any automatic remix, _if_ the audio output accepts the audio format.
|
||||||
|
# of the currently played file. See caveats mentioned in the manpage.
|
||||||
|
# (The default is "auto-safe", see manpage.)
|
||||||
|
#audio-channels=auto
|
||||||
|
|
||||||
|
##################
|
||||||
|
# other settings #
|
||||||
|
##################
|
||||||
|
|
||||||
|
# Pretend to be a web browser. Might fix playback with some streaming sites,
|
||||||
|
# but also will break with shoutcast streams.
|
||||||
|
#user-agent="Mozilla/5.0"
|
||||||
|
|
||||||
|
# cache settings
|
||||||
|
#
|
||||||
|
# Use a large seekable RAM cache even for local input.
|
||||||
|
#cache=yes
|
||||||
|
#
|
||||||
|
# Use extra large RAM cache (needs cache=yes to make it useful).
|
||||||
|
#demuxer-max-bytes=500M
|
||||||
|
#demuxer-max-back-bytes=100M
|
||||||
|
#
|
||||||
|
# Disable the behavior that the player will pause if the cache goes below a
|
||||||
|
# certain fill size.
|
||||||
|
#cache-pause=no
|
||||||
|
#
|
||||||
|
# Store cache payload on the hard disk instead of in RAM. (This may negatively
|
||||||
|
# impact performance unless used for slow input such as network.)
|
||||||
|
#cache-dir=~/.cache/
|
||||||
|
#cache-on-disk=yes
|
||||||
|
|
||||||
|
# Display English subtitles if available.
|
||||||
|
#slang=en
|
||||||
|
|
||||||
|
# Play Finnish audio if available, fall back to English otherwise.
|
||||||
|
#alang=fi,en
|
||||||
|
|
||||||
|
# Change subtitle encoding. For Arabic subtitles use 'cp1256'.
|
||||||
|
# If the file seems to be valid UTF-8, prefer UTF-8.
|
||||||
|
# (You can add '+' in front of the codepage to force it.)
|
||||||
|
#sub-codepage=cp1256
|
||||||
|
|
||||||
|
# You can also include other configuration files.
|
||||||
|
#include=/path/to/the/file/you/want/to/include
|
||||||
|
|
||||||
|
############
|
||||||
|
# Profiles #
|
||||||
|
############
|
||||||
|
|
||||||
|
# The options declared as part of profiles override global default settings,
|
||||||
|
# but only take effect when the profile is active.
|
||||||
|
|
||||||
|
# The following profile can be enabled on the command line with: --profile=eye-cancer
|
||||||
|
|
||||||
|
#[eye-cancer]
|
||||||
|
#sharpen=5
|
||||||
|
|
||||||
|
volume=60
|
||||||
|
audio-spdif=ac3,eac3,dts-hd,truehd
|
||||||
|
glsl-shaders="~~/shaders/Anime4K_Clamp_Highlights.glsl:~~/shaders/Anime4K_Restore_CNN_VL.glsl:~~/shaders/Anime4K_Upscale_CNN_x2_VL.glsl:~~/shaders/Anime4K_AutoDownscalePre_x2.glsl:~~/shaders/Anime4K_AutoDownscalePre_x4.glsl:~~/shaders/Anime4K_Upscale_CNN_x2_M.glsl"
|
151
mpv/scripts/skip-intro.lua
Normal file
151
mpv/scripts/skip-intro.lua
Normal file
@ -0,0 +1,151 @@
|
|||||||
|
MAX_SPEED = 100
|
||||||
|
NORMAL_SPEED = 1
|
||||||
|
ONE_SECOND = 1
|
||||||
|
skip = false
|
||||||
|
-- Max noise (dB) and min silence duration (s) to trigger
|
||||||
|
opts = { quietness = -45, duration = 0.85 }
|
||||||
|
|
||||||
|
|
||||||
|
function setOptions()
|
||||||
|
local options = require 'mp.options'
|
||||||
|
options.read_options(opts)
|
||||||
|
end
|
||||||
|
|
||||||
|
function setTime(time)
|
||||||
|
mp.set_property_number('time-pos', time)
|
||||||
|
end
|
||||||
|
|
||||||
|
function getTime()
|
||||||
|
return mp.get_property_native('time-pos')
|
||||||
|
end
|
||||||
|
|
||||||
|
function setSpeed(speed)
|
||||||
|
mp.set_property('speed', speed)
|
||||||
|
end
|
||||||
|
|
||||||
|
function setPause(state)
|
||||||
|
mp.set_property_bool('pause', state)
|
||||||
|
end
|
||||||
|
|
||||||
|
function setMute(state)
|
||||||
|
mp.set_property_bool('mute', state)
|
||||||
|
end
|
||||||
|
|
||||||
|
function initAudioFilter()
|
||||||
|
local af_table = mp.get_property_native('af')
|
||||||
|
af_table[#af_table + 1] = {
|
||||||
|
enabled = false,
|
||||||
|
label = 'silencedetect',
|
||||||
|
name = 'lavfi',
|
||||||
|
params = { graph = 'silencedetect=noise=' .. opts.quietness .. 'dB:d=' .. opts.duration }
|
||||||
|
}
|
||||||
|
mp.set_property_native('af', af_table)
|
||||||
|
end
|
||||||
|
|
||||||
|
function initVideoFilter()
|
||||||
|
local vf_table = mp.get_property_native('vf')
|
||||||
|
vf_table[#vf_table + 1] = {
|
||||||
|
enabled = false,
|
||||||
|
label = 'blackout',
|
||||||
|
name = 'lavfi',
|
||||||
|
params = { graph = '' }
|
||||||
|
}
|
||||||
|
mp.set_property_native('vf', vf_table)
|
||||||
|
end
|
||||||
|
|
||||||
|
function setAudioFilter(state)
|
||||||
|
local af_table = mp.get_property_native('af')
|
||||||
|
if #af_table > 0 then
|
||||||
|
for i = #af_table, 1, -1 do
|
||||||
|
if af_table[i].label == 'silencedetect' then
|
||||||
|
af_table[i].enabled = state
|
||||||
|
mp.set_property_native('af', af_table)
|
||||||
|
break
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
function dim(state)
|
||||||
|
local dim = { width = 0, height = 0 }
|
||||||
|
if state == true then
|
||||||
|
dim.width = mp.get_property_native('width')
|
||||||
|
dim.height = mp.get_property_native('height')
|
||||||
|
end
|
||||||
|
return dim.width .. 'x' .. dim.height
|
||||||
|
end
|
||||||
|
|
||||||
|
function setVideoFilter(state)
|
||||||
|
local vf_table = mp.get_property_native('vf')
|
||||||
|
if #vf_table > 0 then
|
||||||
|
for i = #vf_table, 1, -1 do
|
||||||
|
if vf_table[i].label == 'blackout' then
|
||||||
|
vf_table[i].enabled = state
|
||||||
|
vf_table[i].params = { graph = 'nullsink,color=c=black:s=' .. dim(state) }
|
||||||
|
mp.set_property_native('vf', vf_table)
|
||||||
|
break
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
function silenceTrigger(name, value)
|
||||||
|
if value == '{}' or value == nil then
|
||||||
|
return
|
||||||
|
end
|
||||||
|
|
||||||
|
local skipTime = tonumber(string.match(value, '%d+%.?%d+'))
|
||||||
|
local currTime = getTime()
|
||||||
|
|
||||||
|
if skipTime == nil or skipTime < currTime + ONE_SECOND then
|
||||||
|
return
|
||||||
|
end
|
||||||
|
|
||||||
|
stopSkip()
|
||||||
|
setTime(skipTime)
|
||||||
|
skip = false
|
||||||
|
end
|
||||||
|
|
||||||
|
function setAudioTrigger(state)
|
||||||
|
if state == true then
|
||||||
|
mp.observe_property('af-metadata/silencedetect', 'string', silenceTrigger)
|
||||||
|
else
|
||||||
|
mp.unobserve_property(silenceTrigger)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
function startSkip()
|
||||||
|
startTime = getTime()
|
||||||
|
-- This audio filter detects moments of silence
|
||||||
|
setAudioFilter(true)
|
||||||
|
-- This video filter makes fast-forward faster
|
||||||
|
setVideoFilter(true)
|
||||||
|
setAudioTrigger(true)
|
||||||
|
setPause(false)
|
||||||
|
setMute(true)
|
||||||
|
setSpeed(MAX_SPEED)
|
||||||
|
end
|
||||||
|
|
||||||
|
function stopSkip()
|
||||||
|
setAudioFilter(false)
|
||||||
|
setVideoFilter(false)
|
||||||
|
setAudioTrigger(false)
|
||||||
|
setMute(false)
|
||||||
|
setSpeed(NORMAL_SPEED)
|
||||||
|
end
|
||||||
|
|
||||||
|
function keypress()
|
||||||
|
skip = not skip
|
||||||
|
if skip then
|
||||||
|
startSkip()
|
||||||
|
else
|
||||||
|
stopSkip()
|
||||||
|
setTime(startTime)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
setOptions(opts)
|
||||||
|
initAudioFilter()
|
||||||
|
initVideoFilter()
|
||||||
|
|
||||||
|
mp.add_key_binding('Tab', 'skip-key', keypress)
|
@ -9,7 +9,8 @@ label-background = ${color.shade4}
|
|||||||
# blue
|
# blue
|
||||||
# label-foreground = #56a7b5
|
# label-foreground = #56a7b5
|
||||||
# orange
|
# orange
|
||||||
label-foreground = #e5c07b
|
# label-foreground = #e5c07b
|
||||||
|
label-foreground = #d19a66
|
||||||
# time = %r
|
# time = %r
|
||||||
# time = %l:%M:%S %p
|
# time = %l:%M:%S %p
|
||||||
time = %l:%M %p
|
time = %l:%M %p
|
||||||
|
@ -4,6 +4,6 @@ type = custom/script
|
|||||||
interval = 100
|
interval = 100
|
||||||
label-font = 4
|
label-font = 4
|
||||||
# format-foreground = #fc8353
|
# format-foreground = #fc8353
|
||||||
format-foreground = #c578dd
|
format-foreground = #c678dd
|
||||||
format-padding = 1
|
format-padding = 1
|
||||||
exec = python ~/SudacodeRice/scripts/date.py
|
exec = python ~/SudacodeRice/scripts/date.py
|
||||||
|
@ -4,7 +4,7 @@ type = custom/text
|
|||||||
content =
|
content =
|
||||||
# alt icons =
|
# alt icons =
|
||||||
content-padding = 3
|
content-padding = 3
|
||||||
content-background = ${color.shade3}
|
content-background = ${color.shade4}
|
||||||
content-foreground = #2878af
|
content-foreground = #2878af
|
||||||
click-right = $HOME/SudacodeRice/scripts/menu_full
|
click-right = $HOME/SudacodeRice/scripts/menu_full
|
||||||
click-left = $HOME/SudacodeRice/scripts/menu_small
|
click-left = $HOME/SudacodeRice/scripts/menu_small
|
||||||
|
@ -2,7 +2,8 @@
|
|||||||
type = custom/text
|
type = custom/text
|
||||||
content =
|
content =
|
||||||
content-padding = 4
|
content-padding = 4
|
||||||
content-background = ${color.shade3}
|
content-background = ${color.shade4}
|
||||||
content-foreground = #D85458
|
# content-foreground = #D85458
|
||||||
|
content-foreground = #e06c75
|
||||||
click-left = ~/SudacodeRice/scripts/powermenu
|
click-left = ~/SudacodeRice/scripts/powermenu
|
||||||
click-right = ~/SudacodeRice/scripts/powermenu
|
click-right = ~/SudacodeRice/scripts/powermenu
|
||||||
|
@ -9,11 +9,13 @@ format-volume = <ramp-volume> <label-volume>
|
|||||||
format-volume-padding = 1
|
format-volume-padding = 1
|
||||||
# format-volume-foreground = #56a7b5
|
# format-volume-foreground = #56a7b5
|
||||||
# format-volume-foreground = #c578dd
|
# format-volume-foreground = #c578dd
|
||||||
format-volume-foreground = #a8d385
|
# format-volume-foreground = #a8d385
|
||||||
|
format-volume-foreground = #98c379
|
||||||
label-volume = %percentage%%
|
label-volume = %percentage%%
|
||||||
label-muted = "婢"
|
label-muted = "婢"
|
||||||
label-muted-padding = 1
|
label-muted-padding = 1
|
||||||
label-muted-foreground = #F85522
|
# label-muted-foreground = #F85522
|
||||||
|
label-muted-foreground = #e06c75
|
||||||
|
|
||||||
ramp-volume-0 = 奄
|
ramp-volume-0 = 奄
|
||||||
ramp-volume-1 = 奄
|
ramp-volume-1 = 奄
|
||||||
|
@ -20,7 +20,11 @@ label-active-underline = #99b679
|
|||||||
label-urgent-padding = 1
|
label-urgent-padding = 1
|
||||||
label-occupied-padding = 1
|
label-occupied-padding = 1
|
||||||
|
|
||||||
label-empty-foreground = #55aebb
|
# label-empty-foreground = #55aebb
|
||||||
label-active-foreground = #99b679
|
# label-active-foreground = #99b679
|
||||||
|
# label-occupied-foreground = #55aebb
|
||||||
|
|
||||||
|
label-empty-foreground = #61afef
|
||||||
|
label-active-foreground = #98c379
|
||||||
|
label-occupied-foreground = #61afef
|
||||||
label-urgent-foreground = ${color.urgent}
|
label-urgent-foreground = ${color.urgent}
|
||||||
label-occupied-foreground = #55aebb
|
|
||||||
|
20
scripts/rofi/rofi-rdp.sh
Executable file
20
scripts/rofi/rofi-rdp.sh
Executable file
@ -0,0 +1,20 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
ARGS=(
|
||||||
|
"workpc - wfs-h1lbc42.hankeyinvestments.com"
|
||||||
|
"jumpbox - wfsmsvpjumpbox1"
|
||||||
|
"rptbox2 - wfsmsvsrptbox2.westlakefinancial.com"
|
||||||
|
"Quit"
|
||||||
|
)
|
||||||
|
|
||||||
|
CHOICE=$(printf "%s\n" "${ARGS[@]}" | rofi -config ~/SudacodeRice/rofi/rofidmenu.rasi -dmenu -l 4 -i -p "RDP Helper")
|
||||||
|
|
||||||
|
if [[ "$CHOICE" == "Quit" ]]; then
|
||||||
|
echo "BYE" && exit 0
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ "$CHOICE" ]; then
|
||||||
|
TARGET=$(printf "%s\n" "${CHOICE}" | awk '{print $1}')
|
||||||
|
printf "%s\n" "TARGET: $TARGET"
|
||||||
|
~/Work/scripts/remote "$TARGET" || exit 1
|
||||||
|
fi
|
5
scripts/rofi/rofi-search.sh
Executable file
5
scripts/rofi/rofi-search.sh
Executable file
@ -0,0 +1,5 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
export GOOGLE_ARGS='["--count", 7]'
|
||||||
|
export ROFI_SEARCH='googler'
|
||||||
|
rofi -modi blocks -blocks-wrap /usr/bin/rofi-search -show blocks -lines 7 -eh 4 -kb-custom-1 'Control+y' -theme ~/SudacodeRice/rofi/rofidmenu.rasi &
|
Loading…
Reference in New Issue
Block a user