Merge branch 'master' into nvim-lua

This commit is contained in:
Marko Korhonen 2021-02-27 11:50:22 +02:00
commit 42b00296cf
No known key found for this signature in database
GPG key ID: 911B85FBC6003FE5
18 changed files with 90 additions and 110 deletions

View file

@ -98,76 +98,64 @@ dotfiles:
f_cpupower: f_cpupower:
src: etc/default/cpupower src: etc/default/cpupower
dst: /etc/default/cpupower dst: /etc/default/cpupower
f_arch.conf:
src: boot/loader/entries/arch.conf
dst: /boot/loader/entries/arch.conf
f_arch-lts.conf:
src: boot/loader/entries/arch-lts.conf
dst: /boot/loader/entries/arch-lts.conf
f_kodi.conf:
src: boot/loader/entries/kodi.conf
dst: /boot/loader/entries/kodi.conf
f_pacserve.service.conf: f_pacserve.service.conf:
src: etc/pacserve/pacserve.service.conf src: etc/pacserve/pacserve.service.conf
dst: /etc/pacserve/pacserve.service.conf dst: /etc/pacserve/pacserve.service.conf
profiles: profiles:
Network: Network:
dotfiles: dotfiles:
- d_network - d_network
- f_networkd.conf - f_networkd.conf
Locale: Locale:
dotfiles: dotfiles:
- f_locale.conf - f_locale.conf
- f_locale.gen - f_locale.gen
Pacman: Pacman:
dotfiles: dotfiles:
- f_pacman.conf - f_pacman.conf
- f_pacserve.service.conf - f_pacserve.service.conf
Mirkwood: Mirkwood:
dotfiles: dotfiles:
- f_getty.conf - f_getty.conf
- f_cryptissue - f_cryptissue
- f_welcomemessage.conf - f_welcomemessage.conf
- d_bin - d_bin
- f_adb.service - f_adb.service
- f_bluetooth.conf - f_bluetooth.conf
- f_sshd_config - f_sshd_config
- f_logind.conf - f_logind.conf
- f_60-uinput-permissions.rules - f_60-uinput-permissions.rules
- f_freetype2.sh - f_freetype2.sh
- f_fonts.conf - f_fonts.conf
- f_99-lowbat.rules - f_99-lowbat.rules
- f_ignore - f_ignore
- f_mkinitcpio.conf - f_mkinitcpio.conf
- f_vconsole.conf - f_vconsole.conf
- f_20-quiet-printk.conf - f_20-quiet-printk.conf
- f_system.conf - f_system.conf
- f_cpupower - f_cpupower
- f_arch.conf
- f_arch-lts.conf
- f_kodi.conf
include: include:
- Locale - Locale
- Pacman - Pacman
- Network - Network
Moria: Moria:
include: include:
- Locale - Locale
- Pacman - Pacman
- Network - Network
dotfiles: dotfiles:
- f_sshd_config - f_sshd_config
- f_99-sysctl.conf - f_99-sysctl.conf
- f_cpupower - f_cpupower
Gondor: Gondor:
include: include:
- Locale - Locale
- Pacman - Pacman
dotfiles: dotfiles:
- f_sshd_config - f_sshd_config
localhost: localhost:
include: include:
- Locale - Locale
Edoras: Edoras:
include: include:
- Pacman - Pacman

View file

@ -10,8 +10,10 @@ services:
volumes: volumes:
- /docker/tvheadend:/config - /docker/tvheadend:/config
- /mnt/Storage/Media/PVR:/recordings - /mnt/Storage/Media/PVR:/recordings
- /mnt/Storage/picons:/picons
- /etc/localtime:/etc/localtime:ro - /etc/localtime:/etc/localtime:ro
ports: ports:
- 9981:9981
- 9982:9982 - 9982:9982
devices: devices:
- /dev/dri:/dev/dri #hardware acceleration - /dev/dri:/dev/dri #hardware acceleration

12
efistub/arch.efi Executable file
View file

@ -0,0 +1,12 @@
#/bin/bash
# vim:ft=sh
sudo efibootmgr \
--disk /dev/sda \
--part 1 \
--create \
--quiet \
--remove-dups \
--label "Arch Linux" \
--loader /vmlinuz-linux \
--unicode 'initrd=\amd-ucode.img initrd=\initramfs-linux.img cryptdevice=UUID=19fa8fab-c5fe-454a-9a17-b7185ce975ea:cryptroot:allow-discards root=/dev/mapper/cryptroot rootflags=subvol=root resume=/dev/mapper/cryptroot resume_offset=10530935 rw quiet splash vga=current idle=nomwait cpuidle.governor=teo'

