Compare commits
30 Commits
removed-sp
...
ea861dbbfa
Author | SHA1 | Date | |
---|---|---|---|
ea861dbbfa | |||
13de19e0cc | |||
07e5a472f0 | |||
5f8fc8e53c | |||
70f9be3e43 | |||
c73d598f17 | |||
189cc57b20 | |||
493f0838fb | |||
a97f4e80ec | |||
e758346caf | |||
83b493fc00 | |||
bc4662d90f | |||
0a3cdb8003 | |||
d40acf6bbd | |||
9ec30728dd | |||
bfd51bf9a5 | |||
63763ca660 | |||
ee7649ce11 | |||
f5fe41f555 | |||
ae134cd087 | |||
d5601c1cef | |||
ab7623d1cc | |||
0936c92f4d | |||
7d81df3476 | |||
2c213f30e9 | |||
74dc68a687 | |||
215059cce6 | |||
a23ce5b858 | |||
9c629e44ff | |||
0b69bd77f6 |
18
README.md
@@ -4,11 +4,12 @@ This repository holds my Linux config files.
|
|||||||
|
|
||||||
## Mandatory unixporn screenshots
|
## Mandatory unixporn screenshots
|
||||||
|
|
||||||
New version as of dec 2018:
|
New version as of dec 2021:
|
||||||
[](https://raw.githubusercontent.com/Mastermindzh/dotfiles/master/media/dotfiles3.png)
|
|
||||||
|
[](https://raw.githubusercontent.com/Mastermindzh/dotfiles/master/media/dotfiles4.jpg)
|
||||||
|
|
||||||
Older versions:
|
Older versions:
|
||||||
|
- [dotfiles](media/dotfiles3.png)
|
||||||
- [dotfiles](media/dotfiles.png)
|
- [dotfiles](media/dotfiles.png)
|
||||||
- [dotfiles2](media/dotfiles2.png)
|
- [dotfiles2](media/dotfiles2.png)
|
||||||
|
|
||||||
@@ -36,3 +37,14 @@ I've grown tired of this approach however so I added a "pc specific" setup in th
|
|||||||
|
|
||||||
The pc specific setup bit will read the folder names in computers, offer you a choice, and execute the install.sh inside that folder.
|
The pc specific setup bit will read the folder names in computers, offer you a choice, and execute the install.sh inside that folder.
|
||||||
This allows me to get pc specific settings synced with git and applied easily.
|
This allows me to get pc specific settings synced with git and applied easily.
|
||||||
|
|
||||||
|
## Getting x info to use in i3
|
||||||
|
|
||||||
|
Some things are handled by window class/title or have custom resolutions set, the tools below help obtaining the info required:
|
||||||
|
|
||||||
|
- xprop -> displays static xwindow info including Window class
|
||||||
|
- xwininfo -> displays xwindow info including current size/position
|
||||||
|
|
||||||
|
## getting icons
|
||||||
|
|
||||||
|
Copy/paste icons from this url: [https://fontawesome.com/v5/cheatsheet](https://fontawesome.com/v5/cheatsheet)
|
||||||
|
@@ -17,20 +17,23 @@ alias docker-clean-all='stop-dockers && docker-clean-containers && docker-clean-
|
|||||||
alias mkubectl='microk8s.kubectl'
|
alias mkubectl='microk8s.kubectl'
|
||||||
alias kubestart='microk8s.start'
|
alias kubestart='microk8s.start'
|
||||||
alias kubestop='microk8s.stop'
|
alias kubestop='microk8s.stop'
|
||||||
|
alias kubecontexts='kubectl config get-contexts'
|
||||||
|
|
||||||
#dotnet core
|
#dotnet core
|
||||||
alias efupdate="dotnet ef database update"
|
alias efupdate="dotnet ef database update"
|
||||||
alias efmigrate="dotnet ef migrations add"
|
alias efmigrate="dotnet ef migrations add"
|
||||||
alias efremove="dotnet ef migrations remove"
|
alias efremove="dotnet ef migrations remove"
|
||||||
alias dotnetnew="dotnet new webapi -o "
|
alias dotnetnew="dotnet new webapi -o "
|
||||||
|
alias nuget-force-clear-cache="nuget locals all -clear && nuget locals all -list | awk '{split($0,a,\": \"); print a[2];}' | xargs rm -rf"
|
||||||
|
|
||||||
# git
|
# git
|
||||||
alias gitremovelocalbranches='git branch --merged | egrep -v "(^\*|master|dev)" | xargs git branch -d'
|
alias gitremovelocalbranches='git branch --merged | egrep -v "(^\*|master|dev)" | xargs git branch -d'
|
||||||
alias untangle-line-endings='find ./ -type f -exec dos2unix {} \;'
|
alias untangle-line-endings='find ./ -type f -exec dos2unix {} \;'
|
||||||
|
alias undo-commit='git reset --soft HEAD^'
|
||||||
|
|
||||||
## pacman and trizen
|
## pacman and trizen
|
||||||
alias aur='trizen --noconfirm'
|
alias aur='trizen --noconfirm'
|
||||||
alias update='trizen -Syyu --noconfirm'
|
alias update='trizen -Syu --noconfirm'
|
||||||
alias remove-orphans='sudo pacman -Rns $(pacman -Qtdq)'
|
alias remove-orphans='sudo pacman -Rns $(pacman -Qtdq)'
|
||||||
alias updatekeys='sudo pacman-key --refresh-key'
|
alias updatekeys='sudo pacman-key --refresh-key'
|
||||||
alias clean-pacmancache='sudo paccache -rk 1 && sudo paccache -ruk0'
|
alias clean-pacmancache='sudo paccache -rk 1 && sudo paccache -ruk0'
|
||||||
@@ -58,7 +61,19 @@ alias pretty-json='python -m json.tool'
|
|||||||
alias addpgpkey='gpg --recv-keys'
|
alias addpgpkey='gpg --recv-keys'
|
||||||
alias clean-trash='sudo rm -rf ~/.local/share/Trash/*'
|
alias clean-trash='sudo rm -rf ~/.local/share/Trash/*'
|
||||||
alias clean-journal='sudo journalctl --vacuum-time=2d'
|
alias clean-journal='sudo journalctl --vacuum-time=2d'
|
||||||
alias clean-all='clean-trash && clean-journal && clean-pacmancache && docker-clean-all'
|
alias clean-all='clean-trash && clean-journal && clean-pacmancache && docker-clean-all && clean-node-modules'
|
||||||
|
alias dotnet-install='~/.dotnet-install.sh --install-dir /usr/share/dotnet/ -channel Current -version '
|
||||||
|
alias mountshares='sudo bash ~/dotfiles/bash/mounts.sh'
|
||||||
|
alias echo-server='npx http-echo-server'
|
||||||
|
alias mountcalibre='sudo mount.cifs //10.10.1.11/books /mnt/calibre -o nobrl,user=mastermindzh,noperm,rw'
|
||||||
|
alias xpid="xprop _NET_WM_PID | cut -d' ' -f3"
|
||||||
|
alias clean-node-modules='find . -name "node_modules" -type d -print0 |xargs -0 rm -r --'
|
||||||
|
alias nomachine='/usr/NX/bin/nxplayer'
|
||||||
|
alias unlockuser='faillock --reset --user'
|
||||||
|
alias npm-list-links='npm ls -g --depth=0 --link=true'
|
||||||
|
|
||||||
|
# might be useful in demos...
|
||||||
|
alias oopsie='fuck'
|
||||||
|
|
||||||
# cli tools
|
# cli tools
|
||||||
alias crypto='curl -s rate.sx?qF | head -n -2 | tail -n +10'
|
alias crypto='curl -s rate.sx?qF | head -n -2 | tail -n +10'
|
||||||
@@ -84,13 +99,16 @@ alias cmyip='curl -s http://ipecho.net/plain; echo'
|
|||||||
## default command fixes :P
|
## default command fixes :P
|
||||||
alias mkdir='mkdir -p'
|
alias mkdir='mkdir -p'
|
||||||
alias wget='wget -c'
|
alias wget='wget -c'
|
||||||
alias ls='ls -l --color=auto'
|
alias ls='ls -lh --color=auto'
|
||||||
alias installed='sudo pacman -Qetq'
|
alias installed='sudo pacman -Qetq'
|
||||||
alias aurinstalled='sudo pacman -Qmq'
|
alias aurinstalled='sudo pacman -Qmq'
|
||||||
alias sudo='sudo '
|
alias sudo='sudo '
|
||||||
alias markdown-toc='markdown-toc --bullets="-" -i'
|
alias markdown-toc='markdown-toc --bullets="-" -i'
|
||||||
alias tree='tree --dirsfirst'
|
alias tree='tree --dirsfirst'
|
||||||
alias handbrake='ghb'
|
alias handbrake='ghb'
|
||||||
|
alias cal='cal -mw --color'
|
||||||
|
alias chrome='google-chrome-stable'
|
||||||
|
alias teams='teams-insiders --disable-seccomp-filter-sandbox'
|
||||||
|
|
||||||
# grub
|
# grub
|
||||||
alias update-grub='grub-mkconfig -o /boot/grub/grub.cfg'
|
alias update-grub='grub-mkconfig -o /boot/grub/grub.cfg'
|
||||||
@@ -161,7 +179,7 @@ killport () {
|
|||||||
}
|
}
|
||||||
|
|
||||||
# function to switch kubernetes namespace
|
# function to switch kubernetes namespace
|
||||||
kubeswitch () {
|
kubenamespaceswitch () {
|
||||||
if [ -z "$1" ] ; then
|
if [ -z "$1" ] ; then
|
||||||
echo "please specify a namespace to switch to"
|
echo "please specify a namespace to switch to"
|
||||||
else
|
else
|
||||||
@@ -169,6 +187,16 @@ kubeswitch () {
|
|||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# function to switch kubernetes context
|
||||||
|
kubecontextswitch () {
|
||||||
|
if [ -z "$1" ] ; then
|
||||||
|
echo "please specify a context to switch to, the following contexts are available:"
|
||||||
|
kubectl config get-contexts
|
||||||
|
else
|
||||||
|
kubectl config use-context "$1"
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
# function to switch to a different azure kubernetes cluster
|
# function to switch to a different azure kubernetes cluster
|
||||||
azkubeswitch () {
|
azkubeswitch () {
|
||||||
if [ -z "$2" ] ; then
|
if [ -z "$2" ] ; then
|
||||||
|
37
bash/.bashrc
@@ -1,22 +1,49 @@
|
|||||||
|
#!/bin/bash
|
||||||
# if powerline-shell is available use it.
|
# if powerline-shell is available use it.
|
||||||
function _update_ps1() {
|
function _update_ps1() {
|
||||||
if hash powerline-shell 2>/dev/null; then
|
if hash powerline-rs 2>/dev/null; then
|
||||||
PS1=$(powerline-shell $?)
|
PS1="$(powerline-rs --shell bash $?)"
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# sourceIfExists
|
||||||
|
function sourceIfExists () {
|
||||||
|
[[ -f "$1" ]] && source "$1"
|
||||||
|
}
|
||||||
|
|
||||||
# If not running interactively, don't do anything
|
# If not running interactively, don't do anything
|
||||||
[[ $- != *i* ]] && return
|
[[ $- != *i* ]] && return
|
||||||
|
|
||||||
source ~/.alias
|
source ~/.alias
|
||||||
source ~/.custom
|
source ~/.custom
|
||||||
source ~/.variables
|
source ~/.variables
|
||||||
|
sourceIfExists ~/lib/azure-cli/az.completion
|
||||||
|
eval "$(thefuck --alias)"
|
||||||
|
|
||||||
|
# load keychain with private key
|
||||||
|
if test -f "$HOME/.ssh/id_ed25519"; then
|
||||||
|
eval "$(keychain --eval --quiet ~/.ssh/id_ed25519)"
|
||||||
|
else
|
||||||
|
# fallback to older rsa
|
||||||
|
eval "$(keychain --eval --quiet ~/.ssh/id_rsa)"
|
||||||
|
fi
|
||||||
|
|
||||||
|
eval "$(pyenv init -)"
|
||||||
|
|
||||||
|
export NVM_DIR="$HOME/.nvm"
|
||||||
|
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
|
||||||
|
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion
|
||||||
|
|
||||||
|
if hash dotnet 2>/dev/null; then
|
||||||
|
export DOTNET_ROOT=/usr/share/dotnet
|
||||||
|
export MSBuildSDKsPath=$DOTNET_ROOT/sdk/$(${DOTNET_ROOT}/dotnet --version)/Sdks
|
||||||
|
export PATH="${PATH}:${DOTNET_ROOT}:~/.dotnet/tools"
|
||||||
|
fi
|
||||||
|
|
||||||
#... :P fancy stuffs
|
|
||||||
#screenfetch -t -A "UBUNTU"
|
|
||||||
neofetch
|
|
||||||
PS1='[\u@\h \W]\$ '
|
PS1='[\u@\h \W]\$ '
|
||||||
|
|
||||||
if [[ $TERM != linux && ! $PROMPT_COMMAND =~ _update_ps1 ]]; then
|
if [[ $TERM != linux && ! $PROMPT_COMMAND =~ _update_ps1 ]]; then
|
||||||
PROMPT_COMMAND="_update_ps1; $PROMPT_COMMAND"
|
PROMPT_COMMAND="_update_ps1; $PROMPT_COMMAND"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
export PATH=$PATH:/home/mastermindzh/bin
|
||||||
|
1568
bash/.dotnet-install.sh
Executable file
@@ -1,11 +1,3 @@
|
|||||||
{
|
{
|
||||||
"segments": [
|
"segments": ["virtual_env", "ssh", "cwd", "git", "hg", "jobs", "root"]
|
||||||
"virtual_env",
|
|
||||||
"ssh",
|
|
||||||
"cwd",
|
|
||||||
"git",
|
|
||||||
"hg",
|
|
||||||
"jobs",
|
|
||||||
"root"
|
|
||||||
]
|
|
||||||
}
|
}
|
||||||
|
@@ -7,7 +7,7 @@ if [ "$EUID" -ne 0 ]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# declare variables
|
# declare variables
|
||||||
MY_SERVER_LOCATION="//192.168.1.3"
|
MY_SERVER_LOCATION="//10.10.1.11"
|
||||||
MOUNT_PREFIX="/mnt"
|
MOUNT_PREFIX="/mnt"
|
||||||
USERNAME="mastermindzh"
|
USERNAME="mastermindzh"
|
||||||
|
|
||||||
@@ -41,7 +41,36 @@ declare -A MOUNTS3=(
|
|||||||
[share]='appdata'
|
[share]='appdata'
|
||||||
[mount]='appdata'
|
[mount]='appdata'
|
||||||
)
|
)
|
||||||
|
declare -A MOUNTS4=(
|
||||||
|
[server]="$MY_SERVER_LOCATION"
|
||||||
|
[share]='isos'
|
||||||
|
[mount]='isos'
|
||||||
|
)
|
||||||
|
declare -A MOUNTS5=(
|
||||||
|
[server]="$MY_SERVER_LOCATION"
|
||||||
|
[share]='books'
|
||||||
|
[mount]='books'
|
||||||
|
)
|
||||||
|
declare -A MOUNTS6=(
|
||||||
|
[server]="$MY_SERVER_LOCATION"
|
||||||
|
[share]='pictures'
|
||||||
|
[mount]='pictures'
|
||||||
|
)
|
||||||
|
declare -A MOUNTS7=(
|
||||||
|
[server]="$MY_SERVER_LOCATION"
|
||||||
|
[share]='nvme1'
|
||||||
|
[mount]='nvme1'
|
||||||
|
)
|
||||||
|
declare -A MOUNTS8=(
|
||||||
|
[server]="$MY_SERVER_LOCATION"
|
||||||
|
[share]="downloads"
|
||||||
|
[mount]="downloads"
|
||||||
|
)
|
||||||
|
declare -A MOUNTS9=(
|
||||||
|
[server]="$MY_SERVER_LOCATION"
|
||||||
|
[share]="emulation"
|
||||||
|
[mount]="emulation"
|
||||||
|
)
|
||||||
# declare array with "objects"
|
# declare array with "objects"
|
||||||
declare -n MOUNTS
|
declare -n MOUNTS
|
||||||
|
|
||||||
|
@@ -1,2 +1,2 @@
|
|||||||
#!/bin/bash
|
#!/bin/sh
|
||||||
xrandr --output DVI-I-0 --off --output DVI-I-1 --off --output HDMI-0 --mode 1920x1080 --pos 1920x0 --rotate normal --output DP-0 --mode 1920x1080 --pos 0x0 --rotate normal --output DP-1 --off --output DVI-D-0 --primary --mode 1920x1080 --pos 1920x0 --rotate normal
|
xrandr --output DVI-I-0 --off --output DVI-I-1 --off --output HDMI-0 --primary --mode 1920x1080 --pos 0x0 --rotate normal --output DP-0 --off --output DP-1 --off --output DVI-D-0 --off
|
||||||
|
@@ -7,3 +7,4 @@ alias unmountdata='sudo umount /home/mastermindzh/data && sudo cryptsetup close
|
|||||||
# useful kubernetes (AZURE) commands
|
# useful kubernetes (AZURE) commands
|
||||||
alias kubernetes-qa='azkubeswitch Inforit.Cloud InforitCluster'
|
alias kubernetes-qa='azkubeswitch Inforit.Cloud InforitCluster'
|
||||||
alias kubernetes-prod='azkubeswitch Inforit.Cloud Production'
|
alias kubernetes-prod='azkubeswitch Inforit.Cloud Production'
|
||||||
|
alias kubernetes-dev='azkubeswitch Inforit.Cloud Development'
|
||||||
|
@@ -12,3 +12,7 @@
|
|||||||
[core]
|
[core]
|
||||||
autocrlf = input
|
autocrlf = input
|
||||||
editor = nano
|
editor = nano
|
||||||
|
[pull]
|
||||||
|
rebase = false
|
||||||
|
[init]
|
||||||
|
defaultBranch = master
|
||||||
|
@@ -1,8 +1,8 @@
|
|||||||
gtk-application-prefer-dark-theme=0
|
gtk-application-prefer-dark-theme=0
|
||||||
gtk-theme-name=Arc
|
gtk-theme-name="Adwaita-dark"
|
||||||
gtk-icon-theme-name=Numix
|
gtk-icon-theme-name="Numix"
|
||||||
gtk-font-name=System San Francisco Display 12
|
gtk-font-name="Cantarell 11"
|
||||||
gtk-cursor-theme-name=Breeze
|
gtk-cursor-theme-name="elementary"
|
||||||
gtk-cursor-theme-size=0
|
gtk-cursor-theme-size=0
|
||||||
gtk-toolbar-style=GTK_TOOLBAR_BOTH
|
gtk-toolbar-style=GTK_TOOLBAR_BOTH
|
||||||
gtk-toolbar-icon-size=GTK_ICON_SIZE_LARGE_TOOLBAR
|
gtk-toolbar-icon-size=GTK_ICON_SIZE_LARGE_TOOLBAR
|
||||||
@@ -12,5 +12,5 @@ gtk-enable-event-sounds=1
|
|||||||
gtk-enable-input-feedback-sounds=1
|
gtk-enable-input-feedback-sounds=1
|
||||||
gtk-xft-antialias=1
|
gtk-xft-antialias=1
|
||||||
gtk-xft-hinting=1
|
gtk-xft-hinting=1
|
||||||
gtk-xft-hintstyle=hintfull
|
gtk-xft-hintstyle="hintmedium"
|
||||||
gtk-xft-rgba=rgb
|
gtk-xft-rgba="none"
|
||||||
|
76
config/mimeapps.list
Normal file
@@ -0,0 +1,76 @@
|
|||||||
|
[Default Applications]
|
||||||
|
|
||||||
|
# browser
|
||||||
|
#--------------
|
||||||
|
text/html=firefox.desktop
|
||||||
|
x-scheme-handler/http=firefox.desktop
|
||||||
|
x-scheme-handler/https=firefox.desktop
|
||||||
|
x-scheme-handler/about=firefox.desktop
|
||||||
|
x-scheme-handler/unknown=firefox.desktop
|
||||||
|
x-scheme-handler/webcal=firefox.desktop
|
||||||
|
x-scheme-handler/chrome=firefox.desktop
|
||||||
|
application/x-extension-htm=firefox.desktop
|
||||||
|
application/x-extension-html=firefox.desktop
|
||||||
|
application/x-extension-shtml=firefox.desktop
|
||||||
|
application/xhtml+xml=firefox.desktop
|
||||||
|
application/x-extension-xhtml=firefox.desktop
|
||||||
|
application/x-extension-xht=firefox.desktop
|
||||||
|
|
||||||
|
# apps
|
||||||
|
#--------------
|
||||||
|
x-scheme-handler/postman=Postman.desktop
|
||||||
|
x-scheme-handler/ssh=ktelnetservice5.desktop
|
||||||
|
x-scheme-handler/msteams=teams-insiders.desktop
|
||||||
|
x-scheme-handler/discord-478576776990425110=discord-478576776990425110.desktop
|
||||||
|
x-scheme-handler/mailspring=Mailspring.desktop
|
||||||
|
x-scheme-handler/etcher=balena-etcher-electron.desktop
|
||||||
|
|
||||||
|
# files
|
||||||
|
#--------------
|
||||||
|
inode/director=Nautilus.desktop
|
||||||
|
|
||||||
|
[Added Associations]
|
||||||
|
# browser-stuff
|
||||||
|
#--------------
|
||||||
|
x-scheme-handler/http=firefox.desktop;
|
||||||
|
x-scheme-handler/https=firefox.desktop;
|
||||||
|
text/html=firefox.desktop;
|
||||||
|
|
||||||
|
# text
|
||||||
|
#--------------
|
||||||
|
text/plain=gnome.gedit.desktop;
|
||||||
|
application/pdf=mupdf.desktop;firefox.desktop;
|
||||||
|
text/vnd.qt.linguist=org.gnome.gedit.desktop;
|
||||||
|
text/x-nfo=gnome.gedit.desktop;
|
||||||
|
text/x-log=code-insiders.desktop;
|
||||||
|
|
||||||
|
# images
|
||||||
|
#--------------
|
||||||
|
image/jpeg=org.gnome.eog.desktop;feh.desktop;
|
||||||
|
image/png=org.gnome.eog.desktop;feh.desktop;
|
||||||
|
image/svg+xml=org.gnome.eog.desktop;feh.desktop;
|
||||||
|
image/gif=org.gnome.eog.desktop;feh.desktop;
|
||||||
|
|
||||||
|
# video
|
||||||
|
#--------------
|
||||||
|
video/mp4=mpv.desktop;
|
||||||
|
video/x-matroska=mpv.desktop;
|
||||||
|
video/x-msvideo=vlc.desktop;
|
||||||
|
|
||||||
|
# code-related
|
||||||
|
#--------------
|
||||||
|
application/json=code-insiders.desktop;visual-studio-code-insiders.desktop;
|
||||||
|
application/x-shellscript=visual-studio-code.desktop;
|
||||||
|
application/sql=visual-studio-code.desktop;
|
||||||
|
application/xml=visual-studio-code.desktop;
|
||||||
|
application/javascript=visual-studio-code-insiders.desktop;
|
||||||
|
|
||||||
|
# other
|
||||||
|
#--------------
|
||||||
|
application/zip=org.gnome.Nautilus.desktop;xarchiver.desktop;
|
||||||
|
application/vnd.openxmlformats-officedocument.wordprocessingml.document=wps-office-wps.desktop;
|
||||||
|
application/x-remmina=org.gnome.gedit.desktop;org.kde.krdc.desktop;remmina-file.desktop;org.remmina.Remmina.desktop;
|
||||||
|
|
||||||
|
# newly added
|
||||||
|
#--------------
|
||||||
|
|
@@ -33,7 +33,7 @@ Architecture = auto
|
|||||||
#UseSyslog
|
#UseSyslog
|
||||||
Color
|
Color
|
||||||
ILoveCandy
|
ILoveCandy
|
||||||
TotalDownload
|
#TotalDownload
|
||||||
CheckSpace
|
CheckSpace
|
||||||
VerbosePkgLists
|
VerbosePkgLists
|
||||||
|
|
||||||
|
@@ -17,7 +17,7 @@ our $CONFIG = {
|
|||||||
flip_results => 0, # bool -- Show the search results in reverse order.
|
flip_results => 0, # bool -- Show the search results in reverse order.
|
||||||
force => 0, # bool -- Pass the `--force` flag to `pacman`.
|
force => 0, # bool -- Pass the `--force` flag to `pacman`.
|
||||||
git_clone_depth => 0, # int -- Pass the `--depth int` flag to `git clone`. (0 means no limit)
|
git_clone_depth => 0, # int -- Pass the `--depth int` flag to `git clone`. (0 means no limit)
|
||||||
install_built_with_noconfirm => 0, # bool -- Install built packages with `--noconfirm`.
|
install_built_with_noconfirm => 1, # bool -- Install built packages with `--noconfirm`.
|
||||||
lwp_env_proxy => 1, # bool -- Use proxy settings defined in `env` (if any).
|
lwp_env_proxy => 1, # bool -- Use proxy settings defined in `env` (if any).
|
||||||
lwp_show_progress => 0, # bool -- Show the HTTPS requests made by LWP::UserAgent to the AUR servers.
|
lwp_show_progress => 0, # bool -- Show the HTTPS requests made by LWP::UserAgent to the AUR servers.
|
||||||
lwp_timeout => 60, # int -- Seconds after which an HTTPS connection is aborted.
|
lwp_timeout => 60, # int -- Seconds after which an HTTPS connection is aborted.
|
||||||
@@ -45,8 +45,8 @@ our $CONFIG = {
|
|||||||
split_packages => 1, # bool -- Ask about installing the other parts of a split package.
|
split_packages => 1, # bool -- Ask about installing the other parts of a split package.
|
||||||
ssl_verify_hostname => 1, # bool -- Ensure LWP::UserAgent connects to servers that have a valid certificate.
|
ssl_verify_hostname => 1, # bool -- Ensure LWP::UserAgent connects to servers that have a valid certificate.
|
||||||
su_command => "/usr/bin/su -c", # str -- Command used when special permissions are required and `use_sudo` is set to 0.
|
su_command => "/usr/bin/su -c", # str -- Command used when special permissions are required and `use_sudo` is set to 0.
|
||||||
sudo_autorepeat => 0, # bool -- Automatically repeat `sudo -v` in the background after a `sudo` command was first executed.
|
sudo_autorepeat => 1 # bool -- Automatically repeat `sudo -v` in the background after a `sudo` command was first executed.
|
||||||
sudo_autorepeat_at_runtime => 0, # bool -- Execute `sudo -v` when `trizen` is first executed and apply the behavior of `sudo_autorepeat`.
|
sudo_autorepeat_at_runtime => 1, # bool -- Execute `sudo -v` when `trizen` is first executed and apply the behavior of `sudo_autorepeat`.
|
||||||
sudo_autorepeat_interval => 180, # int -- Interval, in seconds, after which `sudo -v` is executed in background (with `sudo_autorepeat`).
|
sudo_autorepeat_interval => 180, # int -- Interval, in seconds, after which `sudo -v` is executed in background (with `sudo_autorepeat`).
|
||||||
sudo_command => "/usr/bin/sudo", # str -- Command used when special permissions are required and `use_sudo` is set to 1.
|
sudo_command => "/usr/bin/sudo", # str -- Command used when special permissions are required and `use_sudo` is set to 1.
|
||||||
use_sudo => 1, # bool -- Use the `sudo` command when special permissions are required.
|
use_sudo => 1, # bool -- Use the `sudo` command when special permissions are required.
|
||||||
|
6
config/picom.conf
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
#################################
|
||||||
|
# Transparency / Opacity #
|
||||||
|
#################################
|
||||||
|
|
||||||
|
# Opacity of inactive windows. (0.1 - 1.0)
|
||||||
|
inactive-opacity = 1.0;
|
12
config/rofi
@@ -1,12 +0,0 @@
|
|||||||
rofi.color-window: #1e1e1e, #333333, #333333
|
|
||||||
rofi.color-normal: #1e1e1e, #848484, #1e1e1e, #333333, #f6f6f7
|
|
||||||
rofi.color-active: #333333, #ef5350, #0000ff, #333333, #f6f6f7
|
|
||||||
rofi.color-urgent: #333333, #ef5350, #0000ff, #333333, #f6f6f7
|
|
||||||
|
|
||||||
rofi.lines: 10
|
|
||||||
rofi.line-padding: 5
|
|
||||||
rofi.font: monospace 10
|
|
||||||
|
|
||||||
rofi.terminal: xfce4-terminal
|
|
||||||
rofi.ssh-client: ssh
|
|
||||||
rofi.ssh-command: {terminal} -e "{ssh-client} {host}"
|
|
162
config/rofi/mytheme.rasi
Normal file
@@ -0,0 +1,162 @@
|
|||||||
|
/*
|
||||||
|
old color theme
|
||||||
|
----------------
|
||||||
|
State: 'bg', 'fg', 'bgalt', 'hlbg', 'hlfg'
|
||||||
|
----------------------------------------------------------------
|
||||||
|
color-normal: "#1e1e1e, #848484, #1e1e1e, #333333, #f6f6f7";
|
||||||
|
color-urgent: "#333333, #ef5350, #0000ff, #333333, #f6f6f7";
|
||||||
|
color-active: "#333333, #ef5350, #0000ff, #333333, #f6f6f7";
|
||||||
|
color-window: "#1e1e1e, #333333, #333333";
|
||||||
|
*/
|
||||||
|
|
||||||
|
* {
|
||||||
|
/* my vars */
|
||||||
|
background: #1e1e1e;
|
||||||
|
background-color: @background;
|
||||||
|
foreground: #848484;
|
||||||
|
foreground-normal: @foreground;
|
||||||
|
urgent: #333333;
|
||||||
|
active-fg: #ef5350;
|
||||||
|
|
||||||
|
/* background */
|
||||||
|
normal-background: @background;
|
||||||
|
alternate-urgent-background: @background;
|
||||||
|
lightbg: @background;
|
||||||
|
alternate-active-background: @background;
|
||||||
|
alternate-normal-background: @background;
|
||||||
|
selected-normal-background: rgba ( 57, 66, 73, 100 % );
|
||||||
|
|
||||||
|
/* foreground */
|
||||||
|
normal-foreground: @foreground-normal;
|
||||||
|
alternate-normal-foreground: @foreground;
|
||||||
|
selected-normal-foreground: rgba ( 255, 255, 255, 100 % );
|
||||||
|
selected-urgent-foreground: @urgent;
|
||||||
|
active-foreground: @active-fg;
|
||||||
|
urgent-foreground: @red;
|
||||||
|
alternate-urgent-foreground: @urgent-foreground;
|
||||||
|
alternate-active-foreground: @active-foreground;
|
||||||
|
|
||||||
|
|
||||||
|
/* borders */
|
||||||
|
bordercolor: @background;
|
||||||
|
border-color: @background;
|
||||||
|
|
||||||
|
selected-active-foreground: rgba ( 128, 203, 196, 100 % );
|
||||||
|
|
||||||
|
lightfg: rgba ( 88, 104, 117, 100 % );
|
||||||
|
spacing: 2;
|
||||||
|
separatorcolor: rgba ( 30, 37, 41, 100 % );
|
||||||
|
urgent-background: rgba ( 39, 50, 56, 100 % );
|
||||||
|
selected-urgent-background: rgba ( 57, 66, 73, 100 % );
|
||||||
|
active-background: rgba ( 39, 50, 56, 100 % );
|
||||||
|
selected-active-background: rgba ( 57, 66, 73, 100 % );
|
||||||
|
}
|
||||||
|
window {
|
||||||
|
background-color: @background;
|
||||||
|
border: 1;
|
||||||
|
padding: 5;
|
||||||
|
}
|
||||||
|
mainbox {
|
||||||
|
border: 0;
|
||||||
|
padding: 0;
|
||||||
|
}
|
||||||
|
message {
|
||||||
|
border: 1px dash 0px 0px ;
|
||||||
|
border-color: @separatorcolor;
|
||||||
|
padding: 1px ;
|
||||||
|
}
|
||||||
|
textbox {
|
||||||
|
text-color: @foreground;
|
||||||
|
}
|
||||||
|
listview {
|
||||||
|
fixed-height: 0;
|
||||||
|
border: 2px dash 0px 0px ;
|
||||||
|
border-color: @separatorcolor;
|
||||||
|
spacing: 2px ;
|
||||||
|
scrollbar: true;
|
||||||
|
padding: 2px 0px 0px ;
|
||||||
|
}
|
||||||
|
element {
|
||||||
|
border: 0;
|
||||||
|
padding: 1px ;
|
||||||
|
}
|
||||||
|
element-text {
|
||||||
|
background-color: inherit;
|
||||||
|
text-color: inherit;
|
||||||
|
}
|
||||||
|
element.normal.normal {
|
||||||
|
background-color: @normal-background;
|
||||||
|
text-color: @normal-foreground;
|
||||||
|
}
|
||||||
|
element.normal.urgent {
|
||||||
|
background-color: @urgent-background;
|
||||||
|
text-color: @urgent-foreground;
|
||||||
|
}
|
||||||
|
element.normal.active {
|
||||||
|
background-color: @active-background;
|
||||||
|
text-color: @active-foreground;
|
||||||
|
}
|
||||||
|
element.selected.normal {
|
||||||
|
background-color: @selected-normal-background;
|
||||||
|
text-color: @selected-normal-foreground;
|
||||||
|
}
|
||||||
|
element.selected.urgent {
|
||||||
|
background-color: @selected-urgent-background;
|
||||||
|
text-color: @selected-urgent-foreground;
|
||||||
|
}
|
||||||
|
element.selected.active {
|
||||||
|
background-color: @selected-active-background;
|
||||||
|
text-color: @selected-active-foreground;
|
||||||
|
}
|
||||||
|
element.alternate.normal {
|
||||||
|
background-color: @alternate-normal-background;
|
||||||
|
text-color: @alternate-normal-foreground;
|
||||||
|
}
|
||||||
|
element.alternate.urgent {
|
||||||
|
background-color: @alternate-urgent-background;
|
||||||
|
text-color: @alternate-urgent-foreground;
|
||||||
|
}
|
||||||
|
element.alternate.active {
|
||||||
|
background-color: @alternate-active-background;
|
||||||
|
text-color: @alternate-active-foreground;
|
||||||
|
}
|
||||||
|
scrollbar {
|
||||||
|
width: 4px ;
|
||||||
|
border: 0;
|
||||||
|
handle-width: 8px ;
|
||||||
|
padding: 0;
|
||||||
|
}
|
||||||
|
mode-switcher {
|
||||||
|
border: 2px dash 0px 0px ;
|
||||||
|
border-color: @separatorcolor;
|
||||||
|
}
|
||||||
|
button.selected {
|
||||||
|
background-color: @selected-normal-background;
|
||||||
|
text-color: @selected-normal-foreground;
|
||||||
|
}
|
||||||
|
inputbar {
|
||||||
|
spacing: 0;
|
||||||
|
text-color: @normal-foreground;
|
||||||
|
padding: 1px ;
|
||||||
|
}
|
||||||
|
case-indicator {
|
||||||
|
spacing: 0;
|
||||||
|
text-color: @normal-foreground;
|
||||||
|
}
|
||||||
|
entry {
|
||||||
|
spacing: 0;
|
||||||
|
text-color: @normal-foreground;
|
||||||
|
}
|
||||||
|
prompt {
|
||||||
|
spacing: 0;
|
||||||
|
text-color: @normal-foreground;
|
||||||
|
}
|
||||||
|
inputbar {
|
||||||
|
children: [ prompt,textbox-prompt-colon,entry,case-indicator ];
|
||||||
|
}
|
||||||
|
textbox-prompt-colon {
|
||||||
|
expand: false;
|
||||||
|
str: ":";
|
||||||
|
margin: 0px 0.3em 0em 0em ;
|
||||||
|
text-color: @normal-foreground;
|
||||||
|
}
|
14
config/rofi/rofi.rasi
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
configuration {
|
||||||
|
modi: "window,run,ssh,combi";
|
||||||
|
font: "monospace 10";
|
||||||
|
terminal: "xfce4-terminal";
|
||||||
|
ssh-client: "ssh";
|
||||||
|
ssh-command: "{terminal} -e "{ssh-client} {host}"";
|
||||||
|
|
||||||
|
/* ! State: 'bg', 'fg', 'bgalt', 'hlbg', 'hlfg'
|
||||||
|
lines: 10;
|
||||||
|
line-padding: 5;
|
||||||
|
*/
|
||||||
|
}
|
||||||
|
|
||||||
|
@theme "~/.config/rofi/mytheme.rasi"
|
14
dependencies/aur.txt
vendored
@@ -1,14 +1,20 @@
|
|||||||
notify-osd-customizable
|
visual-studio-code-bin
|
||||||
notifyconf
|
i3blocks-contrib
|
||||||
enpass-bin
|
enpass-bin
|
||||||
insync
|
insync
|
||||||
visual-studio-code-insiders
|
|
||||||
ttf-font-awesome-4
|
ttf-font-awesome-4
|
||||||
awesome-terminal-fonts-git
|
awesome-terminal-fonts-git
|
||||||
otf-droid-sans-mono-powerline-git
|
otf-droid-sans-mono-powerline-git
|
||||||
downgrade
|
downgrade
|
||||||
|
powerline-rs
|
||||||
dive
|
dive
|
||||||
xorg-xev
|
xorg-xev
|
||||||
networkmanager-l2tp
|
networkmanager-l2tp
|
||||||
snapd
|
snapd
|
||||||
i3blocks-contrib
|
azure-cli
|
||||||
|
notify-osd-customizable
|
||||||
|
notifyconf
|
||||||
|
dotnet-host-bin
|
||||||
|
sysmontask
|
||||||
|
keychain
|
||||||
|
nomachine
|
||||||
|
25
dependencies/pacman.txt
vendored
@@ -1,3 +1,4 @@
|
|||||||
|
base-devel
|
||||||
xorg-server
|
xorg-server
|
||||||
xorg-xinit
|
xorg-xinit
|
||||||
mesa
|
mesa
|
||||||
@@ -7,8 +8,8 @@ i3lock
|
|||||||
feh
|
feh
|
||||||
scrot
|
scrot
|
||||||
arandr
|
arandr
|
||||||
chromium
|
|
||||||
xfce4-terminal
|
xfce4-terminal
|
||||||
|
ttf-font-awesome
|
||||||
sushi
|
sushi
|
||||||
libconfig
|
libconfig
|
||||||
compton
|
compton
|
||||||
@@ -26,7 +27,6 @@ python-pip
|
|||||||
gdm
|
gdm
|
||||||
neofetch
|
neofetch
|
||||||
git
|
git
|
||||||
networkmanager
|
|
||||||
scrot
|
scrot
|
||||||
acpi
|
acpi
|
||||||
imagemagick
|
imagemagick
|
||||||
@@ -68,5 +68,22 @@ networkmanager-openvpn
|
|||||||
ranger
|
ranger
|
||||||
w3m
|
w3m
|
||||||
system-config-printer
|
system-config-printer
|
||||||
thunar
|
nautilus
|
||||||
thunar-archive-plugin
|
nautilus-share
|
||||||
|
wget
|
||||||
|
pyenv
|
||||||
|
jq
|
||||||
|
firefox
|
||||||
|
dotnet-host
|
||||||
|
dotnet-runtime
|
||||||
|
dotnet-sdk
|
||||||
|
aspnet-runtime
|
||||||
|
clamav
|
||||||
|
clamtk
|
||||||
|
keychain
|
||||||
|
thefuck
|
||||||
|
peek
|
||||||
|
blueman
|
||||||
|
pulseaudio-bluetooth
|
||||||
|
bluez
|
||||||
|
bluez-libs
|
||||||
|
6
dependencies/pip.txt
vendored
@@ -1 +1,5 @@
|
|||||||
powerline-shell
|
msrestazure
|
||||||
|
azure.common
|
||||||
|
azure.mgmt
|
||||||
|
azure.mgmt.containerservice
|
||||||
|
azure.graphrbac
|
||||||
|
32
i3/config
@@ -13,7 +13,7 @@ floating_modifier $mod
|
|||||||
# Constants #
|
# Constants #
|
||||||
############################################
|
############################################
|
||||||
|
|
||||||
set $urgentTextColour #101218
|
set $urgentTextBackgroundColour #a6a6a6
|
||||||
set $primaryBackgroundColour #1e1e1e
|
set $primaryBackgroundColour #1e1e1e
|
||||||
set $secondaryBackgroundColour #252526
|
set $secondaryBackgroundColour #252526
|
||||||
set $tertiaryBackgroundColour #333333
|
set $tertiaryBackgroundColour #333333
|
||||||
@@ -22,7 +22,7 @@ set $textColour #848484
|
|||||||
set $focusedTextColour #f6f6f7
|
set $focusedTextColour #f6f6f7
|
||||||
|
|
||||||
set $statusLineColour #d1d4e0
|
set $statusLineColour #d1d4e0
|
||||||
set $urgentBackground #ef5350
|
set $urgentTextColour #ef5350
|
||||||
set $indicatorColour #fcc09e
|
set $indicatorColour #fcc09e
|
||||||
|
|
||||||
set $workspace1 "1: "
|
set $workspace1 "1: "
|
||||||
@@ -31,11 +31,11 @@ set $workspace3 "3: "
|
|||||||
set $workspace4 "4: "
|
set $workspace4 "4: "
|
||||||
set $workspace5 "5: "
|
set $workspace5 "5: "
|
||||||
set $workspace6 "6: "
|
set $workspace6 "6: "
|
||||||
set $workspace7 "7: "
|
set $workspace7 "7: "
|
||||||
set $workspace8 "8: "
|
set $workspace8 "8: "
|
||||||
set $workspace9 "9: "
|
set $workspace9 "9: "
|
||||||
set $workspace10 "10: "
|
set $workspace10 "10: "
|
||||||
set $workspace11 " Virtualbox"
|
set $workspace11 " VM/Remote"
|
||||||
set $workspace12 " Enpass"
|
set $workspace12 " Enpass"
|
||||||
|
|
||||||
# scripts
|
# scripts
|
||||||
@@ -112,23 +112,25 @@ bindsym $mod+r mode "resize"
|
|||||||
# Lock the computer
|
# Lock the computer
|
||||||
bindsym $mod+l exec /bin/bash ~/.config/i3/scripts/i3lock.sh
|
bindsym $mod+l exec /bin/bash ~/.config/i3/scripts/i3lock.sh
|
||||||
|
|
||||||
# Lock the computer
|
# Suspend the computer
|
||||||
bindsym $mod+shift+l exec /bin/bash ~/.config/i3/scripts/suspend.sh
|
bindsym $mod+shift+l exec /bin/bash ~/.config/i3/scripts/suspend.sh
|
||||||
|
|
||||||
############################################
|
############################################
|
||||||
# Application Keys #
|
# Application Keys #
|
||||||
############################################
|
############################################
|
||||||
bindsym $mod+Return exec xfce4-terminal # terminal
|
bindsym $mod+Return exec xfce4-terminal # terminal
|
||||||
bindsym $mod+e exec xfce4-terminal -e ranger # File manager
|
bindsym $mod+e exec nautilus # File manager
|
||||||
bindsym Print exec flameshot screen -d 0 -p ~/Pictures/Screenshots # Fullscreen screenshot
|
bindsym Print exec flameshot screen -d 0 -p ~/Pictures/Screenshots # Fullscreen screenshot
|
||||||
bindsym $mod+Print exec flameshot gui # Show screenshot window
|
bindsym $mod+Print exec flameshot gui # Show screenshot window
|
||||||
bindsym $mod+shift+b exec /bin/bash ~/.config/i3/scripts/brightness.sh
|
bindsym $mod+shift+b exec /bin/bash ~/.config/i3/scripts/brightness.sh
|
||||||
|
bindsym control+shift+Escape exec sysmontask
|
||||||
|
|
||||||
# Rofi
|
# Rofi
|
||||||
bindsym $mod+d exec "rofi -show run"
|
bindsym $mod+d exec "rofi -show run"
|
||||||
bindsym $mod+Tab exec "rofi -show"
|
bindsym $mod+Tab exec "rofi -show"
|
||||||
bindsym $mod+s exec "rofi -show ssh"
|
bindsym $mod+s exec "rofi -show ssh"
|
||||||
bindsym $mod+n exec $vpnmanager
|
bindsym $mod+n exec $vpnmanager
|
||||||
|
bindsym $mod+shift+v exec "rofi -modi 'clipboard:greenclip print' -show clipboard -run-command '{cmd}'"
|
||||||
|
|
||||||
############################################
|
############################################
|
||||||
# Media keys #
|
# Media keys #
|
||||||
@@ -187,8 +189,7 @@ bindsym $mod+Shift+p move container to workspace $workspace12
|
|||||||
# Appearance settings #
|
# Appearance settings #
|
||||||
############################################
|
############################################
|
||||||
# Set the default font
|
# Set the default font
|
||||||
#font pango:DejaVu Sans Mono 8
|
font pango:Liberation sans 13
|
||||||
font pango:System San Francisco Display 10
|
|
||||||
|
|
||||||
# Bar decoration
|
# Bar decoration
|
||||||
bar {
|
bar {
|
||||||
@@ -204,7 +205,7 @@ bar {
|
|||||||
focused_workspace $primaryBackgroundColour $primaryBackgroundColour $focusedTextColour
|
focused_workspace $primaryBackgroundColour $primaryBackgroundColour $focusedTextColour
|
||||||
active_workspace $primaryBackgroundColour $secondaryBackgroundColour $textColour
|
active_workspace $primaryBackgroundColour $secondaryBackgroundColour $textColour
|
||||||
inactive_workspace $primaryBackgroundColour $primaryBackgroundColour $textColour
|
inactive_workspace $primaryBackgroundColour $primaryBackgroundColour $textColour
|
||||||
urgent_workspace $primaryBackgroundColour $primaryBackgroundColour $urgentBackground
|
urgent_workspace $primaryBackgroundColour $primaryBackgroundColour $urgentTextColour
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -216,13 +217,16 @@ hide_edge_borders both
|
|||||||
client.focused $primaryBackgroundColour $primaryBackgroundColour $focusedTextColour $indicatorColour
|
client.focused $primaryBackgroundColour $primaryBackgroundColour $focusedTextColour $indicatorColour
|
||||||
client.focused_inactive $secondaryBackgroundColour $secondaryBackgroundColour $textColour $indicatorColour
|
client.focused_inactive $secondaryBackgroundColour $secondaryBackgroundColour $textColour $indicatorColour
|
||||||
client.unfocused $secondaryBackgroundColour $secondaryBackgroundColour $textColour $indicatorColour
|
client.unfocused $secondaryBackgroundColour $secondaryBackgroundColour $textColour $indicatorColour
|
||||||
client.urgent $secondaryBackgroundColour $urgentBackground $urgentTextColour $indicatorColour
|
client.urgent $secondaryBackgroundColour $urgentTextBackgroundColour $urgentTextColour $indicatorColour
|
||||||
|
|
||||||
# Floating windows
|
# Floating windows
|
||||||
for_window [class="Pavucontrol"] floating enable
|
for_window [class="Pavucontrol"] floating enable
|
||||||
for_window [class="Lxappearance"] floating enable
|
for_window [class="Lxappearance"] floating enable
|
||||||
for_window [class="Arandr"] floating enable
|
for_window [class="Arandr"] floating enable
|
||||||
for_window [class="Eog"] floating enable
|
for_window [class="Eog"] floating enable
|
||||||
|
for_window [title="Tidal-hifi - settings"] floating enable
|
||||||
|
for_window [class="Sysmontask"] floating enable
|
||||||
|
for_window [class="Sysmontask"] resize set 930 665
|
||||||
|
|
||||||
############################################
|
############################################
|
||||||
# Workspace specific tools #
|
# Workspace specific tools #
|
||||||
@@ -230,7 +234,6 @@ for_window [class="Eog"] floating enable
|
|||||||
############################################
|
############################################
|
||||||
assign [class="Franz"] $workspace9
|
assign [class="Franz"] $workspace9
|
||||||
assign [class="Enpass-Desktop"] $workspace12
|
assign [class="Enpass-Desktop"] $workspace12
|
||||||
assign [class="Enpass"] $workspace12
|
|
||||||
assign [class="VirtualBox Machine"] $workspace11
|
assign [class="VirtualBox Machine"] $workspace11
|
||||||
|
|
||||||
# database stuff
|
# database stuff
|
||||||
@@ -303,10 +306,11 @@ mode "$mode_gaps_outer" {
|
|||||||
# Autorun #
|
# Autorun #
|
||||||
############################################
|
############################################
|
||||||
exec --no-startup-id i3-msg 'workspace $workspace2; exec xfce4-terminal' && i3-msg 'workspace $workspace1'
|
exec --no-startup-id i3-msg 'workspace $workspace2; exec xfce4-terminal' && i3-msg 'workspace $workspace1'
|
||||||
exec 'enpass'
|
exec --no-startup-id i3-msg 'workspace $workspace12; exec enpass'
|
||||||
exec --no-startup-id nm-applet
|
exec --no-startup-id nm-applet
|
||||||
exec_always feh --bg-scale ~/Pictures/Wallpapers/wallpaper.jpg
|
exec_always feh --bg-scale $(find ~/Pictures/wallpapers/ -type f -name "*" | shuf -n 1)
|
||||||
exec /usr/bin/compton
|
exec /usr/bin/compton
|
||||||
exec /bin/bash ~/.config/i3/scripts/startup.sh
|
exec /bin/bash ~/.config/i3/scripts/startup.sh
|
||||||
|
exec --no-startup-id greenclip daemon
|
||||||
|
|
||||||
bindsym $mod+Shift+a border normal
|
bindsym $mod+Shift+a border normal
|
||||||
|
@@ -28,18 +28,11 @@ command=/usr/lib/i3blocks/$BLOCK_NAME/$BLOCK_NAME
|
|||||||
separator_block_width=15
|
separator_block_width=15
|
||||||
markup=none
|
markup=none
|
||||||
|
|
||||||
# Currently playing song
|
|
||||||
[play_music]
|
|
||||||
command=python ~/.config/i3/scripts/blocks/currentSong.py --layout t-A
|
|
||||||
separator_block_width=13
|
|
||||||
interval=1
|
|
||||||
color=#e29e0b
|
|
||||||
|
|
||||||
[tidal]
|
[tidal]
|
||||||
command=bash ~/.config/i3/scripts/blocks/tidal.sh
|
command=bash ~/.config/i3/scripts/blocks/tidal.sh
|
||||||
separator_block_width=13
|
separator_block_width=13
|
||||||
interval=1
|
interval=1
|
||||||
color=#4293f5
|
color=#00ffff
|
||||||
|
|
||||||
[weather]
|
[weather]
|
||||||
command=curl wttr.in?format=1
|
command=curl wttr.in?format=1
|
||||||
@@ -58,6 +51,16 @@ label=
|
|||||||
interval=1
|
interval=1
|
||||||
color=#999999
|
color=#999999
|
||||||
|
|
||||||
|
# CPU usage
|
||||||
|
#
|
||||||
|
# The script may be called with -w and -c switches to specify thresholds,
|
||||||
|
# see the script for details.
|
||||||
|
[cpu_usage]
|
||||||
|
label=
|
||||||
|
interval=1
|
||||||
|
#min_width=CPU:100.00%
|
||||||
|
separator=true
|
||||||
|
|
||||||
[load_average]
|
[load_average]
|
||||||
label=
|
label=
|
||||||
interval=10
|
interval=10
|
||||||
@@ -125,15 +128,6 @@ signal=10
|
|||||||
separator=true
|
separator=true
|
||||||
color=#999999
|
color=#999999
|
||||||
|
|
||||||
# Battery indicator
|
|
||||||
# The battery instance defaults to 0.
|
|
||||||
# [battery]
|
|
||||||
# label=
|
|
||||||
# #instance=1
|
|
||||||
# interval=30
|
|
||||||
# separator=true
|
|
||||||
# color=#999999
|
|
||||||
|
|
||||||
# Battery indicator
|
# Battery indicator
|
||||||
# The battery instance defaults to 0.
|
# The battery instance defaults to 0.
|
||||||
[battery2]
|
[battery2]
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
temp=$(sensors | # execute sensors
|
intelTemp=$(sensors | # execute sensors
|
||||||
grep -w "Core 0:" | # grep for the first core
|
grep -w "Core 0:" | # grep for the first core
|
||||||
sed 's/([^)]*)//g' | # filter
|
sed 's/([^)]*)//g' | # filter
|
||||||
tr -s " " | # remove whitespace
|
tr -s " " | # remove whitespace
|
||||||
@@ -8,5 +8,13 @@ sed -e 's/Core 0\(.*\):/\1/' | # get value between Core 0 and :
|
|||||||
cut -c 3- | rev | cut -c 7- | rev #remove clutter
|
cut -c 3- | rev | cut -c 7- | rev #remove clutter
|
||||||
)
|
)
|
||||||
|
|
||||||
|
amdTemp=$(sensors | grep -w "Tdie:" | sed 's/([^)]*)//g' | tr -s " " | cut -c 8- | rev | cut -c 6- | rev)
|
||||||
|
|
||||||
# echo out the result
|
# echo out the result
|
||||||
echo $temp°C
|
if [ -z "$intelTemp" ]
|
||||||
|
then
|
||||||
|
echo $amdTemp
|
||||||
|
else
|
||||||
|
echo $intelTemp°C
|
||||||
|
fi
|
||||||
|
|
||||||
|
@@ -6,3 +6,10 @@ insync start
|
|||||||
# Wait for the programs to start then remove attention (e.g red blinking)
|
# Wait for the programs to start then remove attention (e.g red blinking)
|
||||||
sleep 1
|
sleep 1
|
||||||
wmctrl -r "Enpass" -b remove,demands_attention
|
wmctrl -r "Enpass" -b remove,demands_attention
|
||||||
|
|
||||||
|
|
||||||
|
# Start gkraken if the command exists
|
||||||
|
if command -v gkraken &> /dev/null
|
||||||
|
then
|
||||||
|
gkraken --hide-window &
|
||||||
|
fi
|
||||||
|
57
install.sh
@@ -22,7 +22,7 @@ ask() {
|
|||||||
default=
|
default=
|
||||||
fi
|
fi
|
||||||
echo -n "$1 [$prompt] "
|
echo -n "$1 [$prompt] "
|
||||||
read reply </dev/tty
|
read -r reply </dev/tty
|
||||||
|
|
||||||
if [ -z "$reply" ]; then
|
if [ -z "$reply" ]; then
|
||||||
reply=$default
|
reply=$default
|
||||||
@@ -38,20 +38,20 @@ ask() {
|
|||||||
|
|
||||||
# delete target, create dirs if they don't exist yet and finally symlink the dir
|
# delete target, create dirs if they don't exist yet and finally symlink the dir
|
||||||
function linkDir {
|
function linkDir {
|
||||||
rm -rf $2;
|
rm -rf "$2";
|
||||||
mkdir -p "${2%/*}"
|
mkdir -p "${2%/*}"
|
||||||
ln -sf $1 $2
|
ln -sf "$1" "$2"
|
||||||
}
|
}
|
||||||
|
|
||||||
# replace line endings with a space (for use in package managers)
|
# replace line endings with a space (for use in package managers)
|
||||||
function fileToList {
|
function fileToList {
|
||||||
echo $(cat $1 | sed ':a;N;$!ba;s/\n/ /g')
|
echo $(cat "$1" | sed ':a;N;$!ba;s/\n/ /g')
|
||||||
}
|
}
|
||||||
|
|
||||||
# create and copy files to directory
|
# create and copy files to directory
|
||||||
function copyToDir {
|
function copyToDir {
|
||||||
echo $2 | sed 's%/[^/]*$%/%' | xargs mkdir -p
|
echo "$2" | sed 's%/[^/]*$%/%' | xargs mkdir -p
|
||||||
cp $1 $2
|
cp "$1" "$2"
|
||||||
}
|
}
|
||||||
|
|
||||||
# =======================================
|
# =======================================
|
||||||
@@ -62,16 +62,16 @@ function copyToDir {
|
|||||||
function install_fonts {
|
function install_fonts {
|
||||||
mkdir -p ~/.fonts
|
mkdir -p ~/.fonts
|
||||||
mkdir -p ~/.local/share/fonts
|
mkdir -p ~/.local/share/fonts
|
||||||
yes | cp -rf ./fonts/* ~/.fonts
|
cp -rf ./fonts/* ~/.fonts
|
||||||
yes | cp -rf ./fonts/* ~/.local/share/fonts
|
cp -rf ./fonts/* ~/.local/share/fonts
|
||||||
}
|
}
|
||||||
|
|
||||||
# install trizen, a aur helper
|
# install trizen, a aur helper
|
||||||
function install_trizen {
|
function install_trizen {
|
||||||
git clone https://aur.archlinux.org/trizen.git
|
git clone https://aur.archlinux.org/trizen.git
|
||||||
pushd trizen
|
pushd trizen || return
|
||||||
makepkg -si
|
makepkg -si
|
||||||
popd
|
popd || return
|
||||||
sudo rm -dRf trizen/
|
sudo rm -dRf trizen/
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -79,8 +79,8 @@ function install_trizen {
|
|||||||
function install_config {
|
function install_config {
|
||||||
|
|
||||||
# link directories
|
# link directories
|
||||||
linkDir "$PWD"/wallpapers ~/Pictures/Wallpapers
|
linkDir "$PWD"/wallpapers/images ~/Pictures/wallpapers
|
||||||
linkDir "$PWD"/i3/ ~/.config/i3
|
linkDir "$PWD"/i3 ~/.config/i3
|
||||||
linkDir "$PWD"/config/notify-osd/notify-osd ~/.notify-osd
|
linkDir "$PWD"/config/notify-osd/notify-osd ~/.notify-osd
|
||||||
linkDir "$PWD"/config/terminal/xfce4-term ~/.config/xfce4/terminal
|
linkDir "$PWD"/config/terminal/xfce4-term ~/.config/xfce4/terminal
|
||||||
linkDir "$PWD"/config/gtk-3.0/settings.ini ~/.config/gtk-3.0/.config
|
linkDir "$PWD"/config/gtk-3.0/settings.ini ~/.config/gtk-3.0/.config
|
||||||
@@ -88,17 +88,23 @@ function install_config {
|
|||||||
|
|
||||||
# link user files
|
# link user files
|
||||||
ln -sf "$PWD"/bash/.bashrc ~/.bashrc
|
ln -sf "$PWD"/bash/.bashrc ~/.bashrc
|
||||||
|
ln -sf "$PWD"/bash/.dotnet-install.sh ~/.dotnet-install.sh
|
||||||
ln -sf "$PWD"/bash/.alias.sh ~/.alias
|
ln -sf "$PWD"/bash/.alias.sh ~/.alias
|
||||||
ln -sf "$PWD"/config/nano/.nanorc ~/.nanorc
|
ln -sf "$PWD"/config/nano/.nanorc ~/.nanorc
|
||||||
ln -sf "$PWD"/bash/.powerline-shell.json ~/.powerline-shell.json
|
ln -sf "$PWD"/bash/.powerline-shell.json ~/.powerline-shell.json
|
||||||
ln -sf "$PWD"/wallpapers/butterflies-in-space.jpg ~/Pictures/Wallpapers/wallpaper.jpg
|
ln -sf "$PWD"/config/gtk-3.0/settings.ini ~/.gtkrc-2.0.mine
|
||||||
mkdir -p ~/.config/rofi
|
ln -sf "$PWD"/config/mimeapps.list ~/.config/mimeapps.list
|
||||||
ln -sf "$PWD"/config/rofi ~/.config/rofi/config
|
|
||||||
|
mkdir -p ~/.config/rofi
|
||||||
|
ln -sf "$PWD"/config/rofi/rofi.rasi ~/.config/rofi/config.rasi
|
||||||
|
ln -sf "$PWD"/config/rofi/mytheme.rasi ~/.config/rofi/mytheme.rasi
|
||||||
|
|
||||||
ln -sf "$PWD"/config/.gitconfig ~/.gitconfig
|
ln -sf "$PWD"/config/.gitconfig ~/.gitconfig
|
||||||
ln -sf "$PWD"/config/.npmrc ~/.npmrc
|
ln -sf "$PWD"/config/.npmrc ~/.npmrc
|
||||||
ln -sf "$PWD"/config/user-dirs.dirs ~/.config/user-dirs.dirs
|
ln -sf "$PWD"/config/user-dirs.dirs ~/.config/user-dirs.dirs
|
||||||
mkdir -p ~/.pulse
|
mkdir -p ~/.pulse
|
||||||
ln -sf "$PWD"/config/pulse/daemon.conf ~/.pulse/daemon.conf
|
ln -sf "$PWD"/config/pulse/daemon.conf ~/.pulse/daemon.conf
|
||||||
|
ln -sf "$PWD"/config/picom.conf ~/.config/picom.conf
|
||||||
|
|
||||||
# link system files / directories
|
# link system files / directories
|
||||||
sudo ln -sf "$PWD"/config/package-managers/pacman.conf /etc/pacman.conf
|
sudo ln -sf "$PWD"/config/package-managers/pacman.conf /etc/pacman.conf
|
||||||
@@ -117,7 +123,7 @@ function install_config {
|
|||||||
|
|
||||||
# Installs the dependencies on Arch Linux
|
# Installs the dependencies on Arch Linux
|
||||||
function install_dependencies {
|
function install_dependencies {
|
||||||
fileToList dependencies/pacman.txt | xargs sudo pacman --noconfirm --force -S
|
fileToList dependencies/pacman.txt | xargs sudo pacman --noconfirm -S
|
||||||
|
|
||||||
install_trizen
|
install_trizen
|
||||||
fileToList dependencies/aur.txt | xargs trizen --force -S --noconfirm
|
fileToList dependencies/aur.txt | xargs trizen --force -S --noconfirm
|
||||||
@@ -132,20 +138,6 @@ function install_dependencies {
|
|||||||
# User output functions
|
# User output functions
|
||||||
# =======================================
|
# =======================================
|
||||||
|
|
||||||
# list the dependencies file
|
|
||||||
function list_dependencies {
|
|
||||||
echo ""
|
|
||||||
echo "=========================="
|
|
||||||
echo ""
|
|
||||||
cat dependencies/pacman.txt
|
|
||||||
cat dependencies/aur.txt
|
|
||||||
cat dependencies/pip.txt
|
|
||||||
cat dependencies/npm.txt
|
|
||||||
echo ""
|
|
||||||
echo "=========================="
|
|
||||||
echo ""
|
|
||||||
}
|
|
||||||
|
|
||||||
# Run the intro bit
|
# Run the intro bit
|
||||||
function intro {
|
function intro {
|
||||||
echo "___ ___ _ _ _ _ _ "
|
echo "___ ___ _ _ _ _ _ "
|
||||||
@@ -197,8 +189,7 @@ intro
|
|||||||
ask "Do you want to continue installing my config and rice?" Y &&
|
ask "Do you want to continue installing my config and rice?" Y &&
|
||||||
|
|
||||||
# Ask for dependency installation
|
# Ask for dependency installation
|
||||||
list_dependencies
|
if ask "Do you want to install the applications listen in ./dependencies? (might prompt for password)" Y; then
|
||||||
if ask "Do you want to install the list of applications above? (might prompt for password)" Y; then
|
|
||||||
install_dependencies
|
install_dependencies
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@@ -220,7 +211,7 @@ fi
|
|||||||
clear
|
clear
|
||||||
computer
|
computer
|
||||||
# ask for pc specific install
|
# ask for pc specific install
|
||||||
prompt=`echo $'\n> ' Please select a specific computer to install or q to finish the install`
|
prompt=$(echo $'\n> ' "Please select a specific computer to install or q to finish the install")
|
||||||
|
|
||||||
PS3="$prompt: "
|
PS3="$prompt: "
|
||||||
select opt in "$PWD/computers"/*; do
|
select opt in "$PWD/computers"/*; do
|
||||||
|
BIN
media/dotfiles4.jpg
Normal file
After Width: | Height: | Size: 191 KiB |
4
wallpapers/README.md
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
# wallpaper display
|
||||||
|
|
||||||
|
![]()
|
||||||
|
by
|
24
wallpapers/data.json
Normal file
@@ -0,0 +1,24 @@
|
|||||||
|
[
|
||||||
|
{
|
||||||
|
"images": ["blue-butterflies.jpg"],
|
||||||
|
"by": "https://pixabay.com/users/stergo-4163614/"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"images": [
|
||||||
|
"forest.jpg",
|
||||||
|
"lake-thunder.jpg",
|
||||||
|
"dark-hedges.jpg",
|
||||||
|
"thunderstorm-sea.jpg",
|
||||||
|
"sunset-dawn.jpg"
|
||||||
|
],
|
||||||
|
"by": "https://pixabay.com/users/jplenio-7645255/"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"images": ["starman.jpg", "friends.jpg"],
|
||||||
|
"by": "https://pixabay.com/users/free-photos-242387/"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"images": ["ping-cherryblossom.jpg", "winter-tree.jpg"],
|
||||||
|
"by": "https://pixabay.com/users/hans-2/"
|
||||||
|
}
|
||||||
|
]
|
BIN
wallpapers/images/blue-butterflies.jpg
Normal file
After Width: | Height: | Size: 251 KiB |
Before Width: | Height: | Size: 678 KiB After Width: | Height: | Size: 678 KiB |
Before Width: | Height: | Size: 2.0 MiB After Width: | Height: | Size: 2.0 MiB |
Before Width: | Height: | Size: 252 KiB After Width: | Height: | Size: 252 KiB |
BIN
wallpapers/images/dark-hedges.jpg
Normal file
After Width: | Height: | Size: 686 KiB |
BIN
wallpapers/images/forest.jpg
Normal file
After Width: | Height: | Size: 536 KiB |
BIN
wallpapers/images/friends.jpg
Normal file
After Width: | Height: | Size: 1.4 MiB |
BIN
wallpapers/images/lake-thunder.jpg
Normal file
After Width: | Height: | Size: 432 KiB |
BIN
wallpapers/images/pink-cherryblossom.jpg
Normal file
After Width: | Height: | Size: 187 KiB |
BIN
wallpapers/images/pug-in-blanket.jpg
Normal file
After Width: | Height: | Size: 1.9 MiB |
Before Width: | Height: | Size: 278 KiB After Width: | Height: | Size: 278 KiB |
BIN
wallpapers/images/starman.jpg
Normal file
After Width: | Height: | Size: 483 KiB |
BIN
wallpapers/images/sunset-dawn.jpg
Normal file
After Width: | Height: | Size: 263 KiB |
BIN
wallpapers/images/thunderstorm-sea.jpg
Normal file
After Width: | Height: | Size: 245 KiB |
BIN
wallpapers/images/winter-tree.jpg
Normal file
After Width: | Height: | Size: 575 KiB |
BIN
wallpapers/license/blue-butterflies.jpg
Normal file
After Width: | Height: | Size: 708 KiB |
BIN
wallpapers/license/dark-hedges.jpg
Normal file
After Width: | Height: | Size: 154 KiB |
BIN
wallpapers/license/forest.jpg
Normal file
After Width: | Height: | Size: 132 KiB |
BIN
wallpapers/license/friends.jpg
Normal file
After Width: | Height: | Size: 140 KiB |
BIN
wallpapers/license/lake-thunder.jpg
Normal file
After Width: | Height: | Size: 904 KiB |
BIN
wallpapers/license/pink-cherryblossom.jpg
Normal file
After Width: | Height: | Size: 83 KiB |
BIN
wallpapers/license/pug-in-blanket.jpg
Normal file
After Width: | Height: | Size: 144 KiB |
BIN
wallpapers/license/starman.jpg
Normal file
After Width: | Height: | Size: 942 KiB |
BIN
wallpapers/license/sunset-dawn.jpg
Normal file
After Width: | Height: | Size: 89 KiB |
BIN
wallpapers/license/thunderstorm-sea.jpg
Normal file
After Width: | Height: | Size: 74 KiB |
BIN
wallpapers/license/winter-tree.jpg
Normal file
After Width: | Height: | Size: 159 KiB |
@@ -1 +0,0 @@
|
|||||||
/home/mastermindzh/dotfiles/wallpapers/butterflies-in-space.jpg
|
|