mirror of
https://github.com/Mastermindzh/dotfiles.git
synced 2024-11-25 08:13:34 +01:00
Merge branch 'master' of https://github.com/mastermindzh/dotfiles
This commit is contained in:
commit
e6e9958ef4
15
README.md
15
README.md
@ -4,15 +4,20 @@ This repository holds my Linux config files.
|
||||
|
||||
## Mandatory unixporn screenshots
|
||||
|
||||
New version as of dec 2021:
|
||||
New version as of Nov 2022:
|
||||
|
||||
[![dotfiles](media/dotfiles4.jpg)](https://raw.githubusercontent.com/Mastermindzh/dotfiles/master/media/dotfiles4.jpg)
|
||||
[![dotfiles](media/dotfiles5.png)](https://raw.githubusercontent.com/Mastermindzh/dotfiles/master/media/dotfiles5.png)
|
||||
|
||||
I changed the terminal out for gnome-terminal, full-screen it has the same color-hue as the i3bar:
|
||||
|
||||
<img src = "media/dotfiles-small-5.png" width="200">
|
||||
|
||||
Older versions:
|
||||
|
||||
- [dotfiles](media/dotfiles3.png)
|
||||
- [dotfiles](media/dotfiles.png)
|
||||
- [dotfiles4](https://raw.githubusercontent.com/Mastermindzh/dotfiles/master/media/dotfiles4.jpg)
|
||||
- [dotfiles3](media/dotfiles3.png)
|
||||
- [dotfiles2](media/dotfiles2.png)
|
||||
- [dotfiles](media/dotfiles.png)
|
||||
|
||||
## Tools
|
||||
|
||||
@ -23,7 +28,7 @@ Older versions:
|
||||
| Shell | Bash |
|
||||
| Package managers | Pacman & Trizen |
|
||||
| OS | Arch Linux |
|
||||
| Terminal | xfce4-terminal |
|
||||
| Terminal | gnome-terminal |
|
||||
| Editor | nano |
|
||||
| Code editor | vscode |
|
||||
| Browser | Firefox |
|
||||
|
@ -33,7 +33,7 @@ alias undo-commit='git reset --soft HEAD^'
|
||||
|
||||
## pacman and trizen
|
||||
alias aur='trizen --noconfirm'
|
||||
alias update='trizen -Syu --noconfirm'
|
||||
alias update='trizen --sudo_remove_timestamp=0 --sudo_autorepeat=1 --sudo_autorepeat_at_runtime=1 -Syu --noconfirm'
|
||||
alias remove-orphans='sudo pacman -Rns $(pacman -Qtdq)'
|
||||
alias updatekeys='sudo pacman-key --refresh-key'
|
||||
alias clean-pacmancache='sudo paccache -rk 1 && sudo paccache -ruk0'
|
||||
@ -52,7 +52,6 @@ alias psmem='ps auxf | sort -nr -k 5 | head -n 5'
|
||||
|
||||
##utility
|
||||
alias nmapscan='nmap -n -sP'
|
||||
alias pia='nohup sh /opt/pia/run.sh &>/dev/null & disown'
|
||||
alias wifimenu='nm-connection-editor'
|
||||
alias findcrlf='find . -path node_modules -prune -o -not -type d -exec file "{}" ";" | grep -E "BOM|CRLF"'
|
||||
alias fixcrlf='findcrlf > /tmp/crlftolf && cat /tmp/crlftolf | while read line; do CUTLINE=$(echo $line | cut -f1 -d":") && dos2unix $CUTLINE; done'
|
||||
@ -74,6 +73,7 @@ alias unlockuser='faillock --reset --user'
|
||||
alias npm-list-links='npm ls -g --depth=0 --link=true'
|
||||
alias suspend='sudo bash ~/.config/i3/scripts/suspend.sh'
|
||||
alias clean-all='sudo pacman -R $(pacman -Qtdq) && sudo paccache -rk 1 && sudo paccache -ruk0 && sudo journalctl --vacuum-time=2d && docker-clean-all && rm -rf ~/.local/share/Trash/'
|
||||
alias delete-empty='find . -type d -empty -delete'
|
||||
# might be useful in demos...
|
||||
alias oopsie='fuck'
|
||||
|
||||
|
@ -71,6 +71,11 @@ declare -A MOUNTS9=(
|
||||
[share]="emulation"
|
||||
[mount]="emulation"
|
||||
)
|
||||
declare -A MOUNTS10=(
|
||||
[server]="$MY_SERVER_LOCATION"
|
||||
[share]="audiobooks"
|
||||
[mount]="audiobooks"
|
||||
)
|
||||
# declare array with "objects"
|
||||
declare -n MOUNTS
|
||||
|
||||
|
6
config/networkmanager/09-timezone
Normal file
6
config/networkmanager/09-timezone
Normal file
@ -0,0 +1,6 @@
|
||||
#!/bin/sh
|
||||
case "$2" in
|
||||
up)
|
||||
timedatectl set-timezone "$(curl --fail https://ipapi.co/timezone)"
|
||||
;;
|
||||
esac
|
2
dependencies/pacman.txt
vendored
2
dependencies/pacman.txt
vendored
@ -97,3 +97,5 @@ cups
|
||||
system-config-printer
|
||||
duf
|
||||
picom
|
||||
gnome-terminal
|
||||
ttf-ubuntu-font-family
|
||||
|
@ -119,7 +119,7 @@ bindsym $mod+shift+l exec /bin/bash ~/.config/i3/scripts/suspend.sh
|
||||
############################################
|
||||
# Application Keys #
|
||||
############################################
|
||||
bindsym $mod+Return exec xfce4-terminal # terminal
|
||||
bindsym $mod+Return exec gnome-terminal # terminal
|
||||
bindsym $mod+e exec nautilus # File manager
|
||||
bindsym Print exec flameshot screen -d 0 -p ~/Pictures/Screenshots # Fullscreen screenshot
|
||||
bindsym $mod+Print exec flameshot gui # Show screenshot window
|
||||
@ -193,8 +193,7 @@ bindsym $mod+Shift+g move container to workspace $workspace13
|
||||
# Appearance settings #
|
||||
############################################
|
||||
# Set the default font
|
||||
font pango:Liberation sans 13
|
||||
|
||||
font pango:Ubuntu regular 12
|
||||
# Bar decoration
|
||||
bar {
|
||||
status_command i3blocks -c ~/.config/i3/i3blocks.conf
|
||||
@ -310,8 +309,8 @@ mode "$mode_gaps_outer" {
|
||||
############################################
|
||||
# Autorun #
|
||||
############################################
|
||||
exec_always --no-startup-id picom -b
|
||||
exec --no-startup-id i3-msg 'workspace $workspace2; exec xfce4-terminal' && i3-msg 'workspace $workspace1'
|
||||
# exec_always --no-startup-id picom -b
|
||||
exec --no-startup-id i3-msg 'workspace $workspace2; exec gnome-terminal' && i3-msg 'workspace $workspace1'
|
||||
exec --no-startup-id i3-msg 'workspace $workspace12; exec enpass'
|
||||
exec --no-startup-id /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1
|
||||
exec --no-startup-id nm-applet
|
||||
|
@ -75,6 +75,13 @@ function install_trizen {
|
||||
sudo rm -dRf trizen/
|
||||
}
|
||||
|
||||
# Sets up time and date related stuff
|
||||
function setDateTimeConfig {
|
||||
systemctl enable ntpd
|
||||
timedatectl set-ntp true
|
||||
sudo ln -sf "$PWD"/config/networkmanager/09-timezone /etc/NetworkManager/dispatcher.d/09-timezone
|
||||
}
|
||||
|
||||
# install other configs
|
||||
function install_config {
|
||||
|
||||
@ -125,6 +132,8 @@ function install_config {
|
||||
# system fixes
|
||||
echo fs.inotify.max_user_watches=524288 | sudo tee /etc/sysctl.d/40-max-user-watches.conf && sudo sysctl --system
|
||||
mkdir -p ~/Pictures/Screenshots
|
||||
|
||||
setDateTimeConfig
|
||||
}
|
||||
|
||||
# Installs the dependencies on Arch Linux
|
||||
|
BIN
media/dotfiles-small-5.png
Normal file
BIN
media/dotfiles-small-5.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 26 KiB |
BIN
media/dotfiles5.png
Normal file
BIN
media/dotfiles5.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 156 KiB |
Loading…
Reference in New Issue
Block a user