12
efistub/lts.efi Executable file
View file

@ -0,0 +1,12 @@
#!/bin/bash
# vim:ft=sh
sudo efibootmgr \
--disk /dev/sda \
--part 1 \
--create \
--quiet \
--remove-dups \
--label "Arch Linux LTS" \
--loader /vmlinuz-linux-lts \
--unicode 'initrd=\amd-ucode.img initrd=\initramfs-linux-lts.img cryptdevice=UUID=19fa8fab-c5fe-454a-9a17-b7185ce975ea:cryptroot:allow-discards root=/dev/mapper/cryptroot rootflags=subvol=root resume=/dev/mapper/cryptroot resume_offset=10530935 rw quiet splash vga=current idle=nomwait cpuidle.governor=teo'

View file

@ -11,4 +11,4 @@ for bootscript in *.efi; do
done done
# set bootorder # set bootorder
sudo efibootmgr --bootorder 0000,0001,0002 sudo efibootmgr --bootorder 0000,0001

View file

@ -1,12 +0,0 @@
#!/bin/bash
# vim:ft=sh
sudo efibootmgr \
--disk /dev/sda \
--part 1 \
--create \
--quiet \
--remove-dups \
--label "Arch Linux" \
--loader /vmlinuz-linux \
--unicode 'cryptdevice=UUID=19fa8fab-c5fe-454a-9a17-b7185ce975ea:cryptroot:allow-discards root=/dev/mapper/cryptroot rootflags=subvol=root resume=/dev/mapper/cryptroot resume_offset=7345408 rw quiet loglevel=3 vga=current processor.max_cstate=5 rcu_nocbs=0-11 initrd=/amd-ucode.img initrd=/initramfs-linux.img amdgpu.noretry=0'

View file

@ -1,12 +0,0 @@
#!/bin/bash
# vim:ft=sh
sudo efibootmgr \
--disk /dev/sda \
--part 1 \
--create \
--quiet \
--remove-dups \
--label "Arch Linux CK" \
--loader /vmlinuz-linux-ck-zen \
--unicode 'cryptdevice=UUID=19fa8fab-c5fe-454a-9a17-b7185ce975ea:cryptroot:allow-discards root=/dev/mapper/cryptroot rootflags=subvol=root resume=/dev/mapper/cryptroot resume_offset=7345408 rw quiet loglevel=3 vga=current vt.global_cursor_default=0 processor.max_cstate=5 rcu_nocbs=0-11 initrd=/amd-ucode.img initrd=/initramfs-linux.img amdgpu.noretry=0'

View file

@ -1,12 +0,0 @@
#!/bin/bash
# vim:ft=sh
sudo efibootmgr \
--disk /dev/sda \
--part 1 \
--create \
--quiet \
--remove-dups \
--label "Arch Linux LTS" \
--loader /vmlinuz-linux-lts \
--unicode 'cryptdevice=UUID=19fa8fab-c5fe-454a-9a17-b7185ce975ea:cryptroot:allow-discards root=/dev/mapper/cryptroot rootflags=subvol=root resume=/dev/mapper/cryptroot resume_offset=7345408 rw quiet loglevel=3 vga=current vt.global_cursor_default=0 processor.max_cstate=5 rcu_nocbs=0-11 initrd=/amd-ucode.img initrd=/initramfs-linux.img amdgpu.noretry=0'

View file

@ -21,10 +21,8 @@ audio-pitch-correction=yes # automatically insert scaletempo when playing with h
replaygain=track replaygain=track
############# #############
# Plugins/misc # # misc #
############# #############
# Mpris plugin
script=/usr/lib/mpv/mpris.so
# Start ipc server # Start ipc server
input-ipc-server=/tmp/mpvsocket input-ipc-server=/tmp/mpvsocket

View file

@ -3,3 +3,7 @@
output * bg $wallpaper fill output * bg $wallpaper fill
output eDP-1 position 0 0 output eDP-1 position 0 0
output HDMI-A-1 position 1920 0 output HDMI-A-1 position 1920 0
# Disable laptop screen when lid is closed
bindswitch --locked lid:on output $laptop disable
bindswitch --locked lid:off output $laptop enable

View file

@ -0,0 +1,2 @@
I don't use systemd-boot on my main system anymore but this is here for reference
when I'm setting up new systems.

