Update dotfiles/.local/share/chezmoi/private_dot_config/private_Code/User/keybindings.json, dotfiles/.local/share/chezmoi/private_dot_config/direnv/direnv.toml, dotfiles/.local/share/chezmoi/private_dot_config/firejail/code.local, dotfiles/.local/share/chezmoi/private_dot_config/firejail/chromium.local, dotfiles/.local/share/chezmoi/private_dot_config/firejail/bitwarden.local, dotfiles/.local/share/chezmoi/private_dot_config/firejail/gcloud.local, dotfiles/.local/share/chezmoi/private_dot_config/firejail/google-chrome-stable.local, dotfiles/.local/share/chezmoi/private_dot_config/firejail/slack.local, dotfiles/.local/share/chezmoi/private_dot_config/firejail/thunderbird.local, dotfiles/.local/share/chezmoi/private_dot_config/git/config.tmpl, dotfiles/.local/share/chezmoi/private_dot_config/git/attributes, dotfiles/.local/share/chezmoi/.chezmoi.toml.tmpl, dotfiles/.local/share/chezmoi/.chezmoidata.yaml, dotfiles/.local/share/chezmoi/dot_local/bin/executable_slack, dotfiles/.local/share/chezmoi/dot_local/bin/executable_fonttest, dotfiles/.local/share/chezmoi/dot_local/bin/executable_bwc, dotfiles/.local/share/chezmoi/private_dot_config/rofi/config.rasi.tmpl

This commit is contained in:
Brian Zalewski 2022-11-22 11:27:37 +00:00
parent 1f5816f90c
commit ce7ef7c40f
17 changed files with 510 additions and 2 deletions

View file

@ -22,6 +22,10 @@ sourceDir = {{ .chezmoi.sourceDir | quote }}
name = {{ $name | quote }}
{{- end }}
[diff]
format = "git"
pager = "delta"
[git]
autoCommit = true
autoPush = true

View file

@ -62,6 +62,31 @@ alternatives:
# :debian is defined so nothing will be installed on Debian for nb
nb:debian:
brew: []
neovim:
apk: neovim
apt:
- neovim
- python3-neovim
brew: neovim
choco: neovim
dnf:
- neovim
- python3-neovim
flatpak: io.neovim.nvim
nix: neovim
pacman:
- neovim
- python-pynvim
pkg:
- neovim
- py27-pynvim
- py36-pynvim
port: neovim
winget: Neovim.Neovim
zypper:
- neovim
- python-neovim
- python3-neovim
node:
brew: node
scoop: nodejs
@ -103,6 +128,9 @@ alternatives:
brew: rsync
choco: rsync
dnf: rsync
sad:
brew: ms-jpq/sad/sad
pacman: sad
shotcut:
choco: shotcut
flatpak: org.shotcut.Shotcut

View file

@ -0,0 +1,25 @@
#!/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

View file

@ -0,0 +1,12 @@
#!/bin/bash
# FONTTEST SCRIPT
# -----------------
# Print all avaliable variants of chosen terminal font
echo -en "regular "
echo -en "\e[3m italic \e[0m"
echo -en "\e[1m bold \e[0m"
echo -en "\e[3m\e[1m bold-italic \e[0m"
echo -en " \e[4munderline\e[0m "
echo -e " \e[9mstrikethrough\e[0m"

View file

@ -0,0 +1,2 @@
#!/bin/bash
exec firejail /usr/bin/slack --enable-features=UseOzonePlatform,WebRTCPipeWireCapturer --ozone-platform=wayland &> /dev/null &

View file

@ -0,0 +1,2 @@
[global]
load_dotenv = true

View file

@ -0,0 +1 @@
seccomp !chroot

View file

@ -0,0 +1,14 @@
include whitelist-runuser-common.inc
dbus-user.talk org.freedesktop.Notifications
dbus-user.talk org.freedesktop.portal.Desktop
ignore noroot
whitelist ${RUNUSER}/pipewire-0
whitelist /usr/share/pipewire/client.conf
dbus-user.talk org.freedesktop.portal.*
whitelist ${HOME}/pictures
whitelist ${HOME}/go
whitelist ${HOME}/git
whitelist ${HOME}/documents
whitelist ${HOME}/work
whitelist /usr/share/pipewire/

View file

