update README.md and check_dependencies.sh, use Hyprland without path

This commit is contained in:
Łukasz Pankowski 2024-06-29 18:12:34 +02:00
parent 30793b5a46
commit 05c670824b
3 changed files with 78 additions and 35 deletions

View File

@ -4,11 +4,40 @@ Lupan's config files
Installation Installation
------------ ------------
Install Hyprland
----------------
To reproduce my environment clone this repo into `~/dotfiles` and check To reproduce my environment clone this repo into `~/dotfiles` and check
that you have required programs in your `PATH` with that you have required programs in your `PATH` with
``` ```
$ sh check_dependencies.sh $ sh check_dependencies.sh hypr
```
Install font `ttf-firacode-nerd` (https://github.com/ryanoasis/nerd-fonts/releases/download/v3.0.2/FiraCode.zip).
Install proper configurations with
```
$ stow shell hyprland alacritty xsession nvim yazi
```
Where `xsession` is just to install `lupan-set-theme` script, nvim and yazi may be skipped if you do not need them.
Change to `zsh` as your login shell with
```
$ chsh -s /usr/bin/zsh
```
Install DWM (old)
-----------------
To reproduce my environment clone this repo into `~/dotfiles` and check
that you have required programs in your `PATH` with
```
$ sh check_dependencies.sh dwm
``` ```
Install font `ttf-firacode-nerd` (https://github.com/ryanoasis/nerd-fonts/releases/download/v3.0.2/FiraCode.zip). Install font `ttf-firacode-nerd` (https://github.com/ryanoasis/nerd-fonts/releases/download/v3.0.2/FiraCode.zip).

View File

@ -1,37 +1,51 @@
#!/bin/sh #!/bin/sh
echo '# required:' REQUIRED="$1"
for CMD in \
zsh \ check_dependency() {
git \ local CMD="$1"
cc \ shift
make \ for REQ in "$@"; do
setxkbmap \ if [ "$REQ" = "$REQUIRED" ]; then
slock \
systemctl \
xmodmap \
xrandr \
xrdb \
xset \
xsetroot \
hsetroot \
xsettingsd \
sed \
pkill \
dmenu \
dmenu_run \
xss-lock \
exa \
fzf \
; do
which "$CMD" which "$CMD"
break
fi
done done
}
echo '# required:'
check_dependency zsh dwm hypr
check_dependency git dwm hypr
check_dependency cc dwm
check_dependency make dwm
check_dependency setxkbmap dwm
check_dependency slock dwm
check_dependency systemctl dwm hypr
check_dependency xmodmap dwm
check_dependency xrandr dwm
check_dependency xrdb dwm
check_dependency xset dwm
check_dependency xsetroot dwm
check_dependency hsetroot dwm
check_dependency xsettingsd dwm
check_dependency sed dwm hypr
check_dependency pkill dwm
check_dependency dmenu dwm
check_dependency dmenu_run dwm
check_dependency xss-lock dwm
check_dependency exa dwm hypr
check_dependency fzf dwm hypr
check_dependency Hyprland hypr
check_dependency hyprctl hypr
check_dependency alacritty hypr
check_dependency swaylock hypr
check_dependency waybar hypr
check_dependency wofi hypr
echo -e '\n# optional:' echo -e '\n# optional:'
for CMD in \
sx \ check_dependency sx dwm
picom \ check_dependency picom dwm
compton \ check_dependency compton dwm
xbacklight; do check_dependency xbacklight dwm
which "$CMD"
done

View File

@ -29,8 +29,8 @@ export PATH
# start X or Hyprland at login # start X or Hyprland at login
if [[ -z "$DISPLAY" && -z "$WAYLAND_DISPLAY" && "$XDG_VTNR" -eq 1 ]]; then if [[ -z "$DISPLAY" && -z "$WAYLAND_DISPLAY" && "$XDG_VTNR" -eq 1 ]]; then
if which /usr/bin/Hyprland > /dev/null; then if which Hyprland > /dev/null; then
exec /usr/bin/Hyprland exec Hyprland
elif which /usr/bin/sx > /dev/null; then elif which /usr/bin/sx > /dev/null; then
exec /usr/bin/sx ~/.xsession exec /usr/bin/sx ~/.xsession
fi fi