Add new mode for display using xrandr
Generate new mode for xrandr using cvt
$ cvt 1600 900 # 1600x900 59.95 Hz (CVT 1.44M9) hsync: 55.99 kHz; pclk: 118.25 MHz Modeline "1600x900_60.00" 118.25 1600 1696 1856 2112 900 903 908 934 …
Get absolute link on nix/linux
$ cat script.sh #!/usr/bin/env bash THIS_FILE=$(readline -e $) THIS_DIR=$(dirname $THIS_FILE) echo $THIS_DIR source
Kill defunct process on nix/linux
$ ps aux | grep name
$ pstree -sp $ ps -ef –forest
kill the parent
Paksa user untuk logout (GNU/Linux)
Untuk memaksa user yang sedang logout di mesin Unix atau Gnu/Linux bisa menggunakan perintah pkill, berikut contohnya:
# pkill -KILL -u username Perintah diatas akan memaksa user dengan login name …
Add shortcut with lxde or openbox
Edit file $HOME/.config/openbox/lxde-rc.xml and then add your shortcut in.
.
Example Set Control+Winkey+F12 as shortcut for vim
<keybind key="C-W-F12"> <action …