mirror of
https://github.com/LukeSmithxyz/voidrice.git
synced 2026-03-20 01:37:45 +01:00
- Format all shell scripts using [shfmt] (https://github.com/mvdan/sh). Options used: * `-bn`: binary ops like && and | may start a line * `-sr`: redirect operators will be followed by a space * `-ci`: indent switch cases * `-i 4`: indent 4 spaces * `-s`: simplify the code * `-p`: parse for posix compliance - Add Github action to lint changes to scripts and enforce formatting going forward Signed-off-by: Vladislav Doster <mvdoster@gmail.com>
18 lines
580 B
Bash
Executable File
18 lines
580 B
Bash
Executable File
#!/bin/sh
|
|
|
|
# xinitrc runs automatically when you run startx.
|
|
|
|
# There are some small but important commands that need to be run when we start
|
|
# the graphical environment. There is a link to this file in ~/.xprofile
|
|
# because that file is run automatically if someone uses a display manager
|
|
# (login screen) and so they are needed there. To prevent doubling up commands,
|
|
# I source them here with the line below.
|
|
|
|
if [ -f "${XDG_CONFIG_HOME:-$HOME/.config}/x11/xprofile" ]; then
|
|
. "${XDG_CONFIG_HOME:-$HOME/.config}/x11/xprofile"
|
|
else
|
|
. "$HOME/.xprofile"
|
|
fi
|
|
|
|
ssh-agent dwm
|