@ -0,0 +1,12 @@
whitelist ${HOME}
whitelist ${HOME}/.local/share
noblacklist ${HOME}
noblacklist ${PATH}/bash
noblacklist ${PATH}/fish
ignore private-bin
ignore private-cache
ignore private-dev
ignore private-tmp
ignore noroot
ignore nosound
ignore noexec /tmp

View file

@ -0,0 +1,4 @@
# noblacklist ${HOME}
# noblacklist ${HOME}/.ssh/
# include allow-ssh.inc
# whitelist /tmp/ssh-*

View file

@ -0,0 +1,14 @@
include whitelist-runuser-common.inc
dbus-user.talk org.freedesktop.Notifications
dbus-user.talk org.freedesktop.portal.Desktop
ignore noroot
whitelist ${RUNUSER}/pipewire-0
whitelist /usr/share/pipewire/client.conf
dbus-user.talk org.freedesktop.portal.*
whitelist ${HOME}/pictures
whitelist ${HOME}/go
whitelist ${HOME}/git
whitelist ${HOME}/documents
whitelist ${HOME}/work
whitelist /usr/share/pipewire/

View file

@ -0,0 +1,13 @@
noblacklist ${PATH}/bash
noblacklist ${PATH}/csh
noblacklist ${PATH}/dash
noblacklist ${PATH}/fish
noblacklist ${PATH}/ksh
noblacklist ${PATH}/sh
noblacklist ${PATH}/tclsh
noblacklist ${PATH}/tcsh
noblacklist ${PATH}/zsh
ignore private-bin
ignore private-cache
ignore private-dev
ignore private-tmp

View file

@ -0,0 +1,19 @@
noblacklist /var/mail
noblacklist /var/spool/mail
whitelist /var/mail
whitelist /var/spool/mail
writable-var
noblacklist ${PATH}/bash
noblacklist ${PATH}/csh
noblacklist ${PATH}/dash
noblacklist ${PATH}/fish
noblacklist ${PATH}/ksh
noblacklist ${PATH}/sh
noblacklist ${PATH}/tclsh
noblacklist ${PATH}/tcsh
noblacklist ${PATH}/zsh
ignore private-bin
ignore private-cache
ignore private-dev
ignore private-tmp

View file

@ -12,6 +12,21 @@
dc = diff --cached
l = log --graph --pretty=format:"%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset" --abbrev-commit
master = !git add --all && git commit -am 'Quick commit.' -n && git push origin master
sub = submodule update --init --recursive
# Find commits by source code.
cc = "!f() { \
git log --pretty=custom --decorate --date=short -S\"$1\"; \
}; f"
# Find commits by commit message.
cm = "!f() { \
git log --pretty=custom --decorate --date=short --grep=\"$1\"; \
}; f"
# Credit an author on the latest commit.
credit = "!f() { \
if [ -n \"$1\" ] && [ -n \"$2\" ]; then \
git commit --amend --author \"$1 <$2>\" -C HEAD; \
fi \
}; f"
[branch]
autosetuprebase = always
[color]
@ -38,10 +53,12 @@
template = ${XDG_CONFIG_HOME}/git/commit-template
[core]
editor = vi
excludesfile = ~/.gitignore
excludesfile = ${XDG_CONFIG_HOME}/git/ignore
autocrlf = input
attributesfile = ~/.gitattributes
attributesfile = ${XDG_CONFIG_HOME}/git/attributes
editor = code --wait
eol = lf
fileMode = false
pager = delta -w ${FZF_PREVIEW_COLUMNS:-$COLUMNS}
safecrlf = warn
whitespace = trailing-space,space-before-tab
@ -83,6 +100,8 @@
renamelimit = 0
mnemonicprefix = true
renames = copies
[diff "bin"]
textconv = hexdump -v -C
[diff "image"]
command = compare $2 $1 png:- | montage -geometry +4+4 $2 - $1 png:- | display -title \"$1\" -
[difftool]
@ -107,6 +126,8 @@
cmd = code --wait $MERGED
[pack]
threads = 0
[pretty]
custom = "%C(magenta)%h%C(red)%d %C(yellow)%ar %C(green)%s %C(yellow)(%an)"
[pull]
rebase = true
[push]

View file

