Update
This commit is contained in:
@@ -32,7 +32,7 @@ they should be in the system.
|
|||||||
<!--- }}} Setup -->
|
<!--- }}} Setup -->
|
||||||
|
|
||||||
<!-- History {{{ -->
|
<!-- History {{{ -->
|
||||||
## History
|
## Old Screenshots
|
||||||
### 3/7
|
### 3/7
|
||||||
* [laptop](https://i.imgur.com/UpdX90A.png)
|
* [laptop](https://i.imgur.com/UpdX90A.png)
|
||||||
|
|
||||||
|
|||||||
@@ -24,6 +24,7 @@ bindkey '\e[B' history-beginning-search-forward
|
|||||||
alias cs='printf "\033c"'
|
alias cs='printf "\033c"'
|
||||||
alias hst="history"
|
alias hst="history"
|
||||||
alias nf="cs && neofetch | lolcat"
|
alias nf="cs && neofetch | lolcat"
|
||||||
|
# nf
|
||||||
alias rur="xrdb ~/.Xresources"
|
alias rur="xrdb ~/.Xresources"
|
||||||
# list file sizes in megabytes with depth 1
|
# list file sizes in megabytes with depth 1
|
||||||
alias dum="sudo du -d 1 -B M"
|
alias dum="sudo du -d 1 -B M"
|
||||||
@@ -114,6 +115,7 @@ alias vlh="alsamixer -c 2"
|
|||||||
# alias aptu="sudo apt upgrade"
|
# alias aptu="sudo apt upgrade"
|
||||||
alias pc="sudo pacman -S"
|
alias pc="sudo pacman -S"
|
||||||
alias pcr="sudo pacman -Rs"
|
alias pcr="sudo pacman -Rs"
|
||||||
|
alias tri="trizen -S --noconfirm"
|
||||||
|
|
||||||
# }}} system #
|
# }}} system #
|
||||||
|
|
||||||
@@ -136,9 +138,10 @@ function vsnp() { ni ~/.vim/plugged/vim-snippets/UltiSnips/"$1".snippets ; }
|
|||||||
# applications {{{ #
|
# applications {{{ #
|
||||||
silent="> /dev/null 2>&1& "
|
silent="> /dev/null 2>&1& "
|
||||||
|
|
||||||
alias h="htop"
|
alias h="htop -s PERCENT_CPU"
|
||||||
alias r="ranger"
|
alias r="ranger"
|
||||||
alias mr="man ranger"
|
alias mr="man ranger"
|
||||||
|
alias clc="cloc ."
|
||||||
# zathura
|
# zathura
|
||||||
function za() { nohup zathura $1 > /dev/null 2>&1& ; }
|
function za() { nohup zathura $1 > /dev/null 2>&1& ; }
|
||||||
function chr() { google-chrome $1 ; }
|
function chr() { google-chrome $1 ; }
|
||||||
@@ -165,6 +168,8 @@ alias rmsw="rm .sw*"
|
|||||||
function rs(){ redshift -P -O $(echo "scale=2;$1*1000" | bc) ; }
|
function rs(){ redshift -P -O $(echo "scale=2;$1*1000" | bc) ; }
|
||||||
alias rx="redshift -x"
|
alias rx="redshift -x"
|
||||||
|
|
||||||
|
alias kd="pkill discord"
|
||||||
|
|
||||||
# python related {{{ #
|
# python related {{{ #
|
||||||
function grpy() { grep $1 *.py ; }
|
function grpy() { grep $1 *.py ; }
|
||||||
alias p3="python3"
|
alias p3="python3"
|
||||||
|
|||||||
@@ -206,9 +206,10 @@ set $ws7 "7 "
|
|||||||
workspace $ws7 output $samsung
|
workspace $ws7 output $samsung
|
||||||
bindsym $mod+F7 workspace $ws7; exec $def_term
|
bindsym $mod+F7 workspace $ws7; exec $def_term
|
||||||
|
|
||||||
set $ws8 "8 "
|
set $ws8 "8 "
|
||||||
# assign [class="jetbrains-"] $ws8
|
# assign [class="jetbrains-"] $ws8
|
||||||
bindsym $mod+F8 workspace $ws8; exec $def_term
|
workspace $ws8 output $samsung
|
||||||
|
bindsym $mod+F8 workspace $ws8; exec urxvt -e htop -s PERCENT_CPU
|
||||||
|
|
||||||
set $ws9 "9 "
|
set $ws9 "9 "
|
||||||
workspace $ws9 output $samsung
|
workspace $ws9 output $samsung
|
||||||
@@ -220,10 +221,10 @@ workspace $ws10 output $samsung
|
|||||||
bindsym $mod+F10 workspace $ws10; exec $def_term
|
bindsym $mod+F10 workspace $ws10; exec $def_term
|
||||||
bindsym Mod4+s workspace $ws10; exec spotify
|
bindsym Mod4+s workspace $ws10; exec spotify
|
||||||
|
|
||||||
set $ws11 "11 "
|
set $ws11 "11 "
|
||||||
assign [class="Summoners War Exporter"] $ws11
|
# assign [class="Summoners War Exporter"] $ws11
|
||||||
workspace $ws11 output $benq
|
workspace $ws11 output $samsung
|
||||||
bindsym $mod+F11 workspace $ws11; exec $def_term
|
bindsym $mod+F11 workspace $ws8; exec $def_term
|
||||||
|
|
||||||
set $ws12 "12 "
|
set $ws12 "12 "
|
||||||
bindsym $mod+F12 workspace $ws12; exec $def_term
|
bindsym $mod+F12 workspace $ws12; exec $def_term
|
||||||
|
|||||||
@@ -29,7 +29,7 @@ GetOptions("help|h" => \&help,
|
|||||||
|
|
||||||
# Get CPU usage
|
# Get CPU usage
|
||||||
$ENV{LC_ALL}="en_US"; # if mpstat is not run under en_US locale, things may break, so make sure it is
|
$ENV{LC_ALL}="en_US"; # if mpstat is not run under en_US locale, things may break, so make sure it is
|
||||||
open (MPSTAT, 'mpstat |') or die;
|
open (MPSTAT, 'mpstat 1 1 -P ALL |') or die;
|
||||||
while (<MPSTAT>) {
|
while (<MPSTAT>) {
|
||||||
if (/^.*\s+(\d+\.\d+)\s+$/) {
|
if (/^.*\s+(\d+\.\d+)\s+$/) {
|
||||||
$cpu_usage = 100 - $1; # 100% - %idle
|
$cpu_usage = 100 - $1; # 100% - %idle
|
||||||
|
|||||||
@@ -134,6 +134,7 @@ Plug 'jiangmiao/auto-pairs'
|
|||||||
let g:AutoPairsMapSpace = 0
|
let g:AutoPairsMapSpace = 0
|
||||||
|
|
||||||
Plug 'henrik/vim-indexed-search'
|
Plug 'henrik/vim-indexed-search'
|
||||||
|
Plug 'PotatoesMaster/i3-vim-syntax'
|
||||||
|
|
||||||
call plug#end()
|
call plug#end()
|
||||||
|
|
||||||
|
|||||||
4
scripts/install-arch-pkgs.sh
Executable file
4
scripts/install-arch-pkgs.sh
Executable file
@@ -0,0 +1,4 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
sudo pacman -Sy --needed - < ../txt/pacman-pkgs/pacman-pkgs.txt
|
||||||
|
sudo trizen -Sy --needed - < ../txt/pacman-pkgs/aur-pkgs.txt
|
||||||
@@ -1,3 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
|
|
||||||
sudo pacman -Sy --needed - < ../txt/pacman-pkgs/auto-pacman-pkgs.txt
|
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
gscreenshot
|
gscreenshot
|
||||||
rxvt-unicode-pixbuf
|
rxvt-unicode-pixbuf
|
||||||
rxvt-unicode-pixbuf
|
|
||||||
Hack NF
|
Hack NF
|
||||||
|
trizen
|
||||||
@@ -1,6 +1,7 @@
|
|||||||
alsa-utils
|
alsa-utils
|
||||||
bc
|
bc
|
||||||
chromium
|
chromium
|
||||||
|
cloc
|
||||||
dhcpcd
|
dhcpcd
|
||||||
dialog
|
dialog
|
||||||
dmenu
|
dmenu
|
||||||
Reference in New Issue
Block a user