init
This commit is contained in:
commit
a92374aa00
4 changed files with 303 additions and 0 deletions
33
.bash_aliases
Normal file
33
.bash_aliases
Normal file
|
@ -0,0 +1,33 @@
|
|||
alias aliases='vim ~/.bash_aliases && bashrc-reload'
|
||||
alias bashrc-reload='source ~/.bashrc'
|
||||
|
||||
alias config-bashrc='vim ~/.bashrc && reload-bashrc'
|
||||
alias config-dotfiles='/usr/bin/git --git-dir=$HOME/.dotfiles/ --work-tree=$HOME'
|
||||
alias config-i3='vim ~/.config/i3/config'
|
||||
alias config-i3status='vim ~/.config/i3status/config'
|
||||
alias config-vim='vim ~/.vimrc'
|
||||
|
||||
alias df='df -h'
|
||||
alias du='du -hL'
|
||||
|
||||
alias git-update-submodules='
|
||||
git submodule update --init --recursive;
|
||||
git submodule foreach --recursive git fetch;
|
||||
git submodule foreach --recursive git merge origin master
|
||||
'
|
||||
alias gpg2-decrypt='function _gpg2-decrypt(){ gpg2 --output ${1%".gpg"} --decrypt $1; }; _gpg2-decrypt'
|
||||
alias gpg2-encrypt='function _gpg2-encrypt(){ gpg2 --output $1.gpg --encrypt $1; }; _gpg2-encrypt'
|
||||
|
||||
alias l='ls -CF'
|
||||
alias la='ls -a'
|
||||
alias lf='ls -I "__pycache__"'
|
||||
alias ll='ls -lh'
|
||||
alias ls='ls -Flh --color=never'
|
||||
|
||||
alias lsblk='lsblk -o +PARTLABEL -o +FSTYPE'
|
||||
|
||||
alias md5sum-dir='function _md5sum-dir(){ find $1 -type f -exec md5sum {} \; | md5sum; }; _md5sum-dir'
|
||||
|
||||
alias pacman-autoremove='sudo pacman -Rns $(pacman -Qtdq)'
|
||||
|
||||
alias yay='yay --builddir /opt/aur-source'
|
45
.bashrc
Normal file
45
.bashrc
Normal file
|
@ -0,0 +1,45 @@
|
|||
# ~/.bashrc: executed by bash(1) for non-login shells.
|
||||
|
||||
# If not running interactively, don't do anything
|
||||
[ -z "$PS1" ] && return
|
||||
|
||||
# ignoredups and ignorespace
|
||||
HISTCONTROL=ignoreboth
|
||||
|
||||
# append to the history file, don't overwrite it
|
||||
shopt -s histappend
|
||||
|
||||
# check the window size after each command and, if necessary,
|
||||
# update the values of LINES and COLUMNS.
|
||||
shopt -s checkwinsize
|
||||
|
||||
red='\[\e[0;31m\]'
|
||||
RED='\[\e[1;31m\]'
|
||||
blue='\[\e[0;34m\]'
|
||||
BLUE='\[\e[1;34m\]'
|
||||
cyan='\[\e[0;36m\]'
|
||||
CYAN='\[\e[1;36m\]'
|
||||
green='\[\e[0;32m\]'
|
||||
GREEN='\[\e[1;32m\]'
|
||||
yellow='\[\e[0;33m\]'
|
||||
YELLOW='\[\e[1;33m\]'
|
||||
PURPLE='\[\e[1;35m\]'
|
||||
purple='\[\e[0;35m\]'
|
||||
nc='\[\e[0m\]'
|
||||
|
||||
if [ -f /usr/share/git/completion/git-prompt.sh ]; then
|
||||
source /usr/share/git/completion/git-prompt.sh
|
||||
fi
|
||||
|
||||
if [ -f ~/.bash_aliases ]; then
|
||||
source ~/.bash_aliases
|
||||
fi
|
||||
|
||||
if [ -f ~/.bash_aliases.local ]; then
|
||||
source ~/.bash_aliases.local
|
||||
fi
|
||||
|
||||
PS1="$PURPLE\u$nc@$CYAN\H$nc:$GREEN\w$YELLOW"'$(__git_ps1)'"$nc\\n$GREEN\$$nc "
|
||||
|
||||
export PATH=/usr/local/bin:/usr/bin:/usr/sbin:/bin:/sbin:~/bin
|
||||
|
211
.config/i3/config
Normal file
211
.config/i3/config
Normal file
|
@ -0,0 +1,211 @@
|
|||
### VARIABLES
|
||||
|
||||
set $mod Mod4
|
||||
|
||||
set $workspace1 workspace 1
|
||||
set $workspace2 workspace 2
|
||||
set $workspace3 workspace 3
|
||||
set $workspace4 workspace 4
|
||||
set $workspace5 workspace 5
|
||||
set $workspace6 workspace 6
|
||||
set $workspace7 workspace 7:Game
|
||||
set $workspace8 workspace 8:Docs
|
||||
set $workspace9 workspace 9:TS
|
||||
set $workspace0 workspace 10:Msg
|
||||
|
||||
workspace "1" output HDMI-1
|
||||
workspace "2" output HDMI-1
|
||||
workspace "3" output HDMI-1
|
||||
workspace "4" output HDMI-1
|
||||
workspace "5" output HDMI-1
|
||||
workspace "6" output HDMI-1
|
||||
workspace "7:Game" output HDMI-1
|
||||
|
||||
workspace "8:Docs" output DVI-D-1
|
||||
workspace "9:TS" output DVI-D-1
|
||||
workspace "10:Msg" output DVI-D-1
|
||||
|
||||
set $Locker i3lock && sleep 1
|
||||
set $mode_system System (l) lock, (e) logout, (s) suspend, (h) hibernate, (r) reboot, (Shift+s) shutdown
|
||||
set $mode_refresh_rate Refresh-Rate (h) high, (l) low
|
||||
|
||||
set $bg-color #535353
|
||||
set $inactive-bg-color #131313
|
||||
set $text-color #f3f3f3
|
||||
set $inactive-text-color #666666
|
||||
set $urgent-bg-color #e63535
|
||||
set $indicator-color #535353
|
||||
set $separator-color #535353
|
||||
|
||||
### SET MODIFIERS
|
||||
|
||||
font pango:monospace 8
|
||||
|
||||
floating_modifier $mod
|
||||
|
||||
assign [class="TeamSpeak 3"] $workspace9
|
||||
assign [class="Evolution"] $workspace0
|
||||
assign [class="TelegramDesktop"] $workspace0
|
||||
assign [class="Riot"] $workspace0
|
||||
# assign [class="Psi"] $workspace0
|
||||
|
||||
assign [class="Steam"] $workspace7
|
||||
|
||||
### WINDOW DESIGN
|
||||
client.focused $bg-color $bg-color $text-color $indicator-color
|
||||
client.unfocused $inactive-bg-color $inactive-bg-color $inactive-text-color $indicator-color
|
||||
client.focused_inactive $inactive-bg-color $inactive-bg-color $inactive-text-color $indicator-color
|
||||
client.urgent $urgent-bg-color $urgent-bg-color $text-color $indicator-color
|
||||
|
||||
default_border pixel
|
||||
|
||||
# Start i3bar to display a workspace bar (plus the system information i3status
|
||||
# finds out, if available)
|
||||
bar {
|
||||
tray_output HDMI-1
|
||||
colors {
|
||||
background $bg-color
|
||||
separator $separator-color
|
||||
# border background text
|
||||
focused_workspace $bg-color $bg-color $text-color
|
||||
inactive_workspace $inactive-bg-color $inactive-bg-color $inactive-text-color
|
||||
urgent_workspace $urgent-bg-color $urgent-bg-color $text-color
|
||||
}
|
||||
status_command i3status
|
||||
}
|
||||
|
||||
hide_edge_borders smart
|
||||
|
||||
### MODES
|
||||
|
||||
mode "resize" {
|
||||
bindsym Left resize shrink width 10 px or 10 ppt
|
||||
bindsym Down resize grow height 10 px or 10 ppt
|
||||
bindsym Up resize shrink height 10 px or 10 ppt
|
||||
bindsym Right resize grow width 10 px or 10 ppt
|
||||
|
||||
bindsym Return mode "default"
|
||||
bindsym Escape mode "default"
|
||||
}
|
||||
|
||||
mode "$mode_system" {
|
||||
bindsym l exec --no-startup-id $Locker, mode "default"
|
||||
bindsym e exec --no-startup-id i3-msg exit, mode "default"
|
||||
bindsym s exec --no-startup-id $Locker && systemctl suspend, mode "default"
|
||||
bindsym h exec --no-startup-id $Locker && systemctl hibernate, mode "default"
|
||||
bindsym r exec --no-startup-id systemctl reboot, mode "default"
|
||||
bindsym Shift+s exec --no-startup-id systemctl poweroff -i, mode "default"
|
||||
|
||||
bindsym Return mode "default"
|
||||
bindsym Escape mode "default"
|
||||
}
|
||||
|
||||
mode "$mode_refresh_rate" {
|
||||
bindsym h exec --no-startup-id xrandr --output HDMI-1 --mode 2560x1440 --refresh 144, mode "default"
|
||||
bindsym l exec --no-startup-id xrandr --output HDMI-1 --mode 2560x1440 --refresh 60, mode "default"
|
||||
|
||||
bindsym Return mode "default"
|
||||
bindsym Escape mode "default"
|
||||
}
|
||||
|
||||
### BINDINGS
|
||||
|
||||
bindsym $mod+Return exec lxterminal
|
||||
bindsym $mod+Shift+q kill
|
||||
bindsym $mod+d exec --no-startup-id i3-dmenu-desktop
|
||||
|
||||
bindsym $mod+Left focus left
|
||||
bindsym $mod+Down focus down
|
||||
bindsym $mod+Up focus up
|
||||
bindsym $mod+Right focus right
|
||||
|
||||
bindsym $mod+Shift+Left move left
|
||||
bindsym $mod+Shift+Down move down
|
||||
bindsym $mod+Shift+Up move up
|
||||
bindsym $mod+Shift+Right move right
|
||||
|
||||
bindsym $mod+h split h
|
||||
bindsym $mod+v split v
|
||||
bindsym $mod+f fullscreen toggle
|
||||
|
||||
bindsym $mod+s layout stacking
|
||||
bindsym $mod+w layout tabbed
|
||||
bindsym $mod+e layout toggle split
|
||||
|
||||
bindsym $mod+Shift+space floating toggle
|
||||
bindsym $mod+space focus mode_toggle
|
||||
|
||||
bindsym $mod+1 $workspace1
|
||||
bindsym $mod+2 $workspace2
|
||||
bindsym $mod+3 $workspace3
|
||||
bindsym $mod+4 $workspace4
|
||||
bindsym $mod+5 $workspace5
|
||||
bindsym $mod+6 $workspace6
|
||||
bindsym $mod+7 $workspace7
|
||||
bindsym $mod+8 $workspace8
|
||||
bindsym $mod+9 $workspace9
|
||||
bindsym $mod+0 $workspace0
|
||||
|
||||
bindsym $mod+Shift+1 move container to $workspace1
|
||||
bindsym $mod+Shift+2 move container to $workspace2
|
||||
bindsym $mod+Shift+3 move container to $workspace3
|
||||
bindsym $mod+Shift+4 move container to $workspace4
|
||||
bindsym $mod+Shift+5 move container to $workspace5
|
||||
bindsym $mod+Shift+6 move container to $workspace6
|
||||
bindsym $mod+Shift+7 move container to $workspace7
|
||||
bindsym $mod+Shift+8 move container to $workspace8
|
||||
bindsym $mod+Shift+9 move container to $workspace9
|
||||
bindsym $mod+Shift+0 move container to $workspace0
|
||||
|
||||
bindsym $mod+Shift+c reload
|
||||
bindsym $mod+Shift+r restart
|
||||
bindsym $mod+Shift+e exec "i3-nagbar -t warning -m 'You pressed the exit shortcut. Do you really want to exit i3? This will end your X session.' -b 'Yes, exit i3' 'i3-msg exit'"
|
||||
|
||||
bindsym --release $mod+Print exec "import /tmp/screenshot.png"
|
||||
|
||||
# Enter Mode
|
||||
bindsym $mod+r mode "resize"
|
||||
bindsym $mod+Pause mode "$mode_system"
|
||||
bindsym $mod+m mode "$mode_refresh_rate"
|
||||
|
||||
# Pulse Audio controls
|
||||
#bindsym XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume 0 +5% #increase sound volume
|
||||
#bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume 0 -5% #decrease sound volume
|
||||
#bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute 0 toggle # mute sound
|
||||
|
||||
# Media player controls
|
||||
bindsym XF86AudioPlay exec playerctl play-pause
|
||||
bindsym XF86AudioPause exec playerctl pause
|
||||
bindsym XF86AudioNext exec playerctl next
|
||||
bindsym XF86AudioPrev exec playerctl previous
|
||||
|
||||
### Launchers
|
||||
|
||||
exec_always ln -sf /mnt/shome/tobias/* /home/tobias/
|
||||
exec_always bash /home/tobias/projects/scripts/arduino_hid.sh
|
||||
exec_always setxkbmap de
|
||||
|
||||
exec sleep 8; env GTK_THEME=Adwaita:light firefox
|
||||
exec sleep 8; teamspeak3
|
||||
|
||||
exec sleep 8; evolution
|
||||
exec sleep 8; telegram-desktop
|
||||
exec sleep 8; riot-desktop
|
||||
#exec sleep 8; psi
|
||||
|
||||
# Backgroud Services
|
||||
exec ckb-next -b
|
||||
exec steam-runtime -silent -tcp
|
||||
exec transmission-gtk -m
|
||||
#exec obs --startreplaybuffer --minimize-to-tray
|
||||
|
||||
# Wallpaper
|
||||
#exec_always feh --randomize --bg-fill ~/Pictures/Wallpaper/Cyberpunk/*
|
||||
#exec_always feh --bg-fill ~/Pictures/Wallpaper/predator_2018_4k.jpg
|
||||
exec_always feh --bg-fill ~/Pictures/Wallpaper/arch_hero.png
|
||||
|
||||
#exec_always killall conky
|
||||
#exec_always sleep 1; conky --daemonize --config="/home/tobias/.config/conky/cpu_ram_storage.conf"
|
||||
execconky --daemonize --config="/home/tobias/.config/conky/clock.conf"
|
||||
execconky --daemonize --config="/home/tobias/.config/conky/cpu_ram_storage.conf"
|
||||
#exec_always sleep 1; conky --daemonize --config="/home/tobias/.config/conky/clock.conf"
|
14
.vimrc
Normal file
14
.vimrc
Normal file
|
@ -0,0 +1,14 @@
|
|||
set number
|
||||
syntax on
|
||||
|
||||
set tabstop=4
|
||||
set shiftwidth=4
|
||||
set expandtab
|
||||
|
||||
set encoding=utf-8
|
||||
|
||||
set nowrap
|
||||
|
||||
if has("autocmd")
|
||||
au BufReadPost * if line("'\"") > 0 && line("'\"") <= line("$") | exe "normal! g`\"" | endif
|
||||
endif
|
Loading…
Reference in a new issue