mirror of
https://github.com/Mastermindzh/dotfiles.git
synced 2024-11-23 23:34:07 +01:00
added some new commands, added mimeapps.list
This commit is contained in:
parent
189cc57b20
commit
c73d598f17
@ -24,6 +24,7 @@ alias efupdate="dotnet ef database update"
|
||||
alias efmigrate="dotnet ef migrations add"
|
||||
alias efremove="dotnet ef migrations remove"
|
||||
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
|
||||
alias gitremovelocalbranches='git branch --merged | egrep -v "(^\*|master|dev)" | xargs git branch -d'
|
||||
@ -64,6 +65,8 @@ alias clean-all='clean-trash && clean-journal && clean-pacmancache && docker-cle
|
||||
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"
|
||||
|
||||
# might be useful in demos...
|
||||
alias oopsie='fuck'
|
||||
@ -101,6 +104,7 @@ alias tree='tree --dirsfirst'
|
||||
alias handbrake='ghb'
|
||||
alias cal='cal -mw --color'
|
||||
alias chrome='google-chrome-stable'
|
||||
alias teams='teams-insiders --disable-seccomp-filter-sandbox'
|
||||
|
||||
# grub
|
||||
alias update-grub='grub-mkconfig -o /boot/grub/grub.cfg'
|
||||
|
@ -20,6 +20,7 @@ sourceIfExists ~/lib/azure-cli/az.completion
|
||||
eval "$(thefuck --alias)"
|
||||
|
||||
# evals
|
||||
eval $(keychain --eval --quiet ~/.ssh/id_rsa)
|
||||
eval "$(pyenv init -)"
|
||||
|
||||
export NVM_DIR="$HOME/.nvm"
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -61,6 +61,16 @@ declare -A MOUNTS7=(
|
||||
[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 -n MOUNTS
|
||||
|
||||
|
76
config/mimeapps.list
Normal file
76
config/mimeapps.list
Normal file
@ -0,0 +1,76 @@
|
||||
[Default Applications]
|
||||
|
||||
# browser
|
||||
#--------------
|
||||
text/html=google-chrome.desktop
|
||||
x-scheme-handler/http=google-chrome.desktop
|
||||
x-scheme-handler/https=google-chrome.desktop
|
||||
x-scheme-handler/about=google-chrome.desktop
|
||||
x-scheme-handler/unknown=google-chrome.desktop
|
||||
x-scheme-handler/webcal=google-chrome.desktop
|
||||
x-scheme-handler/chrome=google-chrome.desktop
|
||||
application/x-extension-htm=google-chrome.desktop
|
||||
application/x-extension-html=google-chrome.desktop
|
||||
application/x-extension-shtml=google-chrome.desktop
|
||||
application/xhtml+xml=google-chrome.desktop
|
||||
application/x-extension-xhtml=google-chrome.desktop
|
||||
application/x-extension-xht=google-chrome.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=google-chrome.desktop;
|
||||
x-scheme-handler/https=google-chrome.desktop;
|
||||
text/html=google-chrome.desktop;
|
||||
|
||||
# text
|
||||
#--------------
|
||||
text/plain=gnome.gedit.desktop;
|
||||
application/pdf=mupdf.desktop;google-chrome.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
|
||||
#--------------
|
||||
|
1
dependencies/aur.txt
vendored
1
dependencies/aur.txt
vendored
@ -16,3 +16,4 @@ notify-osd-customizable
|
||||
notifyconf
|
||||
dotnet-host-bin
|
||||
sysmontask
|
||||
keychain
|
||||
|
1
dependencies/pacman.txt
vendored
1
dependencies/pacman.txt
vendored
@ -71,7 +71,6 @@ w3m
|
||||
system-config-printer
|
||||
nautilus
|
||||
nautilus-share
|
||||
geany
|
||||
dotnet-host
|
||||
dotnet-runtime
|
||||
dotnet-sdk
|
||||
|
@ -112,7 +112,7 @@ bindsym $mod+r mode "resize"
|
||||
# Lock the computer
|
||||
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
|
||||
|
||||
############################################
|
||||
@ -130,6 +130,7 @@ bindsym $mod+d exec "rofi -show run"
|
||||
bindsym $mod+Tab exec "rofi -show"
|
||||
bindsym $mod+s exec "rofi -show ssh"
|
||||
bindsym $mod+n exec $vpnmanager
|
||||
bindsym $mod+shift+v exec "rofi -modi 'clipboard:greenclip print' -show clipboard -run-command '{cmd}'"
|
||||
|
||||
############################################
|
||||
# Media keys #
|
||||
@ -310,5 +311,6 @@ exec --no-startup-id nm-applet
|
||||
exec_always feh --bg-scale $(find ~/Pictures/wallpapers/ -type f -name "*" | shuf -n 1)
|
||||
exec /usr/bin/compton
|
||||
exec /bin/bash ~/.config/i3/scripts/startup.sh
|
||||
exec --no-startup-id greenclip daemon
|
||||
|
||||
bindsym $mod+Shift+a border normal
|
||||
|
@ -93,6 +93,8 @@ function install_config {
|
||||
ln -sf "$PWD"/config/nano/.nanorc ~/.nanorc
|
||||
ln -sf "$PWD"/bash/.powerline-shell.json ~/.powerline-shell.json
|
||||
ln -sf "$PWD"/config/gtk-3.0/settings.ini ~/.gtkrc-2.0.mine
|
||||
ln -sf "$PWD"/config/mimeapps.list ~/.config/mimeapps.list
|
||||
|
||||
mkdir -p ~/.config/rofi
|
||||
ln -sf "$PWD"/config/rofi ~/.config/rofi/config
|
||||
ln -sf "$PWD"/config/.gitconfig ~/.gitconfig
|
||||
|
Loading…
Reference in New Issue
Block a user