From 467ee27d1286b73b0c67b34b13a85c12888a7681 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yi=C4=9Fit=20=C3=87olako=C4=9Flu?= Date: Fri, 19 Feb 2021 12:06:02 +0300 Subject: [PATCH] More setup --- chroot/AUR.txt | 10 ++++++++++ chroot/chroot.sh | 4 ++-- chroot/nonAUR.txt | 7 ++++++- install.sh | 2 ++ misc/systemd/user/.gitignore | 1 + misc/systemd/user/ssh-agent.service | 10 ++++++++++ scripts/dmenu-logout | 5 +++-- scripts/status-bar/cpu-temp | 2 +- xorg/xinitrc | 3 +++ zsh/zshrc | 1 + 10 files changed, 39 insertions(+), 6 deletions(-) create mode 100644 misc/systemd/user/.gitignore create mode 100644 misc/systemd/user/ssh-agent.service diff --git a/chroot/AUR.txt b/chroot/AUR.txt index 6f508f71..71992f4e 100644 --- a/chroot/AUR.txt +++ b/chroot/AUR.txt @@ -1,18 +1,26 @@ activitywatch-bin +aic94xx-firmware antibody betterlockscreen direnv +gconf ghidra-darcula gitkraken +gksu glxinfo i3lock-color ifuse jetbrains-toolbox +libgksu ly mailspring mconnect-git +nerd-fonts-hack ngrok numix-icon-theme-git +plymouth-git +plymouth-theme-cubes-git +plymouth-theme-darth-vader-git postman-bin qt5-styleplugins rofi-bluetooth-git @@ -21,7 +29,9 @@ spicetify-cli spotify spotify-tui sublime-text-3 +ttf-material-design-icons vue-cli +wd719x-firmware whatsapp-nativefier-dark yay zoom diff --git a/chroot/chroot.sh b/chroot/chroot.sh index cd9d5724..1eaa91a0 100755 --- a/chroot/chroot.sh +++ b/chroot/chroot.sh @@ -14,10 +14,10 @@ systemctl enable fstrim.timer echo -e "127.0.0.1 localhost\n::1 localhost\n127.0.0.1 tatooine.localdomain tatooine" > /etc/hosts cat << EOF > /etc/mkinitcpio.conf -MODULES=() +MODULES=(vfat) BINARIES=() FILES=() -HOOKS=(base udev autodetect keyboard keymap consolefont modconf block encrypt vfat filesystems fsck) +HOOKS=(base udev autodetect keyboard keymap consolefont modconf block encrypt filesystems fsck) EOF cat << EOF > /etc/initcpio/hooks/openswap diff --git a/chroot/nonAUR.txt b/chroot/nonAUR.txt index 88a32eac..36e0ddf7 100644 --- a/chroot/nonAUR.txt +++ b/chroot/nonAUR.txt @@ -9,6 +9,7 @@ binutils bison blueman bluez-utils +borgmatic calibre chrony clipmenu @@ -16,6 +17,7 @@ cmake discord dunst efibootmgr +efitools fakeroot feh figlet @@ -30,6 +32,7 @@ gettext git gnome-bluetooth gnome-keyring +gparted gradle grep groff @@ -38,6 +41,7 @@ gvfs-afc gzip htop inetutils +intel-ucode jdk11-openjdk jre11-openjdk kitty @@ -68,7 +72,6 @@ pamixer patch pavucontrol picom -pkgconf playerctl polkit-gnome pulseaudio @@ -80,6 +83,7 @@ redis refind rofi rsync +sbsigntools sed shotwell sudo @@ -89,6 +93,7 @@ texinfo thunar tmux tree +ttf-dejavu unzip vi vim diff --git a/install.sh b/install.sh index 26a49fc5..cfcc8e9c 100755 --- a/install.sh +++ b/install.sh @@ -13,6 +13,8 @@ ln -s ~/.dotfiles/gtk/gtk-4.0 ~/.config/gtk-4.0 ln -s ~/.dotfiles/misc/dunst ~/.config/dunst ln -s ~/.dotfiles/misc/rofi ~/.config/rofi ln -s ~/.dotfiles/misc/zathura ~/.config/zathura +ln -s ~/.dotfiles/misc/systemd .config/systemd + # Scripts ln -s ~/.dotfiles/scripts ~/.scripts diff --git a/misc/systemd/user/.gitignore b/misc/systemd/user/.gitignore new file mode 100644 index 00000000..419e6be4 --- /dev/null +++ b/misc/systemd/user/.gitignore @@ -0,0 +1 @@ +default.target.wants diff --git a/misc/systemd/user/ssh-agent.service b/misc/systemd/user/ssh-agent.service new file mode 100644 index 00000000..94284103 --- /dev/null +++ b/misc/systemd/user/ssh-agent.service @@ -0,0 +1,10 @@ +[Unit] +Description=SSH key agent + +[Service] +Type=simple +Environment=SSH_AUTH_SOCK=%t/ssh-agent.socket +ExecStart=/usr/bin/ssh-agent -D -a $SSH_AUTH_SOCK + +[Install] +WantedBy=default.target diff --git a/scripts/dmenu-logout b/scripts/dmenu-logout index 6ecfdd63..b44d21da 100755 --- a/scripts/dmenu-logout +++ b/scripts/dmenu-logout @@ -31,6 +31,7 @@ logout() { # Menu items items="logout suspend +hibernate reboot poweroff" @@ -51,10 +52,10 @@ case $selection in systemctl suspend ;; reboot) - reboot + systemctl reboot ;; halt|poweroff|shutdown) - shutdown -h now + systemctl poweroff ;; esac diff --git a/scripts/status-bar/cpu-temp b/scripts/status-bar/cpu-temp index 614fb63c..01e3d249 100755 --- a/scripts/status-bar/cpu-temp +++ b/scripts/status-bar/cpu-temp @@ -1,6 +1,6 @@ #! /bin/sh -temp=$(sed 's/000$/°C/' /sys/class/thermal/thermal_zone0/temp) +temp=$(sed 's/[0-9][0-9][0-9]$/°C/' /sys/class/thermal/thermal_zone4/temp) icon= echo "$icon $temp " diff --git a/xorg/xinitrc b/xorg/xinitrc index e3eeb08a..8f951c65 100755 --- a/xorg/xinitrc +++ b/xorg/xinitrc @@ -1,5 +1,6 @@ #! /bin/sh eval $(/usr/bin/gnome-keyring-daemon --start --components=pkcs11,secrets,ssh) +export SSH_AUTH_SOCK export DRI_PRIME=1 feh --bg-fill /home/yigit/Pictures/Wallpapers/ocean-cliff.jpg #Backgroun xrdb ~/.Xresources & @@ -21,6 +22,8 @@ mailspring & dbus-update-activation-environment --systemd DISPLAY export SSH_AUTH_SOCK export QT_QPA_PLATFORMTHEME="qt5ct" +export _JAVA_AWT_WM_NONREPARENTING=1 +export AWT_TOOLKIT=MToolkit if [ -f ~/.xmodmap ]; then xmodmap ~/.xmodmap fi diff --git a/zsh/zshrc b/zsh/zshrc index b0f3ef0f..b7a14b96 100644 --- a/zsh/zshrc +++ b/zsh/zshrc @@ -56,5 +56,6 @@ export FLUTTER_HOME=~/flutter export PATH=$PATH:$ANDROID_HOME/tools export PATH=$PATH:$ANDROID_HOME/platform-tools export PATH=$PATH:$FLUTTER_HOME/bin +export BORG_KEYS_DIR=~/.keys/borg [ -f ~/.fzf.zsh ] && source ~/.fzf.zsh