Pentoo: Standard modifications

Use them a lot lately, so here they are in one place:

# vim

echo '" paste-mode from external programm
set pastetoggle=<F2>
" displayed tab width
set tabstop=4
" indent tab width
set shiftwidth=4
" color scheme desert for nice 256 colors
colorscheme desert' >> /etc/vim/vimrc.local

# screen
echo "altscreen on
caption always '%{= dg} %H %{G}| %{B}%l %{G}|%=%?%{d}%-w%?%{r}(%{d}%n %t%? {%u} %?%{r})%{d}%?%+w%?%=%{G}| %{B}%M %d %c:%s '" >>/etc/screenrc

# dual monitor setup
# create dirs
mkdir ~/.screenlayout
mkdir -p ~/.config/autostart
# create ~/.screenlayout/dual_monitor.sh
echo '#!/bin/sh
xrandr --output LVDS1 --mode 1920x1080 --pos 1280x0 --rotate normal --output VGA1 --mode 1280x1024 --pos 0x0 --rotate normal' >~/.screenlayout/dual_monitor.sh
chmod u+x ~/.screenlayout/dual_monitor.sh
~/.screenlayout/dual_monitor.sh
# create autostart for above file in ~/.config/autostart/DualMonitor.desktop
echo '[Desktop Entry]
Encoding=UTF-8
Version=0.9.4
Type=Application
Name=DualMonitor
Comment=
Exec=/root/.screenlayout/dual_monitor.sh
OnlyShowIn=XFCE;
StartupNotify=false
Terminal=false
Hidden=false
' >~/.config/autostart/DualMonitor.desktop

# panels on right monitor

xfconf-query -c xfce4-panel -p /panels/panel-1/output-name -s LVDS1 --create -t string

xfconf-query -c xfce4-panel -p /panels/panel-2/output-name -s LVDS1 --create -t string

# disable F1 on xfce4-terminal

mkdir -p ~/.config/xfce4/terminal

echo ‘(gtk_accel_path “<Actions>/terminal-window/contents” “”)’ >> ~/.config/xfce4/terminal/accels.scm

# mount hd partitions

mkdir /mnt/hd/sda13_SHARED -p

mount /dev/sda13 /mnt/hd/sda13_SHARED

# disable touchpad
mkdir -p ~/.config/xfce4/xfconf/xfce-perchannel-xml/
echo '<?xml version="1.0" encoding="UTF-8"?>
                                                                                               
<channel name="pointers" version="1.0">
  <property name="ETPS2_Elantech_Touchpad" type="empty">
    <property name="Properties" type="empty">
      <property name="Device_Enabled" type="int" value="0"/>
    </property>
  </property>
</channel>' >~/.config/xfce4/xfconf/xfce-perchannel-xml/pointers.xml
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: