Skip to content

Instantly share code, notes, and snippets.

@VitorHP
Last active August 20, 2018 19:02
Show Gist options
  • Save VitorHP/3ee70912928545558b3f081c6e8f772c to your computer and use it in GitHub Desktop.
Save VitorHP/3ee70912928545558b3f081c6e8f772c to your computer and use it in GitHub Desktop.
bluetooth

I3

Moving Around

Windows + (H|J|K|L)

Opening splits

Windows + c (horizontal)
Windows + v (vertical)

systemCTL

checking logs

journalctl -u <service-name>

service files dir

/etc/systemd/system/

example config

[Unit]
Description=Redis
After=syslog.target

[Service]
ExecStart=/usr/local/bin/redis-server /etc/redis/redis.conf
RestartSec=5s
Restart=on-success

[Install]
WantedBy=multi-user.target

Bluetooth

Making bluetooth work

https://wiki.archlinux.org/index.php/bluetooth

Bluetooth headset

https://wiki.archlinux.org/index.php/Bluetooth_headset

Switch audio to headset when connected

https://github.com/manjaro/packages-extra/issues/64

Autoconnect keyboard

https://wiki.archlinux.org/index.php/Bluetooth_keyboard

Monitores

Turn off notebook monitor

xrandr --output LVDS1 --off

List Monitors

xrandr -q

Setup Dual Monitors

xrandr --auto --output HDMI1 --mode 1920x1080 --right-of LVDS1

Console

Copy Paste

ctrl + shift + c
ctrl + shift + v

USB Stick

Identifying USB Drive

lsblk -f

Mounting USB Drive

First, create dir like /mnt/pendrive, then

sudo mount -U [device id] /mnt/pendrive

Unmounting

sudo umount /mnt/pendrive
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment