From 6dd179e85a0834420de3fea9ae409b8fab7c7f36 Mon Sep 17 00:00:00 2001 From: Ruben Beltran del Rio Date: Fri, 11 Apr 2025 16:25:25 +0200 Subject: use sudo dnf, add wofi config, check for passage store --- config/wofi/config | 18 ++++++++++++++++++ config/wofi/style.css | 39 +++++++++++++++++++++++++++++++++++++++ install | 16 ++++++++++------ provision | 6 +++++- 4 files changed, 72 insertions(+), 7 deletions(-) create mode 100644 config/wofi/config create mode 100644 config/wofi/style.css diff --git a/config/wofi/config b/config/wofi/config new file mode 100644 index 0000000..5bed1e6 --- /dev/null +++ b/config/wofi/config @@ -0,0 +1,18 @@ +show=drun +location=top_left +allow_images=true +image_size=48 +columns=5 +width=100% +height=97% +always_parse_args=true +show_all=true +print_command=true +layer=overlay +insensitive=true +halign=fill +content_halign=fill +valign=start +no_actions=true +line_wrap=char +sort_order=alphabetical diff --git a/config/wofi/style.css b/config/wofi/style.css new file mode 100644 index 0000000..153d240 --- /dev/null +++ b/config/wofi/style.css @@ -0,0 +1,39 @@ +window { + font-family: 'Input Sans Compressed'; + font-size: 13px; + background-color: rgba(15, 38, 31, 0.95); + color: #DAE6E3; + border-radius: 0; +} + +#outer-box { + margin: 0; + padding: 0; +} + +#input { + background-color: #DAE6E3; + border-radius: 0; + margin: 0; + padding: 2px 0 0; +} + +flowboxchild { + background: transparent; + border-radius: 0; + padding: 0; + margin: 0; +} + +.entry { + padding: 10px; + border-radius: 0; +} + +.entry label { + font-weight: 200; +} + +.entry#selected { + background: #f0f; +} diff --git a/install b/install index dd63d01..ce8bdc0 100755 --- a/install +++ b/install @@ -73,6 +73,9 @@ ln -fns ../.dotfiles/config/emacs ~/.config/emacs # fuzzel ln -fns ../.dotfiles/config/fuzzel ~/.config/fuzzel +# +# wofi +ln -fns ../.dotfiles/config/wofi ~/.config/wofi # mako ln -fns ../.dotfiles/config/mako ~/.config/mako @@ -100,12 +103,13 @@ ln -fns .dotfiles/age-recipients ~/.age-recipients touch ~/.tool-versions -# Italics setup -echo "Setting up terminfo" -tic xterm-256color-italic.terminfo - -echo "Cloning password store" +echo "Setting up password store" mkdir -p ~/.passage -git clone git@git.r.bdr.sh:rbdr/pass ~/.passage/store +if [ ! -d "$HOME/.passage" ]; then + echo ">>> Cloning." + git clone git@git.r.bdr.sh:rbdr/pass ~/.passage/store +else + echo ">>> Already exists." +fi echo "Sensitive files have not been decrypted. Run ./sensitive to decrypt." diff --git a/provision b/provision index 429cee8..aa6a05f 100755 --- a/provision +++ b/provision @@ -6,18 +6,22 @@ else if command -v brew &> /dev/null; then command_name="brew" install_command="install" + privilege="" else if command -v dnf &> /dev/null; then command_name="dnf" install_command="install" + privilege="sudo" else if command -v pacman &> /dev/null; then command_name="pacman" install_command="-Sy" + privilege="sudo" else if command -v apt &> /dev/null; then command_name="apt" install_command="install" + privilege="sudo" else echo "Error: No valid package manager. Make sure brew or apt are available." exit 1 @@ -28,7 +32,7 @@ else file="./provisioning/${command_name}_$1" if [[ -f $file ]]; then echo "Provisioning $1 with $command_name" - cat ./provisioning/${command_name}_$1 | xargs ${command_name} ${install_command} + cat ./provisioning/${command_name}_$1 | xargs ${privilege} ${command_name} ${install_command} else echo "No provisioning recipe for $1 with $command_name" exit 1 -- cgit