From d097818be3cbcc76fe36178d6a5f804aab7c1c4b Mon Sep 17 00:00:00 2001 From: LordMathis Date: Sun, 20 Jan 2019 11:11:36 +0100 Subject: [PATCH] Add KeePassXC --- .config/i3/config | 6 ++++++ .config/polybar/config | 2 +- bin/setup.sh | 4 ++++ bin/start_keepassxc.sh | 3 +++ 4 files changed, 14 insertions(+), 1 deletion(-) create mode 100755 bin/start_keepassxc.sh diff --git a/.config/i3/config b/.config/i3/config index d32ec52..4f0dc13 100644 --- a/.config/i3/config +++ b/.config/i3/config @@ -160,6 +160,12 @@ exec --no-startup-id redshift-gtk # Switch display output exec --no-startup-id $HOME/bin/switch_monitors.sh +# KeePassXC +exec --no-startup-id $HOME/bin/start_keepassxc.sh + +# Mate-power-manager +exec --no-startup-id mate-power-manager + # Launch Nemo bindsym $mod+n exec nemo diff --git a/.config/polybar/config b/.config/polybar/config index 7675915..0aadb52 100644 --- a/.config/polybar/config +++ b/.config/polybar/config @@ -49,7 +49,7 @@ font-2 = Weather Icons:size=10;1 modules-left = i3 modules-center = datetime openweathermap -modules-right = system-usb-udev updates pulseaudio-tail wlan eth xkeyboard battery powermenu +modules-right = system-usb-udev updates pulseaudio-tail wlan eth xkeyboard battery powermenu tray-detached = false tray-position = left diff --git a/bin/setup.sh b/bin/setup.sh index abfb9c6..ca9df12 100755 --- a/bin/setup.sh +++ b/bin/setup.sh @@ -4,6 +4,10 @@ echo "Enter OpenWeatherMap API key" read line echo $line | secret-tool store --label='OpenWeatherMap API Key' openweathermap api_key +echo "Enter KeePassXC master password" +read line +echo $line | secret-tool store --label='KeePassXC master password' keepassxc master + echo "Enter git name" read name git config --global user.name $name diff --git a/bin/start_keepassxc.sh b/bin/start_keepassxc.sh new file mode 100755 index 0000000..f32b896 --- /dev/null +++ b/bin/start_keepassxc.sh @@ -0,0 +1,3 @@ +#!/bin/sh + +secret-tool lookup keepassxc master | keepassxc --pw-stdin ~/Documents/Important/passwords.kdbx