Shortcut | Description |
---|---|
ranger |
Start Ranger |
Q |
Quit Ranger |
R |
Reload current directory |
? |
Ranger Manpages / Shortcuts |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/zsh | |
newname=$(echo $1 | awk -F'.' '{print $1}').png # i3lock only accepts pngs | |
resolution=$(xrandr | fgrep '*' | awk '{print $1}') | |
# if the image is too large, run the folloowing line first and then run the script again on temp.jpg: | |
# convert $1 -gravity Center -adaptive-resize $resolution -background black temp.jpg | |
convert $1 -background black -gravity center -extent $resolution -background black $newname |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name t.um block | |
// @namespace http://noromanba.flavors.me | |
// @description remove t.umblr.com redirector from links on Tumblr for UserScript/Content Scripts | |
// @include http://*.tld/* | |
// @include https://*.tumblr.com/* | |
// @grant none | |
// @noframes | |
// @run-at document-body | |
// @version 2018.2.12.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" Mike's statusline | |
let g:battery_level = '' | |
function! SetBatteryLevel(timer_id) | |
let l:battery_level = system('acpi | grep -oP "(\d+)%" | tr -d "\n"') | |
if (battery_level != '') | |
let g:battery_level = l:battery_level | |
redraw! | |
endif | |
call timer_start(30000, 'SetBatteryLevel') | |
endfunction |
i3-gaps has some packages that are required for it to work so install these things:
sudo apt install libxcb1-dev libxcb-keysyms1-dev libpango1.0-dev libxcb-util0-dev libxcb-icccm4-dev libyajl-dev libstartup-notification0-dev libxcb-randr0-dev libev-dev libxcb-cursor-dev libxcb-xinerama0-dev libxcb-xkb-dev libxkbcommon-dev libxkbcommon-x11-dev autoconf xutils-dev libtool automake
You also need to install libxcb-xrm-dev
, but I got Unable to locate package libxcb-xrm-dev
when trying to install from the apt repositories on Ubuntu 16.04. If this happens to you, just install it from source using these commands:
mkdir tmp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/bash | |
################################################################################ | |
# | |
# Description: | |
# Convert images for compatibility with the Supernote A6X and A5X. | |
# | |
# If an original image's size exceeds the ratio required to be compatible | |
# with the Supernote, it will automatically be centered and cropped. | |
# | |
# Usage: |