Skip to content

Instantly share code, notes, and snippets.

@modulitos
modulitos / tmux.conf
Last active August 29, 2015 14:06
tmux.conf
unbind C-b
set -g prefix C-t
bind-key t send-prefix
set-option -g history-limit 1000
# set -g @yank_selection "primary"
# # tmux plug-in manager
# set -g @tpm_plugins " \
# tmux-plugins/tpm \
# tmux-plugins/tmux-yank \
# NVIDIA Optimus Aliases - bbswitch
alias tmulti="sudo $HOME/bin/term_multiscreen"
alias rmulti="sudo $HOME/bin/reinit_multiscreen"
alias imulti="sudo /home/lucas/bin/init_multiscreen"
#!/bin/bash
# Restarts Bumblebee for multi-screen functionality.
tee /proc/acpi/bbswitch <<<ON
modprobe bbswitch
optirun true
intel-virtual-output
xrandr
#!/bin/bash
# Initializes Bumblebee for multi-screen functionality.
xorg_process=$(ps aux | grep 'Xorg' | awk '{print $2}')
kill -15 $xorg_process
rmmod nvidia
tee /proc/acpi/bbswitch <<<OFF
#!/bin/bash
# Initializes Bumblebee for multi-screen functionality.
modprobe bbswitch
optirun true
intel-virtual-output
xrandr