@ -0,0 +1,48 @@
[
{
"key": "tab",
"command": "selectNextQuickFix",
"when": "editorFocus && quickFixWidgetVisible"
},
{
"key": "shift+tab",
"command": "selectPrevQuickFix",
"when": "editorFocus && quickFixWidgetVisible"
},
{
"key": "tab",
"command": "selectNextSuggestion",
"when": "editorTextFocus && suggestWidgetMultipleSuggestions && suggestWidgetVisible"
},
{
"key": "shift+tab",
"command": "selectPrevSuggestion",
"when": "editorTextFocus && suggestWidgetMultipleSuggestions && suggestWidgetVisible"
},
{
"key": "ctrl+j",
"command": "editor.action.inlineSuggest.commit",
"when": "inlineSuggestionHasIndentationLessThanTabSize && inlineSuggestionVisible && !editorTabMovesFocus"
},
{
"key": "tab",
"command": "-editor.action.inlineSuggest.commit",
"when": "inlineSuggestionHasIndentationLessThanTabSize && inlineSuggestionVisible && !editorTabMovesFocus"
},
{
"key": "alt+right",
"command": "workbench.action.nextEditor"
},
{
"key": "ctrl+pagedown",
"command": "-workbench.action.nextEditor"
},
{
"key": "alt+left",
"command": "workbench.action.previousEditor"
},
{
"key": "ctrl+pageup",
"command": "-workbench.action.previousEditor"
}
]

View file

