From 3dd5266cca6752e07611703845d33931ba92295e Mon Sep 17 00:00:00 2001 From: Brian Zalewski Date: Wed, 30 Nov 2022 07:22:22 +0000 Subject: [PATCH] Update .local/bin/install-program, .local/share/chezmoi/home/dot_local/bin/executable_install-terminal-theme.tmpl, .local/share/chezmoi/home/dot_local/bin/executable_install-program, .local/share/chezmoi/home/dot_local/Taskfile-local.yml, .local/share/chezmoi/home/dot_local/firejail/executable_slack, .local/share/chezmoi/home/dot_local/bin/executable_kde-wallpaper, .local/share/chezmoi/home/dot_local/bin/executable_qubes-ramqube Deleted .local/bin/install-rofi-theme, .local/share/chezmoi/home/dot_local/bin/executable_bwc, .local/share/chezmoi/home/dot_local/bin/executable_load-secrets --- .../bin/{install-software => install-program} | 0 .local/bin/install-rofi-theme | 22 ---------------- .../chezmoi/home/dot_local/Taskfile-local.yml | 23 +++++++++++++++++ .../chezmoi/home/dot_local/bin/executable_bwc | 25 ------------------- ...ll-software => executable_install-program} | 0 ...=> executable_install-terminal-theme.tmpl} | 0 ...ksetwallpaper => executable_kde-wallpaper} | 0 .../dot_local/bin/executable_load-secrets | 3 --- ...table_ramqube => executable_qubes-ramqube} | 0 .../{bin => firejail}/executable_slack | 1 + 10 files changed, 24 insertions(+), 50 deletions(-) rename .local/bin/{install-software => install-program} (100%) delete mode 100644 .local/bin/install-rofi-theme delete mode 100644 .local/share/chezmoi/home/dot_local/bin/executable_bwc rename .local/share/chezmoi/home/dot_local/bin/{executable_install-software => executable_install-program} (100%) rename .local/share/chezmoi/home/dot_local/bin/{executable_install-terminal-theme => executable_install-terminal-theme.tmpl} (100%) rename .local/share/chezmoi/home/dot_local/bin/{executable_ksetwallpaper => executable_kde-wallpaper} (100%) delete mode 100644 .local/share/chezmoi/home/dot_local/bin/executable_load-secrets rename .local/share/chezmoi/home/dot_local/bin/{executable_ramqube => executable_qubes-ramqube} (100%) rename .local/share/chezmoi/home/dot_local/{bin => firejail}/executable_slack (99%) diff --git a/.local/bin/install-software b/.local/bin/install-program similarity index 100% rename from .local/bin/install-software rename to .local/bin/install-program diff --git a/.local/bin/install-rofi-theme b/.local/bin/install-rofi-theme deleted file mode 100644 index 3e7e40e9..00000000 --- a/.local/bin/install-rofi-theme +++ /dev/null @@ -1,22 +0,0 @@ -#!/usr/bin/env bash - -if [ -f '/etc/qubes-release' ]; then - # Qubes dom0 - qvm-create --label red --template debian-11 provision &> /dev/null || EXIT_CODE=$? - qvm-run --pass-io provision 'if [ -d ~/Downloads/rofi ]; then cd ~/Downloads/rofi && git config pull.rebase false && git pull origin master; else git clone https://github.com/adi1090x/rofi.git ~/Downloads/rofi; fi; tar -zcvf /tmp/rofi.tar.gz ~/Downloads/rofi' - qvm-run --pass-io provision "cat /tmp/rofi.tar.gz" > "/tmp/rofi.tar.gz" - tar -xvf "/tmp/rofi.tar.gz" -C "$HOME" - rm -f "/tmp/rofi.tar.gz" - cd "$HOME/rofi" && bash setup.sh - rm -rf "$HOME/rofi" -else - if [ -d /usr/local/src/rofi-theme/.git ]; then - cd /usr/local/src/rofi-theme - sudo git config pull.rebase false - sudo git pull origin master - cd ~/ - else - sudo rm -rf /usr/local/src/rofi-theme - sudo git clone https://github.com/adi1090x/rofi.git /usr/local/src/rofi-theme - fi -fi diff --git a/.local/share/chezmoi/home/dot_local/Taskfile-local.yml b/.local/share/chezmoi/home/dot_local/Taskfile-local.yml index 7d18f5a5..ec7fd780 100644 --- a/.local/share/chezmoi/home/dot_local/Taskfile-local.yml +++ b/.local/share/chezmoi/home/dot_local/Taskfile-local.yml @@ -8,6 +8,29 @@ version: '3' # because the main Taskfile.yml is a symlinked one. Anyway, try `run local:default`. tasks: default: echo "Get started on https://taskfile.dev" + bitwarden: + cmds: + - | + # Command to copy to clipboard + COPY="wl-copy" + # Get list of all logins as json + logins="$(bw list items)" + # Grab the name of every login and pip them into fzf + name="$(echo "$logins" | jq -r '.[].name' | fzf)" + # Find the login with the selected name (as a json) + selected="$(echo "$logins" | jq -r ".[] | select(.name == \"$name\")")" + # Print the name of the selected login + echo "Name: $(echo "$selected" | jq -r '.name')" + echo "> Copying Username" + # Copy the username to the clipboard + printf '%s' "$(echo "$selected" | jq -r '.login.username')" | $COPY + echo "Press any key to copy password..." + # Wait for user input before coping the password + read -r + echo "> Copying Password" + # Copy the password to the clipboard + printf '%s' "$(echo "$selected" | jq -r '.login.password')" | $COPY + browser:profile:save:brave: vars: BrowserProfile: > diff --git a/.local/share/chezmoi/home/dot_local/bin/executable_bwc b/.local/share/chezmoi/home/dot_local/bin/executable_bwc deleted file mode 100644 index 0918160c..00000000 --- a/.local/share/chezmoi/home/dot_local/bin/executable_bwc +++ /dev/null @@ -1,25 +0,0 @@ -#!/bin/sh - -# Exit on error -set -e - -# Command to copy to clipboard -COPY="wl-copy" - -# Get list of all logins as json -logins="$(bw list items)" -# Grab the name of every login and pip them into fzf -name="$(echo "$logins" | jq -r '.[].name' | fzf)" -# Find the login with the selected name (as a json) -selected="$(echo "$logins" | jq -r ".[] | select(.name == \"$name\")")" -# Print the name of the selected login -echo "Name: $(echo "$selected" | jq -r '.name')" -echo "> Copying Username" -# Copy the username to the clipboard -printf '%s' "$(echo "$selected" | jq -r '.login.username')" | $COPY -echo "Press any key to copy password..." -# Wait for user input before coping the password -read -r -echo "> Copying Password" -# Copy the password to the clipboard -printf '%s' "$(echo "$selected" | jq -r '.login.password')" | $COPY diff --git a/.local/share/chezmoi/home/dot_local/bin/executable_install-software b/.local/share/chezmoi/home/dot_local/bin/executable_install-program similarity index 100% rename from .local/share/chezmoi/home/dot_local/bin/executable_install-software rename to .local/share/chezmoi/home/dot_local/bin/executable_install-program diff --git a/.local/share/chezmoi/home/dot_local/bin/executable_install-terminal-theme b/.local/share/chezmoi/home/dot_local/bin/executable_install-terminal-theme.tmpl similarity index 100% rename from .local/share/chezmoi/home/dot_local/bin/executable_install-terminal-theme rename to .local/share/chezmoi/home/dot_local/bin/executable_install-terminal-theme.tmpl diff --git a/.local/share/chezmoi/home/dot_local/bin/executable_ksetwallpaper b/.local/share/chezmoi/home/dot_local/bin/executable_kde-wallpaper similarity index 100% rename from .local/share/chezmoi/home/dot_local/bin/executable_ksetwallpaper rename to .local/share/chezmoi/home/dot_local/bin/executable_kde-wallpaper diff --git a/.local/share/chezmoi/home/dot_local/bin/executable_load-secrets b/.local/share/chezmoi/home/dot_local/bin/executable_load-secrets deleted file mode 100644 index 13128300..00000000 --- a/.local/share/chezmoi/home/dot_local/bin/executable_load-secrets +++ /dev/null @@ -1,3 +0,0 @@ -#!/usr/bin/env bash - -logg \ No newline at end of file diff --git a/.local/share/chezmoi/home/dot_local/bin/executable_ramqube b/.local/share/chezmoi/home/dot_local/bin/executable_qubes-ramqube similarity index 100% rename from .local/share/chezmoi/home/dot_local/bin/executable_ramqube rename to .local/share/chezmoi/home/dot_local/bin/executable_qubes-ramqube diff --git a/.local/share/chezmoi/home/dot_local/bin/executable_slack b/.local/share/chezmoi/home/dot_local/firejail/executable_slack similarity index 99% rename from .local/share/chezmoi/home/dot_local/bin/executable_slack rename to .local/share/chezmoi/home/dot_local/firejail/executable_slack index a9e3aec4..aa03c9b6 100644 --- a/.local/share/chezmoi/home/dot_local/bin/executable_slack +++ b/.local/share/chezmoi/home/dot_local/firejail/executable_slack @@ -1,2 +1,3 @@ #!/bin/bash + exec firejail /usr/bin/slack --enable-features=UseOzonePlatform,WebRTCPipeWireCapturer --ozone-platform=wayland &> /dev/null &