From 0a3cdb8003ce7aceedbd9d7481b52cc21146c206 Mon Sep 17 00:00:00 2001 From: Mastermindzh Date: Tue, 8 Jun 2021 12:21:24 +0200 Subject: [PATCH] added chrome as default and added sysmontask --- README.md | 7 +++++++ bash/.alias.sh | 6 +++++- config/.gitconfig | 2 ++ config/package-managers/pacman.conf | 2 +- dependencies/aur.txt | 1 + i3/config | 3 +++ i3/i3blocks.conf | 19 ++++++++++--------- 7 files changed, 29 insertions(+), 11 deletions(-) diff --git a/README.md b/README.md index e978868..f312475 100644 --- a/README.md +++ b/README.md @@ -36,3 +36,10 @@ 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. 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 diff --git a/bash/.alias.sh b/bash/.alias.sh index 859fd5e..031380d 100644 --- a/bash/.alias.sh +++ b/bash/.alias.sh @@ -17,6 +17,7 @@ alias docker-clean-all='stop-dockers && docker-clean-containers && docker-clean- alias mkubectl='microk8s.kubectl' alias kubestart='microk8s.start' alias kubestop='microk8s.stop' +alias kubecontext='kubectl config use-context' #dotnet core alias efupdate="dotnet ef database update" @@ -60,8 +61,10 @@ alias addpgpkey='gpg --recv-keys' alias clean-trash='sudo rm -rf ~/.local/share/Trash/*' alias clean-journal='sudo journalctl --vacuum-time=2d' alias clean-all='clean-trash && clean-journal && clean-pacmancache && docker-clean-all' -alias dotnet-install='~/.dotnet-install.sh --install-dir /usr/share/dotnet/ -channel' +alias dotnet-install='~/.dotnet-install.sh --install-dir /usr/share/dotnet/ -channel Current -version ' alias mountshares='sudo bash ~/dotfiles/bash/mounts.sh' +# might be useful in demos... +alias oopsie='fuck' # cli tools alias crypto='curl -s rate.sx?qF | head -n -2 | tail -n +10' @@ -95,6 +98,7 @@ alias markdown-toc='markdown-toc --bullets="-" -i' alias tree='tree --dirsfirst' alias handbrake='ghb' alias cal='cal -mw --color' +alias chrome='google-chrome-stable' # grub alias update-grub='grub-mkconfig -o /boot/grub/grub.cfg' diff --git a/config/.gitconfig b/config/.gitconfig index 17c73e6..b44ae69 100644 --- a/config/.gitconfig +++ b/config/.gitconfig @@ -14,3 +14,5 @@ editor = nano [pull] rebase = false +[init] + defaultBranch = master diff --git a/config/package-managers/pacman.conf b/config/package-managers/pacman.conf index 7cbfc5b..561e1aa 100644 --- a/config/package-managers/pacman.conf +++ b/config/package-managers/pacman.conf @@ -33,7 +33,7 @@ Architecture = auto #UseSyslog Color ILoveCandy -TotalDownload +#TotalDownload CheckSpace VerbosePkgLists diff --git a/dependencies/aur.txt b/dependencies/aur.txt index a4ae4ee..cf65bfe 100644 --- a/dependencies/aur.txt +++ b/dependencies/aur.txt @@ -15,3 +15,4 @@ azure-cli notify-osd-customizable notifyconf dotnet-host-bin +sysmontask diff --git a/i3/config b/i3/config index a26aad5..6ae45df 100644 --- a/i3/config +++ b/i3/config @@ -123,6 +123,7 @@ bindsym $mod+e exec xfce4-terminal -e ranger # File m bindsym Print exec flameshot screen -d 0 -p ~/Pictures/Screenshots # Fullscreen screenshot bindsym $mod+Print exec flameshot gui # Show screenshot window bindsym $mod+shift+b exec /bin/bash ~/.config/i3/scripts/brightness.sh +bindsym control+shift+Escape exec sysmontask # Rofi bindsym $mod+d exec "rofi -show run" @@ -223,6 +224,8 @@ for_window [class="Lxappearance"] floating enable for_window [class="Arandr"] 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 # diff --git a/i3/i3blocks.conf b/i3/i3blocks.conf index aa636d2..3db53bd 100644 --- a/i3/i3blocks.conf +++ b/i3/i3blocks.conf @@ -51,6 +51,16 @@ label= interval=1 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] label= interval=10 @@ -118,15 +128,6 @@ signal=10 separator=true color=#999999 -# Battery indicator -# The battery instance defaults to 0. -# [battery] -# label= -# #instance=1 -# interval=30 -# separator=true -# color=#999999 - # Battery indicator # The battery instance defaults to 0. [battery2]