Add 20x scripts

This commit is contained in:
Donovan Glover 2018-08-31 16:02:48 -04:00
parent 4bf2581d55
commit 8aabd763a0
No known key found for this signature in database
GPG Key ID: EA7408A77AE1BE65
5 changed files with 165 additions and 0 deletions

29
sh/201-lightdm Normal file
View File

@ -0,0 +1,29 @@
#!/bin/sh
#
# LightDM is a lightweight display manager that just works.
#
# Note that instead of using `lightdm-gtk-greeter-settings`, which
# needs to be run with sudo, you can simply edit the config file
# located at /etc/lightdm/lightdm-gtk-greeter.conf instead.
#
# Note that LightDM is not needed if you use Plasma (which you'd
# want to use with SDDM with instead).
#
# lightdm: The LightDM display manager
# lightdm-gtk-greeter: The greeter for LightDM (GTK)
# lightdm-gtk-greeter-settings: GUI for editing LightDM settings
# light-locker: Prevents leaving ttys vulnerable while locked
#
# https://wiki.archlinux.org/index.php/LightDM
set -xe
pacman -S lightdm
pacman -S lightdm-gtk-greeter
pacman -S lightdm-gtk-greeter-settings
pacman -S light-locker
systemctl enable lightdm.service

37
sh/202-xfce Normal file
View File

@ -0,0 +1,37 @@
#!/bin/sh
#
# After all these years, Xfce is still one of the best desktop
# environments. Although the defaults are bland, you can customize
# it to look however you want.
#
# Alternatively install the `xfce4-goodies` package if you want
# everything instead of the select few applications I choose here.
#
# Note that Xfce doesn't exactly handle HiDPI well, so you might want
# to use bspwm or Plasma instead.
#
# mousepad: basic text editor
# parole: basic media player
# ristretto: basic image viewer
#
# https://wiki.archlinux.org/index.php/Xfce
set -xe
pacman -S xfce4
pacman -S mousepad
pacman -S parole
pacman -S ristretto
pacman -S xfce4-mpc-plugin
pacman -S xfce4-notifyd
pacman -S xfce4-pulseaudio-plugin
pacman -S xfce4-screenshooter
pacman -S xfce4-taskmanager

50
sh/203-bspwm Normal file
View File

@ -0,0 +1,50 @@
#!/bin/sh
#
# bspwm is the best window manager. It does one thing really
# well and supports running commands directly through the shell.
#
# I used to love bspwm a lot. I still do, but it's not as useful
# now that I know how to use tmux. By using a terminal multiplexer,
# the issue of organizing several terminal windows in one view is
# solved without having to depend on the window manager.
#
# bspwm is still useful when you want a minimal setup with no
# overhead, since it performs exceptionally well compared to other
# desktop environments riddled with features. Plus, it supports
# HiDPI really well, with the exception of some older programs.
#
# The Simple X Hotkey Daemon (sxhkd) is used to make keyboard
# bindings so you can interact with bspwm. Make sure your bspwmrc
# file is executable (chmod +x) as well.
#
# https://wiki.archlinux.org/index.php/Bspwm
set -xe
# Install xorg as the display server (required)
pacman -S xorg-server
# Prerequisite for running bspwm without a display manager
# Remove this line if you're using one
pacman -S xorg-xinit
pacman -S xdo # Show / hide windows (for polybar)
pacman -S xorg-xprop # Get window status (for polybar)
pacman -S xclip # Clipboard manager (to copy with a command)
pacman -S xcape # Make Caps Lock = Ctrl/ESC
# The actual window manager and hotkey daemon
pacman -S bspwm
pacman -S sxhkd
# compton is the standard compositor.
pacman -S compton
# Terminal emulator
pacman -S rxvt-unicode
yay -S urxvtcd
# polybar is the standard panel.
yay -S polybar

25
sh/204-plasma Normal file
View File

@ -0,0 +1,25 @@
#!/bin/sh
#
# KDE Plasma is a really nice and feature rich desktop environment
# that also has good HiDPI support.
#
# It includes many applications that the common user may need, as
# well as some games one may find interesting.
#
# Although resource usage is considerably high compared to using just
# a window manager like bspwm, KDE offers many aspects of itself that
# you simply cannot achieve with a window manager without dedicating
# significant time and energy.
#
# To install just the desktop environment and nothing else,
# use the `plasma-desktop` package instead of `plasma`.
#
# The Plasma desktop environment also has great support for multiple
# users out of the box. There is no need to worry about making new
# users manually, as this can be handled through the GUI.
#
# https://wiki.archlinux.org/index.php/KDE
set -xe
pacman -S plasma

24
sh/205-sddm Normal file
View File

@ -0,0 +1,24 @@
#!/bin/sh
#
# SDDM is the standard display manager for KDE Plasma.
#
# It also has exceptionally well HiDPI support, more so
# than LightDM. The last few lines enable just that. Remove
# them if you're using a regular display.
#
# https://wiki.archlinux.org/index.php/SDDM
set -xe
sudo pacman -S sddm
sudo pacman -S sddm-kcm
systemctl enable sddm.service
echo '[Wayland]' >> /etc/sddm.conf
echo 'EnableHiDPI=true' >> /etc/sddm.conf
echo '[X11]' >> /etc/sddm.conf
echo 'EnableHiDPI=true' >> /etc/sddm.conf
echo 'ServerArguments= -dpi 192' >> /etc/sddm.conf