From f51ff079864084971769b3120e30e6eb43b0a033 Mon Sep 17 00:00:00 2001 From: Chris Cochrun Date: Sat, 14 Aug 2021 09:43:52 -0500 Subject: [PATCH] A lot of awesome changes and trying to use kmonad --- awesome/init.fnl | 18 +++- awesome/keybindings.fnl | 6 +- awesome/rules.fnl | 32 +++++- awesome/theme.lua | 6 +- .../chrome/chrome/theme_color_variables.css | 102 +++++++++--------- fish/config.fish | 6 +- fish/fish_variables | 5 +- kmonad/config.kbd | 2 +- kmonad/config.org | 4 +- lolcate/default/config.toml | 2 + nyxt/init.lisp | 19 ++++ picom.conf | 16 +-- qutebrowser/autoconfig.yml | 2 + qutebrowser/qsettings/QtProject.conf | 4 +- qutebrowser/quickmarks | 1 + rofi/config.rasi | 2 +- scripts/drvid | 46 +++++++- surfingkeys/conf.js | 53 +++++++++ 18 files changed, 246 insertions(+), 80 deletions(-) create mode 100644 surfingkeys/conf.js diff --git a/awesome/init.fnl b/awesome/init.fnl index a327a91..2e60cdb 100644 --- a/awesome/init.fnl +++ b/awesome/init.fnl @@ -79,7 +79,7 @@ (if (= "syl\n" stdout) (global laptop true) (global laptop false)))) -(local laptop true) +(local laptop false) ;; Table of layouts to cover with awful.layout.inc, order matters. (set awful.layout.layouts [ @@ -238,8 +238,9 @@ :id "icon_role" :widget wibox.widget.imagebox } - :margins 2 + :margins 6 :widget wibox.container.margin + :layout wibox.layout.align.horizontal } 2 { :id "text_role" @@ -250,6 +251,7 @@ :left (dpi 10) :right (dpi 10) :widget wibox.container.margin + :layout wibox.layout.align.horizontal } :id "background_role" :widget wibox.container.background @@ -478,9 +480,9 @@ :stretch false :type "dock" :shape gears.shape.rounded_bar - :bg beautiful.transparent + :bg beautiful.bg_normal :fg beautiful.fg_normal - :opacity 0.65 + :opacity 0.95 :screen s })) (: s.mywibox :struts { :bottom (dpi 45) }) @@ -594,6 +596,12 @@ (awful.client.focus.byidx 1) (: c :activate []))) +(client.connect_signal "manage" + (fn [c] + ;; Rounded windows done right + (when (not c.fullscreen) + (set c.shape (fn [cr w h] + (gears.shape.rounded_rect cr w h (dpi 15))))))) (client.connect_signal "focus" (fn [c] (set c.border_color beautiful.border_focus))) (client.connect_signal "unfocus" (fn [c] (set c.border_color beautiful.border_normal))) @@ -604,7 +612,7 @@ (awful.spawn "picom --experimental-backend") (awful.spawn "/usr/lib/polkit-kde-authentication-agent-1") -(awful.spawn "feh --bg-fill /home/chris/Pictures/wallpapers/RoyalKing.png") +(awful.spawn "feh --bg-fill /usr/share/wallpapers/Flow/contents/images/5120x2880.jpg") (awful.spawn "caffeine") (awful.spawn "libinput-gestures-setup start") (awful.spawn "bluetoothctl power on") diff --git a/awesome/keybindings.fnl b/awesome/keybindings.fnl index 83c93cf..b028916 100644 --- a/awesome/keybindings.fnl +++ b/awesome/keybindings.fnl @@ -128,12 +128,14 @@ ;; Programs (awful.key [ modkey ] "d" (fn [] (awful.spawn "emacsclient -c -e '(dired-jump)'")) {:description "launch dired in new emacs frame" :group "apps" }) + (awful.key [ modkey alt ] "d" (fn [] (awful.spawn "dolphin")) + {:description "dolphin" :group "apps" }) (awful.key [ modkey shift ] "d" (fn [] (awful.spawn "dolphin")) {:description "launch dolphin file browser" :group "apps" }) (awful.key [ modkey ] "x" (fn [] (awful.spawn "emacsclient -c -e '(org-capture)'")) {:description "launch scratchpad in new emacs frame" :group "apps" }) (awful.key [ modkey ] "'" (fn [] (awful.spawn "emacsclient -e '(org-agenda-list)'" -{:name "*Org Agenda(a)*" :floating true :placement awful.placement.centered :class "org-agenda" :instance "org-agenda"})) + {:name "*Org Agenda(a)*" :floating true :placement awful.placement.centered :class "org-agenda" :instance "org-agenda"})) {:description "launch org-agenda in new emacs frame" :group "apps" }) (awful.key [ modkey alt ] "m" (fn [] (awful.spawn "emacsclient -c -e '(org-roam-capture)'")) {:description "launch org-roam-capture in new emacs frame" :group "apps" }) @@ -145,7 +147,7 @@ {:description "launch eshell in new emacs frame" :group "apps" }) (awful.key [ modkey ] "e" (fn [] (awful.spawn "emacsclient -c -a 'emacs'")) {:description "launch new emacs frame" :group "apps" }) - (awful.key [ modkey ] "p" (fn [] (awful.spawn "rofi-rbw")) + (awful.key [ modkey ] "p" (fn [] (awful.spawn "rofi-pass")) {:description "select pass" :group "apps" }) (awful.key [ modkey shift ] "w" (fn [] (awful.spawn "libreoffice --writer")) {:description "Open Writer" :group "apps" }) diff --git a/awesome/rules.fnl b/awesome/rules.fnl index 2425d3e..eec6cc8 100644 --- a/awesome/rules.fnl +++ b/awesome/rules.fnl @@ -19,7 +19,8 @@ :screen awful.screen.preferred :size_hints_honor false :placement awful.placement.no_overlap - :shape gears.shape.rounded_rect + :shape_clip gears.shape.rounded_rect + :shape_bounding gears.shape.rounded_rect } } @@ -41,6 +42,35 @@ :placement (+ awful.placement.no_offscreen awful.placement.centered) } } + ;; Davinci Resolve is fullscreen + { + :rule_any { + :instance [ + "resolve" + ] + :class [ + "resolve" + ] + } + :properties { + :floating true + :fullscreen true + + } + } + { + :rule_any { + :name [ + "Secondary Screen" + ] + } + :properties { + :screen 2 + :floating true + :fullscreen true + :size_hints_honor false + } + } ;; sxiv floating on main screen for quick picture viewing { :rule_any { diff --git a/awesome/theme.lua b/awesome/theme.lua index 0e4634e..4f9464e 100644 --- a/awesome/theme.lua +++ b/awesome/theme.lua @@ -93,7 +93,9 @@ theme.tasklist_bg = theme.red -- notification_font -- notification_[bg|fg] -- notification_[width|height|margin] -theme.notification_margin = 4 +theme.notification_margin = dpi(10) +theme.notification_border_width = dpi(0) +theme.notification_shape = gears.shape.rounded_rect -- notification_[border_color|border_width|shape|opacity] -- Variables set for theming the menu: @@ -110,7 +112,7 @@ theme.menu_width = dpi(100) -- mstab theme.mstab_bar_ontop = true -- whether you want to allow the bar to be ontop of clients -theme.mstab_dont_resize_slaves = true -- whether the tabbed stack windows should be smaller than the +theme.mstab_dont_resize_slaves = false -- whether the tabbed stack windows should be smaller than the -- currently focused stack window (set it to true if you use -- transparent terminals. False if you use shadows on solid ones theme.mstab_bar_padding = "default" -- how much padding there should be between clients and your tabbar diff --git a/firefox/chrome/chrome/theme_color_variables.css b/firefox/chrome/chrome/theme_color_variables.css index cf0081d..d7b84c5 100644 --- a/firefox/chrome/chrome/theme_color_variables.css +++ b/firefox/chrome/chrome/theme_color_variables.css @@ -1,10 +1,6 @@ /* Color controls for theme_***.css files */ -:root { - /* All the CSS variables here are global */ - /* These applies to all colorschemes */ +/*:root { - /* If windows - `-moz-win-glass`, if macOS - `-moz-mac-vibrancy-dark` */ - --bf-moz-appearance: -moz-win-glass !important; --bf-backdrop-blur: 6px; @@ -32,54 +28,54 @@ --bf-tab-border-radius: 6px; --bf-tab-soundplaying-bg: #ff6ac1CC; - /*--toolbar-bgcolor: transparent !important; - --urlbar-separator-color: transparent !important;*/ + --toolbar-bgcolor: transparent !important; + --urlbar-separator-color: transparent !important; } -/* Light Mode */ -:root:-moz-lwtheme-darktext { - --bf-main-window: transparent; - --bf-bg: #F2F2F266; - --bf-color: #0A0A0A; - - --bf-hover-bg: #1A1A1A33; - --bf-active-bg: #1A1A1A66; - - --bf-icon-color: #0A0A0A; - --bf-tab-toolbar-bg: #F2F2F2AA; - --bf-tab-selected-bg: #00000022; - --bf-navbar-bg: var(--bf-bg); - --bf-urlbar-bg: var(--bf-bg); - --bf-urlbar-active-bg: var(--bf-bg); - --bf-urlbar-focused-color: var(--bf-color); - - --bf-sidebar-bg: var(--bf-bg); - --bf-sidebar-color: var(--bf-color); - - --bf-menupopup-bg: #F2F2F2AA; - --bf-menupopup-color: var(--bf-color); -} +/* /\* Light Mode *\/ */ +/* :root:-moz-lwtheme-darktext { */ +/* --bf-main-window: transparent; */ +/* --bf-bg: #F2F2F266; */ +/* --bf-color: #0A0A0A; */ -/* Dark Mode */ -:root:-moz-lwtheme-brighttext { - --bf-main-window: transparent; - --bf-bg: #282a3666; - --bf-color: #e2e4e5; - - --bf-hover-bg: #34353e33; - --bf-active-bg: #eff0eb66; - - --bf-icon-color: #eff0eb; - --bf-tab-toolbar-bg: #282a36AA; - --bf-tab-selected-bg: #e2e4e510; - --bf-navbar-bg: var(--bf-bg); - --bf-urlbar-bg: var(--bf-bg); - --bf-urlbar-active-bg: var(--bf-bg); - --bf-urlbar-focused-color: var(--bf-color); - - --bf-sidebar-bg: var(--bf-bg); - --bf-sidebar-color: var(--bf-color); - - --bf-menupopup-bg: #282a36AA; - --bf-menupopup-color: var(--bf-color); -} +/* --bf-hover-bg: #1A1A1A33; */ +/* --bf-active-bg: #1A1A1A66; */ + +/* --bf-icon-color: #0A0A0A; */ +/* --bf-tab-toolbar-bg: #F2F2F2AA; */ +/* --bf-tab-selected-bg: #00000022; */ +/* --bf-navbar-bg: var(--bf-bg); */ +/* --bf-urlbar-bg: var(--bf-bg); */ +/* --bf-urlbar-active-bg: var(--bf-bg); */ +/* --bf-urlbar-focused-color: var(--bf-color); */ + +/* --bf-sidebar-bg: var(--bf-bg); */ +/* --bf-sidebar-color: var(--bf-color); */ + +/* --bf-menupopup-bg: #F2F2F2AA; */ +/* --bf-menupopup-color: var(--bf-color); */ +/* } */ + +/* /\* Dark Mode *\/ */ +/* :root:-moz-lwtheme-brighttext { */ +/* --bf-main-window: transparent; */ +/* --bf-bg: #282a3666; */ +/* --bf-color: #e2e4e5; */ + +/* --bf-hover-bg: #34353e33; */ +/* --bf-active-bg: #eff0eb66; */ + +/* --bf-icon-color: #eff0eb; */ +/* --bf-tab-toolbar-bg: #282a36AA; */ +/* --bf-tab-selected-bg: #e2e4e510; */ +/* --bf-navbar-bg: var(--bf-bg); */ +/* --bf-urlbar-bg: var(--bf-bg); */ +/* --bf-urlbar-active-bg: var(--bf-bg); */ +/* --bf-urlbar-focused-color: var(--bf-color); */ + +/* --bf-sidebar-bg: var(--bf-bg); */ +/* --bf-sidebar-color: var(--bf-color); */ + +/* --bf-menupopup-bg: #282a36AA; */ +/* --bf-menupopup-color: var(--bf-color); */ +/* } */ diff --git a/fish/config.fish b/fish/config.fish index a9030d6..3195d7e 100644 --- a/fish/config.fish +++ b/fish/config.fish @@ -1,9 +1,13 @@ #!/usr/bin/env fish -set -U fish_user_paths $HOME/.local/bin $HOME/scripts $HOME/.doom-emacs/bin $HOME/.emacs.d/bin $HOME/.cargo/bin +set -U fish_user_paths $HOME/.local/bin $HOME/scripts $HOME/.doom-emacs/bin $HOME/.emacs.d/bin $HOME/.cargo/bin /opt/android-sdk/cmdline-tools/latest/bin set TERM "xterm-256color" set EDITOR "emacsclient -c -a" set VISUAL "emacsclient -c -a emacs" +set KWIN_DRM_USE_EGL_STREAMS 1 +set -Ux ANDROID_SDK_ROOT /opt/android-sdk +set -Ux JAVA_HOME /usr/lib/jvm/default +set -Ux CHROME_EXECUTABLE /usr/bin/qutebrowser function fish_greeting -d "what's up, fish?" # set_color $fish_color_autosuggestion[1] diff --git a/fish/fish_variables b/fish/fish_variables index b05f60a..29bc5a6 100644 --- a/fish/fish_variables +++ b/fish/fish_variables @@ -1,5 +1,8 @@ # This file contains fish universal variable definitions. # VERSION: 3.0 +SETUVAR --export ANDROID_SDK_ROOT:/opt/android\x2dsdk +SETUVAR --export CHROME_EXECUTABLE:/usr/bin/qutebrowser +SETUVAR --export JAVA_HOME:/usr/lib/jvm/default SETUVAR __fish_initialized:3100 SETUVAR fish_color_autosuggestion:555\x1ebrblack SETUVAR fish_color_cancel:\x2dr @@ -30,4 +33,4 @@ SETUVAR fish_pager_color_completion:\x1d SETUVAR fish_pager_color_description:B3A06D\x1eyellow SETUVAR fish_pager_color_prefix:white\x1e\x2d\x2dbold\x1e\x2d\x2dunderline SETUVAR fish_pager_color_progress:brwhite\x1e\x2d\x2dbackground\x3dcyan -SETUVAR fish_user_paths:/home/chris/\x2elocal/bin\x1e/home/chris/scripts\x1e/home/chris/\x2edoom\x2demacs/bin\x1e/home/chris/\x2eemacs\x2ed/bin\x1e/home/chris/\x2ecargo/bin +SETUVAR fish_user_paths:/home/chris/\x2elocal/bin\x1e/home/chris/scripts\x1e/home/chris/\x2edoom\x2demacs/bin\x1e/home/chris/\x2eemacs\x2ed/bin\x1e/home/chris/\x2ecargo/bin\x1e/opt/android\x2dsdk/cmdline\x2dtools/latest/bin diff --git a/kmonad/config.kbd b/kmonad/config.kbd index bb38c46..4bd7691 100644 --- a/kmonad/config.kbd +++ b/kmonad/config.kbd @@ -4,7 +4,7 @@ output (uinput-sink "My KMonad output" ;; To understand the importance of the following line, see the section on ;; Compose-key sequences at the near-bottom of this file. - "/run/current-system/sw/bin/sleep 1 && /run/current-system/sw/bin/setxkbmap -option compose:ralt") + "/usr/bin/sleep 1 && /usr/bin/setxkbmap -option compose:ralt") cmp-seq ralt ;; Set the compose key to `RightAlt' ;; For Windows diff --git a/kmonad/config.org b/kmonad/config.org index 0cc09f4..733111e 100644 --- a/kmonad/config.org +++ b/kmonad/config.org @@ -136,11 +136,11 @@ #+begin_src common-lisp :tangle config.kbd (defcfg ;; For Linux - input (device-file "/dev/input/by-id/usb-Razer_Razer_BlackWidow_Chroma-event-kbd") + input (device-file "/dev/input/by-id/usb-Razer_Razer_BlackWidow_Chroma-if01-event-kbd") output (uinput-sink "My KMonad output" ;; To understand the importance of the following line, see the section on ;; Compose-key sequences at the near-bottom of this file. - "/run/current-system/sw/bin/sleep 1 && /run/current-system/sw/bin/setxkbmap -option compose:ralt") + "/usr/bin/sleep 1 && /usr/bin/setxkbmap -option compose:ralt") cmp-seq ralt ;; Set the compose key to `RightAlt' ;; For Windows diff --git a/lolcate/default/config.toml b/lolcate/default/config.toml index 71279e0..dfb5725 100644 --- a/lolcate/default/config.toml +++ b/lolcate/default/config.toml @@ -11,6 +11,8 @@ dirs = [ "~/Videos", "~/Music", "~/ebooks", + "~/storage/nextcloud", + "~/storage/tfc", "~/.dotemacs", "~/.emacs.d", ] diff --git a/nyxt/init.lisp b/nyxt/init.lisp index 8affe85..bf50cef 100644 --- a/nyxt/init.lisp +++ b/nyxt/init.lisp @@ -28,6 +28,11 @@ "MPV launches with given url using the fast profile." (uiop:run-program (list "mpv" "--profile=fast" url))) +;; Create a function to download videos with youtube-dl in alacritty +(defun youtube-dl (url) + "Download videos and audio with youtube-dl in alacritty for feedback" + (uiop:run-program (list "alacritty" "-e" "youtube-dl" "-o ~/Videos/%(title)s.%(ext)s" url))) + ;; Let's create a function to hint videos, convert the url to a sting, and play them in MPV (define-command hint-mpv (&key nyxt/web-mode::annotate-visible-only-p) "Show a set of element hints, and copy the URL of the user inputted one." @@ -41,6 +46,19 @@ :annotate-visible-only-p nyxt/web-mode::annotate-visible-only-p)) +;; Let's create a function to hint videos, convert the url to a sting, and download with ytdl +(define-command hint-ytdl (&key nyxt/web-mode::annotate-visible-only-p) + "Show a set of element hints, and copy the URL of the user inputted one." + (nyxt/web-mode:query-hints "Copy element URL" + (lambda (nyxt/web-mode::result) + ;; this converts the url to a string to be used in mpv + (let* ((url (format nil "~a" + (url (first nyxt/web-mode::result))))) + ;; here we take that string and pipe it into mpv + (youtube-dl url))) + :annotate-visible-only-p + nyxt/web-mode::annotate-visible-only-p)) + ;; These are my own keys that are layered over vi-normal. A lot of these ;; are similar to qutebrowser. (defvar *chris-keymap* (make-keymap "chris-map")) @@ -49,6 +67,7 @@ "J" 'switch-buffer-previous "b" 'switch-buffer "v" 'hint-mpv + "C-v v" 'hint-ytdl "d" 'delete-current-buffer "D" 'delete-buffer "r" 'reload-current-buffer diff --git a/picom.conf b/picom.conf index 8722fec..c24cc99 100644 --- a/picom.conf +++ b/picom.conf @@ -7,6 +7,7 @@ rounded-corners-exclude = [ "class_g = 'kitty'", # "class_g = 'emacs'", "class_g = 'Thunderbird'", + # "_NET_WM_STATE@[0]:32a *= '_NET_WM_STATE_FULLSCREEN'", ]; round-borders = 12; round-borders-exclude = [ @@ -20,16 +21,16 @@ round-borders-exclude = [ shadow = true; # The blur radius for shadows, in pixels. (defaults to 12) -shadow-radius = 18; +shadow-radius = 22; # The opacity of shadows. (0.0 - 1.0, defaults to 0.75) shadow-opacity = .75; # The left offset for shadows, in pixels. (defaults to -15) -shadow-offset-x = 2; +shadow-offset-x = -12; # The top offset for shadows, in pixels. (defaults to -15) -shadow-offset-y = 2; +shadow-offset-y = -12; # Avoid drawing shadows on dock/panel windows. This option is deprecated, # you should use the *wintypes* option in your config file instead. @@ -72,7 +73,7 @@ shadow-exclude = [ # "class_g = 'Alacritty'", "class_g ?= 'Notify-osd'", "class_g = 'Cairo-clock'", - "class_g = 'awesome'", + # "class_g = 'awesome'", # "class_g = 'qutebrowser'", "class_g = 'slop'", "_GTK_FRAME_EXTENTS@:c" @@ -169,7 +170,10 @@ opacity-rule = [ # "100:class_g = 'kitty'", "100:class_g = 'Alacritty'", "100:class_g = 'qutebrowser'", + "100:class_g = 'showfoto'", "100:class_g = 'scribus'", + "100:class_g = 'kdenlive'", + "100:class_g = 'resolve'", "100:class_g = 'OpenLP'", "80:class_g = 'Polybar'", "100:class_g = 'code-oss'", @@ -249,7 +253,7 @@ blur-background-exclude = [ # prevents picom from blurring the background # when taking selection screenshot with `main` # https://github.com/naelstrof/maim/issues/130 - "class_g = 'awesome'", + # "class_g = 'awesome'", "class_g = 'slop'", "_GTK_FRAME_EXTENTS@:c", "class_g = 'soffice'", @@ -316,7 +320,7 @@ use-ewmh-active-win = true; # Unredirect all windows if a full-screen opaque window is detected, # to maximize performance for full-screen windows. Known to cause flickering # when redirecting/unredirecting windows. paint-on-overlay may make the flickering less obvious. -unredir-if-possible = true; +unredir-if-possible = false; # Delay before unredirecting the window, in milliseconds. Defaults to 0. # unredir-if-possible-delay = 0 diff --git a/qutebrowser/autoconfig.yml b/qutebrowser/autoconfig.yml index 065f3f4..a5f7ed8 100644 --- a/qutebrowser/autoconfig.yml +++ b/qutebrowser/autoconfig.yml @@ -19,3 +19,5 @@ settings: https://www.g2a.com: false https://www.reddit.com: false https://www.websitebuilderexpert.com: false + tabs.show: + global: always diff --git a/qutebrowser/qsettings/QtProject.conf b/qutebrowser/qsettings/QtProject.conf index 108a1f2..9b570d2 100644 --- a/qutebrowser/qsettings/QtProject.conf +++ b/qutebrowser/qsettings/QtProject.conf @@ -1,6 +1,6 @@ [FileDialog] -history=file:///home/chris/Downloads, file:///home/chris/Pictures/Phone/Camera -lastVisited=file:///home/chris/Downloads +history=file:///home/chris/Downloads, file:///home/chris/Pictures/Phone/Camera, file:///home/chris, file:///home/chris/Documents +lastVisited=file:///home/chris qtVersion=5.15.2 shortcuts=file:, file:///home/chris sidebarWidth=116 diff --git a/qutebrowser/quickmarks b/qutebrowser/quickmarks index 5a457d0..efc3db7 100644 --- a/qutebrowser/quickmarks +++ b/qutebrowser/quickmarks @@ -22,3 +22,4 @@ nvtfc https://www.facebook.com/NorthernValleyTFC tnc https://staff.tfcconnection.org/apps/dashboard/ nc https://nc.cochrun.xyz/apps/files/ oml https://outlook.live.com/mail/0/inbox +stb https://table.tfcconnection.org/ diff --git a/rofi/config.rasi b/rofi/config.rasi index c911358..469b42f 100644 --- a/rofi/config.rasi +++ b/rofi/config.rasi @@ -10,4 +10,4 @@ configuration { run-command: "fish -c {cmd}"; run-list-command: "fish -c functions"; } -@import "/home/chris/.dotfiles/rofi/launchers-git/laptop.rasi" +@import "/home/chris/.dotfiles/rofi/launchers-git/desktop.rasi" diff --git a/scripts/drvid b/scripts/drvid index c3fb52a..ef0cf9f 100755 --- a/scripts/drvid +++ b/scripts/drvid @@ -1,13 +1,16 @@ #!/usr/bin/env fish + mkdir transcoded -for vid in *.mp4 +mkdir source +for vid in *.MP4 touch $vid.txt echo $vid >>$vid.txt set newvid (sed "s/\.mp4//g" $vid.txt) echo $newvid - ffmpeg -i $vid -c:v dnxhd -profile:v 3 -qscale:v 9 -c:a pcm_s16le $newvid.mov + ffmpeg -i $vid -c:v dnxhd -profile:v 3 -qscale:v 20 -c:a pcm_s16be $newvid.mov mv $newvid.mov ./transcoded/$newvid.mov + mv $vid source/$vid rm $vid.txt echo \n finished transcoding new file is in transcoded/$newvid.mov end @@ -17,8 +20,45 @@ for vid in *.MOV echo $vid >>$vid.txt set newvid (sed "s/\.mp4//g" $vid.txt) echo $newvid - ffmpeg -i $vid -c:v dnxhd -profile:v 3 -qscale:v 9 -c:a pcm_s16le $newvid.mov + ffmpeg -i $vid -c:v dnxhd -profile:v 3 -qscale:v 4 -c:a pcm_s16be $newvid.mov mv $newvid.mov ./transcoded/$newvid.mov + mv $vid source/$vid + rm $vid.txt + echo \n finished transcoding new file is in transcoded/$newvid.mov +end + +for vid in *.mp4 + touch $vid.txt + echo $vid >>$vid.txt + set newvid (sed "s/\.mp4//g" $vid.txt) + echo $newvid + ffmpeg -i $vid -c:v dnxhd -profile:v 3 -qscale:v 4 -c:a pcm_s16be $newvid.mov + mv $newvid.mov ./transcoded/$newvid.mov + mv $vid source/$vid + rm $vid.txt + echo \n finished transcoding new file is in transcoded/$newvid.mov +end + +for vid in *.mov + touch $vid.txt + echo $vid >>$vid.txt + set newvid (sed "s/\.mp4//g" $vid.txt) + echo $newvid + ffmpeg -i $vid -c:v dnxhd -profile:v 3 -qscale:v 4 -c:a pcm_s16be $newvid.mov + mv $newvid.mov ./transcoded/$newvid.mov + mv $vid source/$vid + rm $vid.txt + echo \n finished transcoding new file is in transcoded/$newvid.mov +end + +for vid in *.mkv + touch $vid.txt + echo $vid >>$vid.txt + set newvid (sed "s/\.mp4//g" $vid.txt) + echo $newvid + ffmpeg -i $vid -c:v dnxhd -profile:v 3 -qscale:v 4 -c:a pcm_s16be $newvid.mov + mv $newvid.mov ./transcoded/$newvid.mov + mv $vid source/$vid rm $vid.txt echo \n finished transcoding new file is in transcoded/$newvid.mov end diff --git a/surfingkeys/conf.js b/surfingkeys/conf.js new file mode 100644 index 0000000..37fb179 --- /dev/null +++ b/surfingkeys/conf.js @@ -0,0 +1,53 @@ +// an example to create a new mapping `ctrl-y` +mapkey('', 'Show me the money', function() { + Front.showPopup('a well-known phrase uttered by characters in the 1996 film Jerry Maguire (Escape to close).'); +}); + +// an example to replace `T` with `gt`, click `Default mappings` to see how `T` works. +map('gt', 'T'); + +// an example to remove mapkey `Ctrl-i` +unmap(''); + +settings.smoothScroll = true; +settings.scrollStepSize = 220; + +// set theme +settings.theme = ` +.sk_theme { + font-family: Input Sans Condensed, Charcoal, sans-serif; + font-size: 10pt; + background: #24272e; + color: #abb2bf; +} +.sk_theme tbody { + color: #fff; +} +.sk_theme input { + color: #d0d0d0; +} +.sk_theme .url { + color: #61afef; +} +.sk_theme .annotation { + color: #56b6c2; +} +.sk_theme .omnibar_highlight { + color: #528bff; +} +.sk_theme .omnibar_timestamp { + color: #e5c07b; +} +.sk_theme .omnibar_visitcount { + color: #98c379; +} +.sk_theme #sk_omnibarSearchResult ul li:nth-child(odd) { + background: #303030; +} +.sk_theme #sk_omnibarSearchResult ul li.focused { + background: #3e4452; +} +#sk_status, #sk_find { + font-size: 20pt; +}`; +// click `Save` button to make above settings to take effect.