diff options
author | Romain Gonçalves <me@rgoncalves.se> | 2022-01-14 09:54:31 +0100 |
---|---|---|
committer | Romain Gonçalves <me@rgoncalves.se> | 2022-01-14 09:54:31 +0100 |
commit | d64d4a6a3924e144fe49b3d956320b37786a738a (patch) | |
tree | 4150edec412902cc11c73e7d619e40003de3b19e | |
parent | a380254393b2a1e08e4dd02e96e5c206a457ec59 (diff) | |
download | dots-d64d4a6a3924e144fe49b3d956320b37786a738a.tar.gz |
Fri Jan 14 09:54:31 AM CET 2022
-rwxr-xr-x | .bin/ag-autorandr | 2 | ||||
-rwxr-xr-x | .bin/create-local-backup | 24 | ||||
-rwxr-xr-x | .bin/music | 4 | ||||
-rwxr-xr-x | .bin/nem | 8 | ||||
-rwxr-xr-x | .bin/synchronize-pub-dots (renamed from .bin/sync-public-dotfiles) | 0 | ||||
-rwxr-xr-x | .bin/undock | 2 | ||||
-rwxr-xr-x | .config/newsboat/config | 2 | ||||
-rwxr-xr-x | .config/nvim/colors/colorscheme.vim | 3 | ||||
-rwxr-xr-x | .config/nvim/lua/settings.lua | 2 | ||||
-rwxr-xr-x | .config/qutebrowser/greasemonkey/glassdoor-css.js | 10 | ||||
-rwxr-xr-x | .config/tmux/tmux.conf | 2 |
11 files changed, 54 insertions, 5 deletions
diff --git a/.bin/ag-autorandr b/.bin/ag-autorandr index 1064e1c..1c4e325 100755 --- a/.bin/ag-autorandr +++ b/.bin/ag-autorandr @@ -13,3 +13,5 @@ for screen in ${screens}; do xrandr --output "${screen}" --auto --right-of "${screen_master}" screen_master="${screen}" done + +xrandr --output "${screen}" --primary diff --git a/.bin/create-local-backup b/.bin/create-local-backup new file mode 100755 index 0000000..4e4cb1b --- /dev/null +++ b/.bin/create-local-backup @@ -0,0 +1,24 @@ +#!/bin/sh + +set -xe + +source_directories="./git.rgoncalves.se/ + ./ + " + +out_dir=$(readlink -f "${1}") + +[ -d "${out_dir}" ] + +exit +rsync -hvrPt \ + --delete-after \ + --fuzzy \ + --prune-empty-dirs \ + --include "*.pdf" \ + --include "*.epub" \ + --include "*.png" \ + --include "*.jpg" \ + --include "*/" \ + --exclude "*" \ + "${src_dir}/" "${out_dir}/" @@ -46,8 +46,8 @@ main() { mkdir "${dir}" log "${dir} ${url}: download" - youtube-dl --rm-cache-dir >/dev/null - youtube-dl \ + yt-dlp --rm-cache-dir >/dev/null + yt-dlp \ --extract-audio \ --audio-format mp3 \ --prefer-ffmpeg \ diff --git a/.bin/nem b/.bin/nem new file mode 100755 index 0000000..efff120 --- /dev/null +++ b/.bin/nem @@ -0,0 +1,8 @@ +#!/bin/sh + +while true; do + date + sleep 1 +done & + +echo a diff --git a/.bin/sync-public-dotfiles b/.bin/synchronize-pub-dots index 5a6e795..5a6e795 100755 --- a/.bin/sync-public-dotfiles +++ b/.bin/synchronize-pub-dots diff --git a/.bin/undock b/.bin/undock index 2193610..c592fbf 100755 --- a/.bin/undock +++ b/.bin/undock @@ -2,5 +2,5 @@ set -xe -x11-config +dock xrandr -s 0 diff --git a/.config/newsboat/config b/.config/newsboat/config index 4095c45..c9d9fcd 100755 --- a/.config/newsboat/config +++ b/.config/newsboat/config @@ -13,6 +13,8 @@ unbind-key J unbind-key K bind-key j down bind-key k up +bind-key ^D pagedown +bind-key ^U pageup bind-key l open bind-key h quit diff --git a/.config/nvim/colors/colorscheme.vim b/.config/nvim/colors/colorscheme.vim index 9822ea4..48df51c 100755 --- a/.config/nvim/colors/colorscheme.vim +++ b/.config/nvim/colors/colorscheme.vim @@ -206,3 +206,6 @@ hi semshiSelected cterm=NONE ctermbg=161 ctermfg=231 hi semshiErrorSign cterm=NONE ctermbg=160 ctermfg=231 hi semshiErrorChar cterm=NONE ctermbg=160 ctermfg=231 sign define semshiError text=E> texthl=semshiErrorSign + +hi VirtColumn cterm=NONE ctermbg=0 ctermfg=2 +hi IndentBlankLineChar cterm=NONE ctermbg=0 ctermfg=15 diff --git a/.config/nvim/lua/settings.lua b/.config/nvim/lua/settings.lua index 2741c99..aa04dce 100755 --- a/.config/nvim/lua/settings.lua +++ b/.config/nvim/lua/settings.lua @@ -7,7 +7,7 @@ o.shell = '/bin/sh' o.encoding = 'utf-8' o.scrolloff = 3 o.lazyredraw = true -o.autochdir = true +o.autochdir = false o.smarttab = true o.number = true o.list = true diff --git a/.config/qutebrowser/greasemonkey/glassdoor-css.js b/.config/qutebrowser/greasemonkey/glassdoor-css.js index d0e0e49..ad82b26 100755 --- a/.config/qutebrowser/greasemonkey/glassdoor-css.js +++ b/.config/qutebrowser/greasemonkey/glassdoor-css.js @@ -7,3 +7,13 @@ window.addEventListener('load', function () { window.onscroll = null; }) + +window.addEventListener('load', function() { + let functions = [ + () => document.getElementById("ContentWallHardsell").remove(), + () => document.getElementsByTagName('body')[0].style.removeProperty("overflow"), + () => document.addEventListener("scroll", event => event.stopPropagation(), true), + () => document.addEventListener("mousemove", event => event.stopPropagation(), true), + ]; + functions.forEach(f => f()); +}); diff --git a/.config/tmux/tmux.conf b/.config/tmux/tmux.conf index 81e5d4f..9e77b7c 100755 --- a/.config/tmux/tmux.conf +++ b/.config/tmux/tmux.conf @@ -3,7 +3,7 @@ set-option -g prefix ` set-option -g mouse off set-option -g mode-keys vi set-option -g escape-time 0 -# set-option -g default-terminal "screen-256color" +set-option -g default-terminal "screen-256color" set-option -g history-limit 5000 set -s escape-time 0 |