View file

@ -0,0 +1,5 @@
title Arch Linux
initrd /amd-ucode.img
initrd /initramfs-linux.img
linux /vmlinuz-linux
options cryptdevice=UUID=19fa8fab-c5fe-454a-9a17-b7185ce975ea:cryptroot:allow-discards root=/dev/mapper/cryptroot rootflags=subvol=root resume=/dev/mapper/cryptroot resume_offset=10530935 rw quiet splash vga=current idle=nomwait cpuidle.governor=teo

View file

@ -1,5 +0,0 @@
title Arch Linux LTS
initrd /amd-ucode.img
initrd /initramfs-linux-lts.img
linux /vmlinuz-linux-lts
options rd.luks.uuid=19fa8fab-c5fe-454a-9a17-b7185ce975ea rd.luks.name=19fa8fab-c5fe-454a-9a17-b7185ce975ea=cryptroot rd.luks.options=allow-discards root=/dev/mapper/cryptroot rootflags=subvol=root resume=/dev/mapper/cryptroot resume_offset=10530935 rw quiet splash vga=current idle=nomwait cpuidle.governor=teo

View file

@ -1,5 +0,0 @@
title Kodi
initrd /amd-ucode.img
initrd /initramfs-linux.img
linux /vmlinuz-linux
options rd.luks.uuid=19fa8fab-c5fe-454a-9a17-b7185ce975ea rd.luks.name=19fa8fab-c5fe-454a-9a17-b7185ce975ea=cryptroot rd.luks.options=allow-discards root=/dev/mapper/cryptroot rootflags=subvol=root resume=/dev/mapper/cryptroot resume_offset=10530935 rw quiet splash vga=current idle=nomwait video=eDP-1:d video=1920x1080@60

View file

@ -1,3 +1,3 @@
default arch default arch-busybox
timeout 0 timeout 0
editor 1 editor 0

View file

@ -1,8 +1,11 @@
COMPRESSION="zstd"
MODULES=(amdgpu) MODULES=(amdgpu)
FILES=() FILES=()
{%@@ if profile == "Mirkwood" @@%} {%@@ if profile == "Mirkwood" @@%}
BINARIES=("/usr/bin/btrfs") BINARIES=("/usr/bin/btrfs")
HOOKS=(base autodetect modconf block filesystems keyboard fsck systemd sd-colors sd-vconsole sd-encrypt) HOOKS=(colors consolefont welcomemessage base udev autodetect modconf block filesystems btrfs keyboard encrypt fsck)
{%@@ else @@%} {%@@ else @@%}
BINARIES=() BINARIES=()
HOOKS=(colors consolefont base udev autodetect modconf block filesystems keyboard fsck) HOOKS=(colors consolefont base udev autodetect modconf block filesystems keyboard fsck)

View file

@ -1,23 +1,23 @@
#!/usr/bin/env bash #!/usr/bin/env bash
MPVPIPE=/tmp/mpvqueue.playlist
notify="notify-send -i mpv -a mpv" notify="notify-send -i mpv -a mpv"
url="$1" url="$1"
# NOTE: You need to configure mpv to
# enable ipc server on this path (see my mpv config for an example)
MPVSOCKET="/tmp/mpvsocket"
# See if MPV is already running # See if MPV is already running
if [ -z "$(pidof mpv)" ]; then if [ -z "$(pidof mpv)" ]; then
# mpv is not running # mpv is not running
# remove fifo
rm -f $MPVPIPE && mkfifo $MPVPIPE
# pause other players # pause other players
playerctl pause playerctl pause
# start mpv # start mpv
/usr/bin/mpv --no-terminal --input-file="${MPVPIPE}" "$url" & disown /usr/bin/mpv --no-terminal "$url" & disown
# Wait for mpv to be up before moving on to adding anything else to playlist # Wait for mpv to be up before adding anything else to playlist
while [ -z "$(pidof mpv)" ]; do while [ -z "$(pidof mpv)" ]; do
sleep 1 sleep 1
done done
@ -26,5 +26,5 @@ if [ -z "$(pidof mpv)" ]; then
else else
# mpv is running, so add stuff to playlist # mpv is running, so add stuff to playlist
$notify "Adding $url" $notify "Adding $url"
echo "loadfile \"$url\" append-play" >> "${MPVPIPE}" echo "{\"command\": [\"loadfile\", \"$url\", \"append\"]}" | socat - /tmp/mpvsocket
fi fi