----- Changes:
+ Rework a lot of stuff
This commit is contained in:
parent
7d757116d2
commit
18f105cea0
9 changed files with 31 additions and 9 deletions
|
@ -75,3 +75,4 @@ bspc rule -a qTox:qtox desktop='^9'
|
||||||
bspc rule -a pr:pr desktop='^10'
|
bspc rule -a pr:pr desktop='^10'
|
||||||
bspc rule -a firefox:Toolkit desktop='^3' state=floating
|
bspc rule -a firefox:Toolkit desktop='^3' state=floating
|
||||||
bspc rule -a mpv:gl state=floating
|
bspc rule -a mpv:gl state=floating
|
||||||
|
bspc rule -a mpv state=floating
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
set previewer ~/.config/lf/preview
|
|
||||||
# Config
|
# Config
|
||||||
set preview true
|
set preview true
|
||||||
#set previewer ~/.config/lf/preview
|
#set previewer ~/.config/lf/preview
|
||||||
|
@ -9,6 +8,8 @@ set color256
|
||||||
set hidden true
|
set hidden true
|
||||||
set ignorecase true
|
set ignorecase true
|
||||||
set smartcase true
|
set smartcase true
|
||||||
|
set shellopts '-eu'
|
||||||
|
set ifs "\n"
|
||||||
|
|
||||||
# Custom Functions
|
# Custom Functions
|
||||||
cmd open ${{
|
cmd open ${{
|
||||||
|
@ -41,7 +42,9 @@ cmd touch $touch "$(echo $* | tr ' ' '\ ')"
|
||||||
|
|
||||||
cmd q :quit
|
cmd q :quit
|
||||||
|
|
||||||
cmd chmod $chmod "$*" "$f"
|
cmd chmod ${{
|
||||||
|
chmod $1 $fx
|
||||||
|
}}
|
||||||
|
|
||||||
cmd rename %[ -e $1 ] && printf "file exists" || mv $f $1
|
cmd rename %[ -e $1 ] && printf "file exists" || mv $f $1
|
||||||
|
|
||||||
|
|
|
@ -651,7 +651,7 @@ format-padding = 1
|
||||||
|
|
||||||
[module/currency]
|
[module/currency]
|
||||||
type = custom/script
|
type = custom/script
|
||||||
exec = "rateUSD -"
|
exec = "rateUSD -s"
|
||||||
interval = 16000
|
interval = 16000
|
||||||
tail = true
|
tail = true
|
||||||
label = "$1 = Rp.%output%"
|
label = "$1 = Rp.%output%"
|
||||||
|
|
|
@ -5,5 +5,5 @@ warn=""
|
||||||
|
|
||||||
[ $capacity -lt 21 ] && warn='!'
|
[ $capacity -lt 21 ] && warn='!'
|
||||||
|
|
||||||
printf "%s%s" "$warn " "$(echo $capacity | sed "s/$/G free/")"
|
printf "%s%s\n" "$warn " "$(echo $capacity | sed "s/$/G free/")"
|
||||||
|
|
||||||
|
|
|
@ -17,7 +17,8 @@ export READER='zathura'
|
||||||
export MANPAGER="/bin/sh -c \"col -b | vim --not-a-term -c 'set ft=man ts=8 nomod nolist noma' -\""
|
export MANPAGER="/bin/sh -c \"col -b | vim --not-a-term -c 'set ft=man ts=8 nomod nolist noma' -\""
|
||||||
|
|
||||||
# SUDO
|
# SUDO
|
||||||
export SUDO_ASKPASS=/bin/rofi-askpass
|
#export SUDO_ASKPASS=/bin/rofi-askpass
|
||||||
|
export SUDO_ASKPASS="/bin/dmenu-askpass"
|
||||||
|
|
||||||
# XDG
|
# XDG
|
||||||
export XDG_CACHE_HOME="$HOME/.cache"
|
export XDG_CACHE_HOME="$HOME/.cache"
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
#sudo
|
#sudo
|
||||||
alias sudo='sudo '
|
[ "x$(pgrep startx)" = "x" ] && alias sudo='sudo ' || alias sudo='sudo --askpass '
|
||||||
|
|
||||||
#sudo + vim, yea imagine having that powe- nvm
|
#sudo + vim, yea imagine having that powe- nvm
|
||||||
alias sudovim='sudoedit'
|
alias sudovim='sudoedit'
|
||||||
|
@ -83,7 +83,10 @@ alias cp='cp -i'
|
||||||
alias mntfd='sudo mount -o gid=users,fmask=113,dmask=002'
|
alias mntfd='sudo mount -o gid=users,fmask=113,dmask=002'
|
||||||
alias umntfd='sudo umount'
|
alias umntfd='sudo umount'
|
||||||
alias cmatrix='unimatrix -n -s 96 -l 'o''
|
alias cmatrix='unimatrix -n -s 96 -l 'o''
|
||||||
|
|
||||||
|
#folder shortcut
|
||||||
alias cdclg='cd "$HOME/my Files/Kuliah/"'
|
alias cdclg='cd "$HOME/my Files/Kuliah/"'
|
||||||
|
alias cdwine='cd "$HOME/.local/share/wineprefixes/"'
|
||||||
|
|
||||||
#Git Aliases
|
#Git Aliases
|
||||||
alias gR='git restore'
|
alias gR='git restore'
|
||||||
|
|
|
@ -2,8 +2,20 @@
|
||||||
# get rate value from cnbcindonesia.com
|
# get rate value from cnbcindonesia.com
|
||||||
[ ! "$(stat -c %y ~/.cache/rateUSD.txt 2> /dev/null | cut -d' ' -f1)" = "$(date +"%Y-%m-%d")" ] && curl -s "https://www.cnbcindonesia.com/market-data/currencies/IDR=/USD-IDR" | grep -A1 'class="mark_val"' | cut -d'"' -f2 | cut -d'<' -f2 | cut -d'>' -f2 > ~/.cache/rateUSD.txt
|
[ ! "$(stat -c %y ~/.cache/rateUSD.txt 2> /dev/null | cut -d' ' -f1)" = "$(date +"%Y-%m-%d")" ] && curl -s "https://www.cnbcindonesia.com/market-data/currencies/IDR=/USD-IDR" | grep -A1 'class="mark_val"' | cut -d'"' -f2 | cut -d'<' -f2 | cut -d'>' -f2 > ~/.cache/rateUSD.txt
|
||||||
|
|
||||||
|
# short="FALSE"
|
||||||
|
# usage() { echo "Usage: dmenugames [-t GAMETYPE]" 1>&2; exit 1; }
|
||||||
|
# while getopts s option
|
||||||
|
# do
|
||||||
|
# case $option in
|
||||||
|
# s) short="TRUE";;
|
||||||
|
# ?) usage;;
|
||||||
|
# esac
|
||||||
|
# done
|
||||||
|
# shift "$((OPTIND-1))"
|
||||||
|
# [ "short" = "FALSE" ] && usage
|
||||||
|
|
||||||
enUS='Rate'
|
enUS='Rate'
|
||||||
idID='Kurs'
|
idID='Kurs'
|
||||||
lang=$idID
|
lang=$idID
|
||||||
# display rateUSD.txt while replace mark_val with Kurs USD -> IDR:
|
# display rateUSD.txt while replace mark_val with Kurs USD -> IDR:
|
||||||
[ -z $1 ] && sed "s/mark_val/$lang USD -> IDR:/;2 s/^/Rp./" ~/.cache/rateUSD.txt && echo "Sumber: CNBC Indonesia" || grep -A1 "mark" ~/.cache/rateUSD.txt | grep -v "mark"
|
[ ! "$1" = "-s" ] && sed "s/mark_val/$lang USD -> IDR:/;2 s/^/Rp./" ~/.cache/rateUSD.txt && echo "Sumber: CNBC Indonesia" || grep -A1 "mark" ~/.cache/rateUSD.txt | grep -v "mark"
|
||||||
|
|
|
@ -28,7 +28,7 @@ chosen=$(echo -e "$choices" | rofi -p Games -dmenu -i -theme ~/.config/rofi/them
|
||||||
case "$chosen" in
|
case "$chosen" in
|
||||||
RetroArch) notify-send "Launching..." "$chosen" && retroarch ;;
|
RetroArch) notify-send "Launching..." "$chosen" && retroarch ;;
|
||||||
$pc) games -t PC ;;
|
$pc) games -t PC ;;
|
||||||
PS2) sh $HOME/.scripts/games/ps2.sh ;;
|
PS2) games -t PS2 ;;
|
||||||
NDS) sh $HOME/.scripts/games/nds.sh ;;
|
NDS) sh $HOME/.scripts/games/nds.sh ;;
|
||||||
$trids) games -t 3DS ;;
|
$trids) games -t 3DS ;;
|
||||||
Steam) notify-send "Launching..." "$chosen" && steam ;;
|
Steam) notify-send "Launching..." "$chosen" && steam ;;
|
||||||
|
|
|
@ -4,7 +4,8 @@ Electron Player\0icon\x1fzE
|
||||||
KODI\0icon\x1fzkodi
|
KODI\0icon\x1fzkodi
|
||||||
Twitch\0icon\x1fztwitch
|
Twitch\0icon\x1fztwitch
|
||||||
VLC\0icon\x1fzvlc
|
VLC\0icon\x1fzvlc
|
||||||
YouTube\0icon\x1fzyt"
|
YouTube\0icon\x1fzyt
|
||||||
|
Play link on MPV"
|
||||||
|
|
||||||
message="What video player do you want to launch?"
|
message="What video player do you want to launch?"
|
||||||
|
|
||||||
|
@ -16,6 +17,7 @@ case "$chosen" in
|
||||||
VLC) notify-send "Launching..." "VLC" && vlc ;;
|
VLC) notify-send "Launching..." "VLC" && vlc ;;
|
||||||
YouTube) notify-send "Launching..." "$chosen" && urxvt -e youtube-viewer ;;
|
YouTube) notify-send "Launching..." "$chosen" && urxvt -e youtube-viewer ;;
|
||||||
Twitch) notify-send "Launching..." "$chosen" && urxvt -e twitch-curses ;;
|
Twitch) notify-send "Launching..." "$chosen" && urxvt -e twitch-curses ;;
|
||||||
|
"Play link on MPV") mpv-link ;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue