Skip to content

Instantly share code, notes, and snippets.

@xtrymind
Last active April 1, 2017 13:39
Show Gist options
  • Save xtrymind/cf72d8078f3334a94cfd70c337c25199 to your computer and use it in GitHub Desktop.
Save xtrymind/cf72d8078f3334a94cfd70c337c25199 to your computer and use it in GitHub Desktop.
$ sudo pacman -S openbox tint2 pyxdg obconf lxappearance-obconf
$ cp /etc/X11/xinit/xinitrc ~/.xinitrc
$ cp -R /etc/xdg/openbox/ ~/.config/

edit .xinitrc and add

exec openbox-session

Add exec startx to shell’s startup script: “/.bash_profile” for bash, or “/.zlogin” for zsh.

[[ -z $DISPLAY && $XDG_VTNR -eq 1 ]] && exec startx

Numlock

install numlockx and add to openbox autostart

numlockx &

Network

$ sudo pacman -S networkmanager network-manager-applet gnome-keyring xfce4-notifyd \
  gnome-icon-theme networkmanager-openvpn
$ sudo systemctl enable NetworkManager

edit openbox autostart, add

(sleep 3s && nm-applet)&

File Manager

Thunar

$ sudo pacman -S thunar gvfs gvfs-smb thunar-archive-plugin file-roller thunar-volman tumbler ffmpegthumbnailer

Nemo

$ sudo pacman -S nemo nemo-fileroller nemo-preview nemo-share ffmpegthumbnailer
gsettings set org.nemo.desktop show-desktop-icons false
gsettings set org.cinnamon.desktop.default-applications.terminal exec <terminal-name>

PCManFM

$ sudo pacman -S pcmanfm gvfs udisks2 ffmpegthumbnailer xarchiver gvfs-smb tumbler freetype2

Terminal

Terminator

$ sudo pacman -S terminator

Edit ~/.config/terminator/config, add size = x, y to define terminal size

    [[[window0]]]
      parent = ""
      size = 650, 400
      type = Window

Background

Feh

$ sudo pacamn -S feh

In openbox autostart add

sh ~/.fehbg &

Lockscreen

$ sudo pacman -S xautolock scrot
$ pacaur -y i3lock-color-git i3lock-fancy-git

add xautolock to ~/.xinitrc or openbox autostart

xautolock -time 5 -locker "i3lock-fancy" -detectsleep &

Polybar

$ sudo pacman -S alsa-lib curl wireless_tools libmpdclient jsoncpp
$ pacaur -y polybar-git ttf-unifont siji-git ttf-font-awesome i3ipc-glib-git

Tips

setting default applications

$ sudo pacman -S perl-file-mimeinfo
$ mimeopen -d /path/to/file

"Not authorized" error when attempting to mount drive

Make this polkit rule in /etc/polkit-1/rules.d/00-mount-internal.rules:

polkit.addRule(function(action, subject) {
   if ((action.id == "org.freedesktop.udisks2.filesystem-mount-system" &&
      subject.local && subject.active && subject.isInGroup("storage")))
      {
         return polkit.Result.YES;
      }
});

And add your user to storage group:

# usermod -aG storage xtrymind
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment