Syntax fixes.
This commit is contained in:
parent
b247ced721
commit
43f0477e59
|
|
@ -9,7 +9,7 @@ DEST=${1:-/etc/skel}
|
||||||
KEY_HOME=/usr/share/keyrings
|
KEY_HOME=/usr/share/keyrings
|
||||||
|
|
||||||
# Add user to the video and render groups:
|
# Add user to the video and render groups:
|
||||||
sudo usermod -aG video,render $USER
|
sudo usermod -aG video,render "$USER"
|
||||||
|
|
||||||
# Create the directory for sources files to which we symlink
|
# Create the directory for sources files to which we symlink
|
||||||
mkdir -p /etc/apt/sources.list-available/
|
mkdir -p /etc/apt/sources.list-available/
|
||||||
|
|
@ -211,7 +211,7 @@ EOF
|
||||||
# fi
|
# fi
|
||||||
|
|
||||||
sudo apt-get update
|
sudo apt-get update
|
||||||
sudo apt install -y quickshell niri
|
sudo apt install -y quickshell niri waybar fuzzel alacritty swaylock brightnessctl playerctl
|
||||||
sudo apt install -y dms
|
sudo apt install -y dms
|
||||||
sudo apt install -y mate-polkit
|
sudo apt install -y mate-polkit
|
||||||
|
|
||||||
|
|
@ -219,7 +219,7 @@ sudo apt install -y mate-polkit
|
||||||
# sudo apt install quickshell-git niri-git
|
# sudo apt install quickshell-git niri-git
|
||||||
# sudo apt install dms-git
|
# sudo apt install dms-git
|
||||||
|
|
||||||
mkdir -p ${DEST}/Pictures/Screenshots
|
mkdir -p "${DEST}/Pictures/Screenshots"
|
||||||
|
|
||||||
conf_print_desktop() {
|
conf_print_desktop() {
|
||||||
cat <<-EOF
|
cat <<-EOF
|
||||||
|
|
@ -252,16 +252,16 @@ sleep 1
|
||||||
dbus-run-session niri --session
|
dbus-run-session niri --session
|
||||||
EOF
|
EOF
|
||||||
}
|
}
|
||||||
conf_print_xephyr | tee ${HOME}/.local/bin/niri-start_xnested.sh
|
conf_print_xephyr | tee "${HOME}/.local/bin/niri-start_xnested.sh"
|
||||||
chmod +x ${HOME}/.local/bin/niri-start_xnested.sh
|
chmod +x "${HOME}/.local/bin/niri-start_xnested.sh"
|
||||||
|
|
||||||
# Add your user to the render group:
|
# Add your user to the render group:
|
||||||
sudo usermod -aG render $USER
|
sudo usermod -aG render "$USER"
|
||||||
sudo usermod -aG video $USER
|
sudo usermod -aG video "$USER"
|
||||||
|
|
||||||
# Configuratiom
|
# Configuratiom
|
||||||
# Original Niri Configuration
|
# Original Niri Configuration
|
||||||
conf_print_config() {
|
conf_print_niri_config() {
|
||||||
cat <<EOF
|
cat <<EOF
|
||||||
// This config is in the KDL format: https://kdl.dev
|
// This config is in the KDL format: https://kdl.dev
|
||||||
// "/-" comments out the following node.
|
// "/-" comments out the following node.
|
||||||
|
|
@ -335,7 +335,7 @@ input {
|
||||||
}
|
}
|
||||||
|
|
||||||
// You can configure outputs by their name, which you can find
|
// You can configure outputs by their name, which you can find
|
||||||
// by running $(niri msg outputs) while inside a niri instance.
|
// by running \$(niri msg outputs) while inside a niri instance.
|
||||||
// The built-in laptop monitor is usually called "eDP-1".
|
// The built-in laptop monitor is usually called "eDP-1".
|
||||||
// Find more information on the wiki:
|
// Find more information on the wiki:
|
||||||
// https://yalter.github.io/niri/Configuration:-Outputs
|
// https://yalter.github.io/niri/Configuration:-Outputs
|
||||||
|
|
@ -349,7 +349,7 @@ input {
|
||||||
// If the refresh rate is omitted, niri will pick the highest refresh rate
|
// If the refresh rate is omitted, niri will pick the highest refresh rate
|
||||||
// for the resolution.
|
// for the resolution.
|
||||||
// If the mode is omitted altogether or is invalid, niri will pick one automatically.
|
// If the mode is omitted altogether or is invalid, niri will pick one automatically.
|
||||||
// Run $(niri msg outputs) while inside a niri instance to list all outputs and their modes.
|
// Run \$(niri msg outputs) while inside a niri instance to list all outputs and their modes.
|
||||||
mode "1920x1080@120.030"
|
mode "1920x1080@120.030"
|
||||||
|
|
||||||
// You can use integer or fractional scale, for example use 1.5 for 150% scale.
|
// You can use integer or fractional scale, for example use 1.5 for 150% scale.
|
||||||
|
|
@ -896,10 +896,10 @@ binds {
|
||||||
}
|
}
|
||||||
EOF
|
EOF
|
||||||
}
|
}
|
||||||
# conf_print_config | tee ${DEST}/.config/niri/config.kdl
|
# conf_print_niri_config | tee ${DEST}/.config/niri/config.kdl
|
||||||
|
|
||||||
# DankMaterialShell Niri Configuration
|
# DankMaterialShell Niri Configuration
|
||||||
conf_print_config() {
|
conf_print_niri_config() {
|
||||||
cat <<EOF
|
cat <<EOF
|
||||||
// This config is in the KDL format: https://kdl.dev
|
// This config is in the KDL format: https://kdl.dev
|
||||||
// "/-" comments out the following node.
|
// "/-" comments out the following node.
|
||||||
|
|
@ -1569,7 +1569,7 @@ binds {
|
||||||
include "dms/binds.kdl"}
|
include "dms/binds.kdl"}
|
||||||
EOF
|
EOF
|
||||||
}
|
}
|
||||||
# conf_print_config | tee ${DEST}/.config/niri/config.kdl
|
# conf_print_niri_config | tee ${DEST}/.config/niri/config.kdl
|
||||||
|
|
||||||
# modified the niri config a little bit,
|
# modified the niri config a little bit,
|
||||||
# but I just added some shortcuts and my monitor config.
|
# but I just added some shortcuts and my monitor config.
|
||||||
|
|
@ -2088,7 +2088,7 @@ binds {
|
||||||
}
|
}
|
||||||
EOF
|
EOF
|
||||||
}
|
}
|
||||||
conf_print_config | tee ${DEST}/.config/niri/config.kdl
|
conf_print_config | tee "${DEST}/.config/niri/config.kdl"
|
||||||
|
|
||||||
# Disabled as we add to a complete config.kdl above.
|
# Disabled as we add to a complete config.kdl above.
|
||||||
# Add DankMaterialShell Configuration
|
# Add DankMaterialShell Configuration
|
||||||
|
|
@ -2104,5 +2104,5 @@ EOF
|
||||||
}
|
}
|
||||||
# conf_print_dms_niri_config | tee ${DEST}/.config/niri/config.kdl
|
# conf_print_dms_niri_config | tee ${DEST}/.config/niri/config.kdl
|
||||||
|
|
||||||
mkdir -p ${DEST}/.config/niri/dms
|
mkdir -p "${DEST}/.config/niri/dms"
|
||||||
touch ${DEST}/.config/niri/dms/{colors,layout,alttab,binds}.kdl
|
touch "${DEST}/.config/niri/dms/{colors,layout,alttab,binds}.kdl"
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue