Changes with .scripts dir

- change name of 'passworder' to 'rofi-keepasxc'
- move 'rofi-keepassxc' to other repo
- delete useless scripts
- modify 'updot' script to not adding 'rofi-keepassxc' and useless scripts to this repo
- modify sxhkd configs because of reason change name of 'passworder'
This commit is contained in:
samedamci 2020-03-11 17:22:29 +01:00
parent 74fa20029f
commit 99af395104
11 changed files with 14 additions and 39 deletions

3
.gitmodules vendored Normal file
View File

@ -0,0 +1,3 @@
[submodule "botfiles/.scripts/rofi-keepassxc"]
path = botfiles/.scripts/rofi-keepassxc
url = https://github.com/samedamci/rofi-keepassxc

View File

@ -32,7 +32,7 @@ XF86Calculator
st -e bc
# passworder
super + p
$HOME/.scripts/passworder.sh
$HOME/.scripts/rofi-keepassxc/rofi-keepassxc
#~~~~~~~~~~~~
# WM CONTROL

View File

@ -26,7 +26,7 @@ End
$HOME/.scripts/screenshot.sh
# passworder
super + p
$HOME/.scripts/passworder.sh
$HOME/.scripts/rofi-keepassxc/rofi-keepassxc
#~~~~~~~~~~~~
# WM CONTROL

View File

@ -30,7 +30,9 @@ XF86Mail
# bc
XF86Calculator
st -e bc
# passworder
super + p
$HOME/.scripts/rofi-keepassxc/rofi-keepassxc
#~~~~~~~~~~~~
# WM CONTROL
#~~~~~~~~~~~~

View File

@ -1 +0,0 @@
ip a show wlp8s0 | grep -Eo '(inet)?*([0-9]*\.){3}[0-9]*' | grep -v '**\.255'

0
botfiles/.scripts/lockscreen.sh Normal file → Executable file
View File

View File

@ -1,17 +0,0 @@
#!/usr/bin/env zsh
CACHE=$HOME/.cache/passworder/
mkdir -p $CACHE
DB="$HOME/Passwords/keepass.kdbx"
rofi -dmenu -i -p "Enter your database password" -l 0 -password | read DBPASS
ERROR_MSG='Error while reading the database'
CHECK=$(echo $DBPASS | keepassxc-cli open $DB &> $CACHE/tmp && grep -oh $ERROR_MSG $CACHE/tmp)
if [ "$CHECK" = "$ERROR_MSG" ]; then
rofi -e "$ERROR_MSG"
else
echo $DBPASS | keepassxc-cli ls $DB | grep -v 'Enter' | grep -v '?*/' | sort | rofi -dmenu -i -p "Entry list" -l 30 | read ENTRY
echo $DBPASS | keepassxc-cli clip $DB $ENTRY
fi

@ -0,0 +1 @@
Subproject commit 164c4891fd7f57b1a7fb444de9d15cb41fb72f8b

View File

@ -1,6 +0,0 @@
#!/bin/sh
grep -Eo '#[0-9,A-Z,a-z]**' ~/.Xresources | sort | head -n 1
echo
echo -en "\e[$((30 + i))m\u2588\u2588 ${colors[i]} \e[0m"; echo -e "\n"

View File

@ -1,9 +0,0 @@
#!/usr/bin/env bash
grep -Eoq '#[0-9,A-Z,a-z]**' ~/.Xresources | sort
echo
for i in {0..7}; do echo -en "\e[$((30 + i))m\u2588\u2588 ${colors[i]} \e[0m"; echo "${colors[i]}"; done
echo
for i in {8..15}; do echo -en "\e[1;$((22 + i))m\u2588\u2588 ${colors[i]} \e[0m"; done
echo -e "\n"

8
updot
View File

@ -2,9 +2,11 @@
echo "Adding configs to dotfiles repo..."
cd ~
cp -r .zshrc .Xresources .aliases .bashrc .scripts .zprofile .bash_profile .local/share/TelegramDesktop/tdata/shortcuts-custom.json ~/Dotfiles/botfiles/ &>/dev/null
cd .config
cp .zshrc .Xresources .aliases .bashrc .zprofile .bash_profile .local/share/TelegramDesktop/tdata/shortcuts-custom.json ~/Dotfiles/botfiles/ &>/dev/null
cd ~/.scripts/
cp lockscreen.sh powermenu.sh screenshot.sh update-check.sh updater.sh wificheck.sh ~/Dotfiles/botfiles/.scripts/ &>/dev/null
cd ~/.config
cp -r autostart bspwm dconf dunst GIMP gtk-3.0 gtk-2.0 homepage mpd ncmpcpp neofetch nvim picom polybar qutebrowser ranger rofi sxhkd vifm vis vlc wallpapers yay zsh ~/Dotfiles/botfiles/.config/ &>/dev/null
cd ~/Dotfiles/botfiles/.config/
rm -rf nvim/bundle zsh/plugins mpd/database zsh/history mpd/mpd.log mpd/pid mpd/state mpd/sticker.sql vis/vis.log ncmpcpp/lyrics
rm -rf nvim/bundle zsh/plugins mpd/database zsh/history mpd/mpd.log mpd/pid mpd/state mpd/sticker.sql vis/vis.log ncmpcpp/lyrics
echo "Done."