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/bash | |
# Builtin display (1440p) | |
xrandr --output eDP-1 --fb 3840-x2160 --auto --scale 1.5x1.5 | |
------------------------------------------------------------- | |
#!/bin/bash | |
# Dual monitor (dual external 1080p) |
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
import logging | |
from math import inf, log | |
from random import random as rand | |
log_format ='%(asctime)s.%(msecs)03d %(levelname)8s [%(module)s %(funcName)s] %(message)s' | |
datefmt ="%Y-%m-%d %H:%M:%S" | |
logger_level = logging.WARN | |
logging.basicConfig(level=logger_level, format=log_format, datefmt=datefmt) | |
logger = logging.getLogger(__name__) |
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
function! ToggleBackgroundDarkness() | |
if &background ==# "light" | |
set background=dark | |
else | |
set background=light | |
endif | |
endfunction | |
map <F8> :call ToggleBackgroundDarkness()<CR> |