mirror of
				https://github.com/Mastermindzh/dotfiles.git
				synced 2025-10-31 08:49:07 +01:00 
			
		
		
		
	Merge branch 'master' of https://github.com/mastermindzh/dotfiles
This commit is contained in:
		
							
								
								
									
										15
									
								
								README.md
									
									
									
									
									
								
							
							
						
						
									
										15
									
								
								README.md
									
									
									
									
									
								
							| @@ -4,15 +4,20 @@ This repository holds my Linux config files. | |||||||
|  |  | ||||||
| ## Mandatory unixporn screenshots | ## Mandatory unixporn screenshots | ||||||
|  |  | ||||||
| New version as of dec 2021: | New version as of Nov 2022: | ||||||
|  |  | ||||||
| [](https://raw.githubusercontent.com/Mastermindzh/dotfiles/master/media/dotfiles4.jpg) | [](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: | Older versions: | ||||||
|  |  | ||||||
| - [dotfiles](media/dotfiles3.png) | - [dotfiles4](https://raw.githubusercontent.com/Mastermindzh/dotfiles/master/media/dotfiles4.jpg) | ||||||
| - [dotfiles](media/dotfiles.png) | - [dotfiles3](media/dotfiles3.png) | ||||||
| - [dotfiles2](media/dotfiles2.png) | - [dotfiles2](media/dotfiles2.png) | ||||||
|  | - [dotfiles](media/dotfiles.png) | ||||||
|  |  | ||||||
| ## Tools | ## Tools | ||||||
|  |  | ||||||
| @@ -23,7 +28,7 @@ Older versions: | |||||||
| | Shell            | Bash                                                                   | | | Shell            | Bash                                                                   | | ||||||
| | Package managers | Pacman & Trizen                                                        | | | Package managers | Pacman & Trizen                                                        | | ||||||
| | OS               | Arch Linux                                                             | | | OS               | Arch Linux                                                             | | ||||||
| | Terminal         | xfce4-terminal                                                         | | | Terminal         | gnome-terminal                                                         | | ||||||
| | Editor           | nano                                                                   | | | Editor           | nano                                                                   | | ||||||
| | Code editor      | vscode                                                                 | | | Code editor      | vscode                                                                 | | ||||||
| | Browser          | Firefox                                                                | | | Browser          | Firefox                                                                | | ||||||
|   | |||||||
| @@ -33,7 +33,7 @@ alias undo-commit='git reset --soft HEAD^' | |||||||
|  |  | ||||||
| ## pacman and trizen | ## pacman and trizen | ||||||
| alias aur='trizen --noconfirm' | 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 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' | ||||||
| @@ -52,7 +52,6 @@ alias psmem='ps auxf | sort -nr -k 5 | head -n 5' | |||||||
|  |  | ||||||
| ##utility | ##utility | ||||||
| alias nmapscan='nmap -n -sP' | alias nmapscan='nmap -n -sP' | ||||||
| alias pia='nohup sh /opt/pia/run.sh &>/dev/null & disown' |  | ||||||
| alias wifimenu='nm-connection-editor' | alias wifimenu='nm-connection-editor' | ||||||
| alias findcrlf='find . -path node_modules -prune -o -not -type d -exec file "{}" ";" | grep -E "BOM|CRLF"' | 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' | 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 npm-list-links='npm ls -g --depth=0 --link=true' | ||||||
| alias suspend='sudo bash ~/.config/i3/scripts/suspend.sh' | 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 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... | # might be useful in demos... | ||||||
| alias oopsie='fuck' | alias oopsie='fuck' | ||||||
|  |  | ||||||
|   | |||||||
| @@ -71,6 +71,11 @@ declare -A MOUNTS9=( | |||||||
|   [share]="emulation" |   [share]="emulation" | ||||||
|   [mount]="emulation" |   [mount]="emulation" | ||||||
| ) | ) | ||||||
|  | declare -A MOUNTS10=( | ||||||
|  |   [server]="$MY_SERVER_LOCATION" | ||||||
|  |   [share]="audiobooks" | ||||||
|  |   [mount]="audiobooks" | ||||||
|  | ) | ||||||
| # declare array with "objects" | # declare array with "objects" | ||||||
| declare -n MOUNTS | 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 | system-config-printer | ||||||
| duf | duf | ||||||
| picom | 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                      # | #    Application Keys                      # | ||||||
| ############################################ | ############################################ | ||||||
| bindsym $mod+Return exec xfce4-terminal                                 # terminal | bindsym $mod+Return exec gnome-terminal                                 # terminal | ||||||
| bindsym $mod+e exec nautilus                                            # 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 | ||||||
| @@ -193,8 +193,7 @@ bindsym $mod+Shift+g move container to workspace $workspace13 | |||||||
| #    Appearance settings                   # | #    Appearance settings                   # | ||||||
| ############################################ | ############################################ | ||||||
| # Set the default font | # Set the default font | ||||||
| font pango:Liberation sans 13 | font pango:Ubuntu regular 12 | ||||||
|  |  | ||||||
| # Bar decoration | # Bar decoration | ||||||
| bar { | bar { | ||||||
|     status_command i3blocks -c ~/.config/i3/i3blocks.conf |     status_command i3blocks -c ~/.config/i3/i3blocks.conf | ||||||
| @@ -310,8 +309,8 @@ mode "$mode_gaps_outer" { | |||||||
| ############################################ | ############################################ | ||||||
| #    Autorun                               # | #    Autorun                               # | ||||||
| ############################################ | ############################################ | ||||||
| exec_always --no-startup-id picom -b | # exec_always --no-startup-id picom -b | ||||||
| exec --no-startup-id i3-msg 'workspace $workspace2; exec xfce4-terminal' && i3-msg 'workspace $workspace1' | 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 i3-msg 'workspace $workspace12; exec enpass' | ||||||
| exec --no-startup-id /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1 | exec --no-startup-id /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1 | ||||||
| exec --no-startup-id nm-applet | exec --no-startup-id nm-applet | ||||||
|   | |||||||
| @@ -75,6 +75,13 @@ function install_trizen { | |||||||
|   sudo rm -dRf 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 | # install other configs | ||||||
| function install_config { | function install_config { | ||||||
|  |  | ||||||
| @@ -125,6 +132,8 @@ function install_config { | |||||||
|   # system fixes |   # system fixes | ||||||
|   echo fs.inotify.max_user_watches=524288 | sudo tee /etc/sysctl.d/40-max-user-watches.conf && sudo sysctl --system |   echo fs.inotify.max_user_watches=524288 | sudo tee /etc/sysctl.d/40-max-user-watches.conf && sudo sysctl --system | ||||||
|   mkdir -p ~/Pictures/Screenshots |   mkdir -p ~/Pictures/Screenshots | ||||||
|  |  | ||||||
|  |   setDateTimeConfig | ||||||
| } | } | ||||||
|  |  | ||||||
| # Installs the dependencies on Arch Linux | # 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 | 
		Reference in New Issue
	
	Block a user