@ -0,0 +1,289 @@
/**
*
* Author : Aditya Shakya (adi1090x)
* Github : @adi1090x
*
* Rofi Theme File
* Rofi Version: 1.7.3
**/
/*****----- Configuration -----*****/
configuration {
modi: "drun,run,filebrowser,window";
show-icons: true;
display-drun: " Apps";
display-run: " Run";
display-filebrowser: " Files";
display-ssh: " SSH";
display-window: " Windows";
drun-display-format: "{name}";
window-format: "{w} · {c} · {t}";
}
/*****----- Global Properties -----*****/
* {
font: "{{ .fonts.main }} 10";
}
/*****----- Main Window -----*****/
window {
/* properties for window widget */
transparency: "real";
location: center;
anchor: center;
fullscreen: false;
width: 800px;
x-offset: 0px;
y-offset: 0px;
/* properties for all widgets */
enabled: true;
margin: 0px;
padding: 0px;
border: 0px solid;
border-radius: 10px; //
border-color: {{ .colors.nord9 }};
cursor: "default";
/* Backgroud Colors */
background-color: {{ .colors.nord1 }}; // nord0
/* Backgroud Image */
//background-image: url("/path/to/image.png", none);
/* Simple Linear Gradient */
//background-image: linear-gradient(red, orange, pink, purple);
/* Directional Linear Gradient */
//background-image: linear-gradient(to bottom, pink, yellow, magenta);
/* Angle Linear Gradient */
//background-image: linear-gradient(45, cyan, purple, indigo);
}
/*****----- Main Box -----*****/
mainbox {
enabled: true;
spacing: 10px;
margin: 0px;
padding: 20px;
border: 0px solid;
border-radius: 0px 0px 0px 0px;
border-color: {{ .colors.nord9 }};
background-color: transparent;
children: [ "inputbar", "mode-switcher", "message", "listview" ];
}
/*****----- Inputbar -----*****/
inputbar {
enabled: true;
spacing: 10px;
margin: 0px;
padding: 5px 5px 5px 10px;
// padding: 0px;
border: 0px solid;
border-radius: 0px;
border-color: {{ .colors.nord9 }};
background-color: {{ .colors.nord0 }};
// background-color: transparent;
text-color: {{ .colors.nord5 }};
children: [ "textbox-prompt-colon", "entry" ];
}
prompt {
enabled: true;
background-color: inherit;
text-color: inherit;
}
textbox-prompt-colon {
enabled: true;
padding: 5px 0px;
expand: false;
str: "";
element-icon: "24px";
background-color: inherit;
text-color: inherit;
}
entry {
enabled: true;
padding: 5px 0px;
background-color: inherit;
text-color: inherit;
cursor: text;
placeholder: "Search...";
placeholder-color: inherit;
}
num-filtered-rows {
enabled: true;
expand: false;
background-color: inherit;
text-color: inherit;
}
textbox-num-sep {
enabled: true;
expand: false;
str: "/";
background-color: inherit;
text-color: inherit;
}
num-rows {
enabled: true;
expand: false;
background-color: inherit;
text-color: inherit;
}
case-indicator {
enabled: true;
background-color: inherit;
text-color: inherit;
}
/*****----- Listview -----*****/
listview {
enabled: true;
columns: 1;
lines: 8;
cycle: true;
dynamic: true;
scrollbar: false;
layout: vertical;
reverse: false;
fixed-height: true;
fixed-columns: true;
spacing: 5px;
margin: 0px;
padding: 0px;
border: 0px solid;
border-radius: 0px;
border-color: {{ .colors.nord9 }};
background-color: transparent;
text-color: {{ .colors.nord5 }};
cursor: "default";
}
scrollbar {
handle-width: 5px ;
handle-color: {{ .colors.nord9 }};
border-radius: 10px;
background-color: {{ .colors.nord1 }};
}
/*****----- Elements -----*****/
element {
enabled: true;
spacing: 10px;
margin: 0px;
padding: 10px;
border: 0px solid;
border-radius: 8px;
border-color: {{ .colors.nord9 }};
background-color: transparent;
text-color: {{ .colors.nord5 }};
cursor: pointer;
}
element normal.normal {
background-color: {{ .colors.nord1 }}; // nord0
text-color: {{ .colors.nord5 }};
}
element normal.urgent {
background-color: {{ .colors.nord11 }};
text-color: {{ .colors.nord1 }}; // nord0
}
element normal.active {
background-color: {{ .colors.nord14 }};
text-color: {{ .colors.nord1 }}; // nord0
}
element selected.normal {
background-color: {{ .colors.nord9 }};
text-color: {{ .colors.nord1 }}; // nord0
}
element selected.urgent {
background-color: {{ .colors.nord14 }};
text-color: {{ .colors.nord1 }}; // nord0
}
element selected.active {
background-color: {{ .colors.nord11 }};
text-color: {{ .colors.nord1 }}; // nord0
}
element alternate.normal {
background-color: {{ .colors.nord1 }}; // nord0
text-color: {{ .colors.nord5 }};
}
element alternate.urgent {
background-color: {{ .colors.nord11 }};
text-color: {{ .colors.nord1 }}; // nord0
}
element alternate.active {
background-color: {{ .colors.nord14 }};
text-color: {{ .colors.nord1 }}; // nord0
}
element-icon {
background-color: transparent;
text-color: inherit;
size: 24px;
cursor: inherit;
}
element-text {
background-color: transparent;
text-color: inherit;
highlight: inherit;
cursor: inherit;
vertical-align: 0.5;
horizontal-align: 0.0;
}
/*****----- Mode Switcher -----*****/
mode-switcher{
enabled: true;
expand: false;
spacing: 10px;
margin: 0px;
padding: 0px;
border: 0px solid;
border-radius: 0px;
border-color: {{ .colors.nord9 }};
background-color: transparent;
text-color: {{ .colors.nord5 }};
}
button {
padding: 12px;
border: 0px solid;
border-radius: 8px;
border-color: {{ .colors.nord9 }};
background-color: {{ .colors.nord0 }}; // nord1
text-color: inherit;
cursor: pointer;
}
button selected {
background-color: {{ .colors.nord14 }}; // nord9
text-color: {{ .colors.nord1 }}; // nord0
}
/*****----- Message -----*****/
message {
enabled: true;
margin: 0px;
padding: 0px;
border: 0px solid;
border-radius: 0px 0px 0px 0px;
border-color: {{ .colors.nord9 }};
background-color: transparent;
text-color: {{ .colors.nord5 }};
}
textbox {
padding: 12px;
border: 0px solid;
border-radius: 8px;
border-color: {{ .colors.nord9 }};
background-color: {{ .colors.nord1 }};
text-color: {{ .colors.nord5 }};
vertical-align: 0.5;
horizontal-align: 0.0;
highlight: none;
placeholder-color: {{ .colors.nord5 }};
blink: true;
markup: true;
}
error-message {
padding: 0px;
border: 2px solid;
border-radius: 8px;
border-color: {{ .colors.nord9 }};
background-color: {{ .colors.nord1 }}; // nord0
text-color: {{ .colors.nord5 }};
}