mirror of
https://github.com/mitchell/dotfiles.git
synced 2026-07-17 08:09:35 +00:00
feat: update niri config for VM, add cachyos repo script
- Update niri output config for Virtual-1 display - Add cachyos repository installation script - Fix btrfs device path from vda2 to vda1 - Configure sudo-rs with symbolic links - Comment out polkit agent and swayidle spawns
This commit is contained in:
parent
9b64299c45
commit
fddae3ba36
5 changed files with 29 additions and 9 deletions
|
|
@ -29,11 +29,11 @@ input {
|
|||
}
|
||||
}
|
||||
|
||||
output "ASUSTek COMPUTER INC VG27WQ L1LMDW002255" {
|
||||
mode "2560x1440@164.998"
|
||||
output "Virtual-1" {
|
||||
mode "1920x1200"
|
||||
scale 1
|
||||
transform "normal"
|
||||
position x=2560 y=0
|
||||
position x=1920 y=0
|
||||
}
|
||||
|
||||
layout {
|
||||
|
|
@ -77,8 +77,7 @@ layout {
|
|||
}
|
||||
}
|
||||
|
||||
spawn-at-startup "/usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1"
|
||||
spawn-sh-at-startup "swayidle -w timeout 1800 'niri msg action power-off-monitors' timeout 1860 'qs -c noctalia-shell ipc call lockScreen lock'"
|
||||
//spawn-at-startup "/usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1"
|
||||
|
||||
hotkey-overlay {
|
||||
skip-at-startup
|
||||
|
|
|
|||
9
cachyos_repo
Executable file
9
cachyos_repo
Executable file
|
|
@ -0,0 +1,9 @@
|
|||
#!/usr/bin/env fish
|
||||
curl https://mirror.cachyos.org/cachyos-repo.tar.xz -o cachyos-repo.tar.xz
|
||||
and tar xvf cachyos-repo.tar.xz
|
||||
and cd cachyos-repo/
|
||||
and sudo ./cachyos-repo.sh
|
||||
and sudo pacman -S --noconfirm cachyos-rate-mirrors
|
||||
and sudo cachyos-rate-mirrors
|
||||
and sudo pacman -Syuu --noconfirm
|
||||
and sudo pacman -S linux-cachyos linux-cachyos-headers
|
||||
|
|
@ -2,10 +2,10 @@
|
|||
|
||||
lsblk
|
||||
echo
|
||||
read -P 'Device (/dev/vda2):' -l device
|
||||
read -P 'Device (/dev/vda1): ' -l device
|
||||
|
||||
if test -z "$device"
|
||||
set device /dev/vda2
|
||||
set device /dev/vda1
|
||||
end
|
||||
|
||||
mkfs.btrfs $device
|
||||
|
|
|
|||
|
|
@ -13,3 +13,9 @@ input {
|
|||
hotkey-overlay {
|
||||
skip-at-startup
|
||||
}
|
||||
output "Virtual-1" {
|
||||
mode "1920x1200"
|
||||
scale 1
|
||||
transform "normal"
|
||||
position x=1920 y=0
|
||||
}
|
||||
|
|
|
|||
10
install_arch
10
install_arch
|
|
@ -147,9 +147,15 @@ function add_lvm2_mkinitcpio_hook -a is_encrypt
|
|||
end
|
||||
|
||||
function configure_sudo
|
||||
log 'Adding and configuring wheel group'
|
||||
install sudo
|
||||
log 'Installing and configuring sudo'
|
||||
install sudo sudo-rs
|
||||
|
||||
ln -s /usr/bin/su-rs /usr/local/bin/su
|
||||
ln -s /usr/bin/sudo-rs /usr/local/bin/sudo
|
||||
ln -s /usr/bin/sudoedit-rs /usr/local/bin/sudoedit
|
||||
ln -s /usr/bin/visudo-rs /usr/local/bin/visudo
|
||||
sed -i 's/# %wheel ALL=(ALL:ALL) ALL/%wheel ALL=(ALL:ALL) ALL/' /etc/sudoers
|
||||
sed -i 's/Defaults!\/usr\/bin\/visudo/Defaults!\/usr\/local\/bin\/visudo/' /etc/sudoers
|
||||
end
|
||||
|
||||
function create_admin_user -a username pass
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue