Various changes

This commit is contained in:
2021-08-03 21:39:05 +01:00
parent 8541b1e861
commit 16a5a7477c
4 changed files with 13 additions and 1 deletions

View File

@@ -15,6 +15,7 @@ eval $(/usr/bin/gnome-keyring-daemon --start --components=pkcs11,secrets,ssh)
export $(gnome-keyring-daemon --start --components=pkcs11,secrets,ssh,gpg)
dbus-update-activation-environment --systemd DISPLAY
export SSH_AUTH_SOCK
setxkbmap gb
#source /etc/X11/xinit/xinitrc.d/50-systemd-user.h

View File

@@ -36,3 +36,4 @@ setupkeyring
setupfirefox
setupjoplin
setupnextcloud
setupprinter

10
.local/bin/setup/setupprinter Executable file
View File

@@ -0,0 +1,10 @@
#! /bin/bash
sudo pacman --noconfirm --needed -S python-qt5 hplip nss-mdns >/dev/null 2>&1
sudo sed 's/hosts: files mymachines myhostname resolve [!UNAVAIL=return] dns/hosts: files mymachines myhostname mdns_minimal [NOTFOUND=return] resolve [!UNAVAIL=return] dns'
sudo systemctl enable --now avahi daemon
hp-setup -i 192.168.1.20

View File

@@ -1,4 +1,4 @@
#!/bin/sh
!/bin/sh
# works on any init system
# requirements: dmenu, xorg-setxkbmap
kb="$(setxkbmap -query | grep -oP 'layout:\s*\K\w+')" || exit 1