that post-algorave funk
This commit is contained in:
parent
21d9e67e27
commit
9b4fae85ea
|
@ -38,7 +38,7 @@
|
|||
|
||||
!SXIV COLORS
|
||||
sxiv.font: inconsolata:size=8
|
||||
sxiv.win_bg_color: #050505
|
||||
sxiv.win_bg_color: #080808
|
||||
sxiv.win_fs_color: #050505
|
||||
sxiv.sel_color: #2E2E2C
|
||||
sxiv.bar_bg_color: #121212
|
||||
|
|
|
@ -0,0 +1,40 @@
|
|||
<?xml encoding="UTF-8" version="1.0"?>
|
||||
<actions>
|
||||
<action>
|
||||
<icon>Terminal</icon>
|
||||
<name>Terminal</name>
|
||||
<unique-id>1367866030392833-1</unique-id>
|
||||
<command>exo-open --working-directory %f --launch TerminalEmulator</command>
|
||||
<description></description>
|
||||
<patterns>*</patterns>
|
||||
<directories/>
|
||||
</action>
|
||||
<action>
|
||||
<icon>stock_folder</icon>
|
||||
<name>Thunar Root</name>
|
||||
<unique-id>1367866030392883-2</unique-id>
|
||||
<command>pkexec thunar %f</command>
|
||||
<description>Thunar Root</description>
|
||||
<patterns>*</patterns>
|
||||
<directories/>
|
||||
</action>
|
||||
<action>
|
||||
<icon>system-search</icon>
|
||||
<name>Search</name>
|
||||
<unique-id>1367866030392913-3</unique-id>
|
||||
<command>catfish %f</command>
|
||||
<description>find files and folders</description>
|
||||
<patterns>*</patterns>
|
||||
<directories/>
|
||||
</action>
|
||||
<action>
|
||||
<icon>text-x-component</icon>
|
||||
<name>Edit As Root</name>
|
||||
<unique-id>1517805644877963-1</unique-id>
|
||||
<command>pkexec mousepad %f</command>
|
||||
<description></description>
|
||||
<patterns>*</patterns>
|
||||
<other-files/>
|
||||
<text-files/>
|
||||
</action>
|
||||
</actions>
|
|
@ -1,9 +1,7 @@
|
|||
sleep 5s
|
||||
xfce4-power-manager &
|
||||
#nm-applet &
|
||||
#compton -b &
|
||||
dunst -conf ~/.config/dunst/dunstrc &
|
||||
sleep 15s
|
||||
compton -b &
|
||||
redshift -c ~/.config/redshift/redshift.conf &
|
||||
dunst -conf ~/.config/dunst/dunstrc &
|
||||
sleep 10s
|
||||
mpd &
|
||||
mailnag &
|
||||
unclutter &
|
||||
|
|
|
@ -20,7 +20,7 @@ bspc config bottom_padding $pad
|
|||
bspc config paddingless_monocle true
|
||||
bspc config gapless_monocle true
|
||||
bspc config borderless_monocle true
|
||||
bspc config single_monocle true
|
||||
bspc config single_monocle false
|
||||
bspc config remove_unplugged_monitors true
|
||||
bspc config remove_disabled_monitors true
|
||||
bspc config pointer_follows_focus true
|
||||
|
@ -57,6 +57,7 @@ bspc rule -a mpv state=floating
|
|||
bspc rule -a Gucharmap state=floating
|
||||
bspc rule -a File-roller state=floating
|
||||
bspc rule -a Catfish state=floating
|
||||
bspc rule -a st-256color state=floating
|
||||
|
||||
# Others
|
||||
bspc rule -a Zathura state=tiled
|
||||
|
|
|
@ -5,16 +5,16 @@ refresh-rate = 0;
|
|||
glx-copy-from-front = false;
|
||||
sw-opti = true;
|
||||
glx-use-copysubbuffermesa = true;
|
||||
glx-swap-method = "undefined";
|
||||
glx-swap-method = "buffer-age";
|
||||
|
||||
shadow = true;
|
||||
clear-shadow = true;
|
||||
shadow-radius = 5;
|
||||
shadow-offset-x = -0.8;
|
||||
shadow-offset-y = -0.8;
|
||||
shadow-radius = 4;
|
||||
shadow-offset-x = -0.05;
|
||||
shadow-offset-y = -0.05;
|
||||
no-dock-shadow = true;
|
||||
no-dnd-shadow = true;
|
||||
shadow-opacity = 0.8;
|
||||
shadow-opacity = 0.5;
|
||||
shadow-red = 0.05;
|
||||
shadow-green = 0.05;
|
||||
shadow-blue = 0.05;
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
.window-frame, .window-frame:backdrop {
|
||||
box-shadow: 0 0 0 black;
|
||||
box-shadow: none;
|
||||
border-style: none;
|
||||
margin: 0;
|
||||
border-radius: 0;
|
||||
|
|
|
@ -76,10 +76,9 @@ playlist_show_remaining_time = no
|
|||
display_remaining_time = no
|
||||
playlist_separate_albums = no
|
||||
ask_for_locked_screen_width_part = no
|
||||
locked_screen_width_part = 40
|
||||
locked_screen_width_part = 50
|
||||
|
||||
# OPTIONS
|
||||
message_delay_time = 5
|
||||
lines_scrolled = 1
|
||||
mouse_support = yes
|
||||
mouse_list_scroll_whole_page = yes
|
||||
|
|
|
@ -16,7 +16,6 @@
|
|||
call plug#begin('~/.config/nvim/plugged')
|
||||
Plug 'junegunn/vim-plug'
|
||||
Plug 'junegunn/goyo.vim', { 'for': 'mail'}
|
||||
Plug 'ryanoasis/vim-devicons'
|
||||
Plug 'scrooloose/nerdtree', { 'on': 'NERDTreeToggle' }
|
||||
Plug 'hecal3/vim-leader-guide'
|
||||
Plug 'christoomey/vim-tmux-navigator'
|
||||
|
@ -160,6 +159,9 @@
|
|||
autocmd BufWritePre * :%s/\s\+$//e " Auto remove all trailing whitespace on :w
|
||||
:au FocusLost * :wa " Autosave files when focus is lost
|
||||
|
||||
" Disables automatic commenting on newline
|
||||
autocmd FileType * setlocal formatoptions-=c formatoptions-=r formatoptions-=o
|
||||
|
||||
" Automatic syntax highlighting for files
|
||||
aug set_file_types
|
||||
au BufRead,BufNewFile *.txt set filetype=markdown
|
||||
|
@ -307,7 +309,25 @@
|
|||
" }}}
|
||||
|
||||
" Wintabs {{{
|
||||
let g:wintabs_ui_active_higroup = 'TabLineSel'
|
||||
let g:wintabs_switchbuf='useopen,usetab'
|
||||
let intertabSpace= ' '
|
||||
let activeWinTabChar = '|'
|
||||
let activeVimTabChar = '|'
|
||||
let activeWinTabChar = '▎'
|
||||
let activeVimTabChar = '▍'
|
||||
let g:wintabs_ui_sep_leftmost=intertabSpace
|
||||
let g:wintabs_ui_sep_inbetween=intertabSpace
|
||||
let g:wintabs_ui_active_right=intertabSpace
|
||||
let g:wintabs_ui_active_left=activeVimTabChar
|
||||
let g:wintabs_ui_sep_rightmost=intertabSpace
|
||||
let g:wintabs_ui_modified=' +'
|
||||
let g:wintabs_ignored_filetypes=[]
|
||||
let g:wintabs_ui_active_vimtab_left=activeVimTabChar
|
||||
let g:wintabs_ui_active_vimtab_right=intertabSpace
|
||||
|
||||
let g:wintabs_ui_arrow_left='«'
|
||||
let g:wintabs_ui_arrow_right='»'
|
||||
" }}}
|
||||
|
||||
" Goyo {{{
|
||||
|
|
|
@ -229,14 +229,13 @@ copymap q ZZ ZQ
|
|||
map R reload_cwd
|
||||
map F set freeze_files!
|
||||
map <C-r> reset
|
||||
#map <C-l> redraw_window
|
||||
map <C-c> abort
|
||||
map <esc> change_mode normal
|
||||
map ~ set viewmode!
|
||||
|
||||
map i display_file
|
||||
map ? help
|
||||
#map W display_log
|
||||
map W display_log
|
||||
map w taskview_open
|
||||
map S shell $SHELL
|
||||
|
||||
|
@ -245,9 +244,7 @@ map ; console
|
|||
map ! console shell%space
|
||||
map @ console -p6 shell %%s
|
||||
map # console shell -p%space
|
||||
#map s console shell%space
|
||||
map r chain draw_possible_programs; console open_with%%space
|
||||
#map f console find%space
|
||||
map cd console cd%space
|
||||
|
||||
# Change the line mode
|
||||
|
@ -322,8 +319,6 @@ map gU cd /usr
|
|||
map gd cd ~/Downloads
|
||||
map g. cd ~/.config
|
||||
map gT cd ~/.local/share/Trash/files/
|
||||
#map gl cd -r .
|
||||
#map gL cd -r %f
|
||||
map gm cd ~/Music/Albums
|
||||
map gM cd /media
|
||||
map gr cd /
|
||||
|
@ -358,9 +353,6 @@ map I eval fm.open_console('rename ' + fm.thisfile.relative_path.replace("%", "
|
|||
# Filesystem Operations
|
||||
map = chmod
|
||||
map cw eval fm.execute_console("bulkrename") if fm.thisdir.marked_items else fm.open_console("rename ")
|
||||
map aa rename_append
|
||||
map A eval fm.open_console('rename ' + fm.thisfile.relative_path)
|
||||
map I eval fm.open_console('rename ' + fm.thisfile.relative_path, position=7)
|
||||
map pp paste
|
||||
map po paste overwrite=True
|
||||
map pP paste append=True
|
||||
|
@ -370,9 +362,10 @@ map pL paste_symlink relative=True
|
|||
map phl paste_hardlink
|
||||
map pht paste_hardlinked_subtree
|
||||
|
||||
#map DD console delete
|
||||
map D shell mv /home/${USER}/.local/share/Trash/files/ %s
|
||||
map ee empty
|
||||
map DD console delete
|
||||
#map D shell mv --target-directory="$HOME/.local/share/Trash/files/" %s
|
||||
map Tm shell gio trash -f %s
|
||||
map Te shell gio trash --empty
|
||||
map dd cut
|
||||
map ud uncut
|
||||
map da cut mode=add
|
||||
|
|
|
@ -1,17 +1,14 @@
|
|||
configuration {
|
||||
modi: "run,drun,window";
|
||||
theme: "sbarr";
|
||||
combi-modi: "run,drun,window";
|
||||
bw: 0;
|
||||
yoffset: 0;
|
||||
xoffset: 0;
|
||||
show-icons: true;
|
||||
terminal: "termite";
|
||||
ssh-client: "ssh";
|
||||
ssh-command: "termite -t 'Connecting to {host}' -e '{ssh-client} {host}'";
|
||||
run-command: "{cmd}";
|
||||
run-list-command: "";
|
||||
run-shell-command: "termite --hold -e {cmd}";
|
||||
window-command: "xkill -id {window}";
|
||||
drun-icon-theme: "papirus";
|
||||
disable-history: true;
|
||||
sort: true;
|
||||
|
@ -21,23 +18,14 @@ configuration {
|
|||
sidebar-mode: true;
|
||||
eh: 1;
|
||||
auto-select: true;
|
||||
parse-hosts: false;
|
||||
parse-known-hosts: true;
|
||||
matching: "fuzzy";
|
||||
tokenize: true;
|
||||
m: "-5";
|
||||
line-margin: 2;
|
||||
line-padding: 1;
|
||||
separator-style: "none";
|
||||
hide-scrollbar: true;
|
||||
fullscreen: false;
|
||||
fake-transparency: false;
|
||||
dpi: -1;
|
||||
threads: 0;
|
||||
scroll-method: 1;
|
||||
window-format: "{w} {i}{c} {t}";
|
||||
click-to-exit: true;
|
||||
show-match: false;
|
||||
show-match: true;
|
||||
drun-match-fields: "name,exec";
|
||||
combi-hide-mode-prefix: true;
|
||||
pid: "/run/user/1000/rofi.pid";
|
||||
|
|
|
@ -34,10 +34,10 @@ super + {Up,Down,Left,Right}
|
|||
|
||||
# Run Applications
|
||||
super + {m,b,v,q,z,e,x,n}
|
||||
{mousepad,firefox,pavucontrol,oblogout,termite,thunar,skyterm,wifiterm}
|
||||
{mousepad,firefox,pavucontrol,oblogout,termite,thunar,skyterm,nmcli_rofi}
|
||||
|
||||
super + {space,r,s}
|
||||
rofi -show {drun,run,window} -theme sbarr
|
||||
rofi -show {drun,run,window}
|
||||
|
||||
ctrl + alt + x
|
||||
xkill
|
||||
|
|
|
@ -9,9 +9,9 @@ urgent_on_bell = true
|
|||
clickable_url = true
|
||||
scrollback_lines = 10000
|
||||
search_wrap = true
|
||||
font = IBMPlexMono Nerd Font Mono Normal 9
|
||||
#font = SauceCodePro Nerd Font Mono 9
|
||||
#font = Inconsolata Nerd Font Mono 10
|
||||
#font = IBMPlexMono Nerd Font Mono Normal 10
|
||||
#font = xos4 terminus 10
|
||||
font = gohu gohufont 10
|
||||
geometry = 1280x720
|
||||
|
||||
# "system", "on" or "off"
|
||||
|
@ -38,6 +38,7 @@ filter_unmatched_urls = true
|
|||
foreground = #d3d7cf
|
||||
foreground_bold = #d3d7cf
|
||||
cursor = #d3d7cf
|
||||
#background = #080808
|
||||
background = rgba(8, 8, 8, 0.7)
|
||||
|
||||
# black
|
||||
|
|
|
@ -46,10 +46,10 @@ abstracts = {
|
|||
menick = "%y$*%y";
|
||||
|
||||
# generic one that's used by most actions
|
||||
action = "%n %y ┼╌╌ %I%P$* %P";
|
||||
action = "%n %y └╌╌ %I%P$* %P";
|
||||
|
||||
# own action, both private/public
|
||||
ownaction = "%n %y ┼╌╌ %I%P$* %P";
|
||||
ownaction = "%n %y └╌╌ %I%P$* %P";
|
||||
|
||||
# own action with target, both private/public
|
||||
ownaction_target = "{action $*}";
|
||||
|
@ -118,7 +118,7 @@ formats = {
|
|||
new_topic = "%y ┌─┄┄─────┘%n\012%y │ %wtopic %W'$2' %wset by $0\012%y └─┄┄─┄┄──┐ ";
|
||||
endofnames = "%y └─┄┄─┄┄──┐ %btotal: {hilight $2} ops, {hilight $3} halfops, {hilight $4} voices, {hilight $5} normies%n";
|
||||
#nick padding
|
||||
pubmsg = "{pubmsgnick $2 {pubnick \00305$[-10]0}}$1";
|
||||
pubmsg = "{pubmsgnick $2 {pubnick \00313$[-10]0}}$1";
|
||||
own_msg = "{ownmsgnick $2 {ownnick $[-10]0}}$1";
|
||||
own_msg_channel = "{ownmsgnick $3 {ownnick $[-10]0}{msgchannel $1}}$2";
|
||||
own_msg_private_query = " {ownprivmsgnick {ownprivnick $[-10]2}}$1";
|
||||
|
|
|
@ -19,9 +19,8 @@ servers = (
|
|||
address = "unix.chat";
|
||||
chatnet = "nixers";
|
||||
port = "6697";
|
||||
use_ssl = "no";
|
||||
use_ssl = "yes";
|
||||
ssl_verify = "no";
|
||||
ssl_capath = "";
|
||||
},
|
||||
{ address = "irc.dal.net"; chatnet = "DALnet"; port = "6667"; }
|
||||
);
|
||||
|
@ -154,6 +153,11 @@ settings = {
|
|||
awl_all_disable = "no";
|
||||
awl_height_adjust = "1";
|
||||
awl_position = "0";
|
||||
awl_sort = "refnum";
|
||||
awl_mouse = "yes";
|
||||
mouse_escape = "0";
|
||||
awl_mouse_offset = "0";
|
||||
mouse_scroll = "3";
|
||||
};
|
||||
"fe-common/irc" = {
|
||||
query_track_nick_changes = "yes";
|
||||
|
@ -164,7 +168,6 @@ settings = {
|
|||
logs = { };
|
||||
statusbar = {
|
||||
items = {
|
||||
time = "{sb $Z}";
|
||||
awlbarstart = " %y ┌┄┄ %w";
|
||||
awlbarend = " ";
|
||||
more = "%y┄┄─ %Nmore %y┄┄─┐";
|
||||
|
@ -173,7 +176,6 @@ statusbar = {
|
|||
window = {
|
||||
items = {
|
||||
barstart = { priority = "100"; };
|
||||
time = { };
|
||||
user = { };
|
||||
window = { };
|
||||
window_empty = { };
|
||||
|
@ -193,3 +195,6 @@ statusbar = {
|
|||
};
|
||||
};
|
||||
};
|
||||
keyboard = (
|
||||
{ key = "meta-[M"; id = "command"; data = "mouse_xterm"; }
|
||||
);
|
||||
|
|
|
@ -6,3 +6,5 @@ NoDisplay=true
|
|||
Exec=sxiv -a %f
|
||||
Name=sxiv-gif
|
||||
Comment=Custom definition for sxiv
|
||||
MimeType=image/gif
|
||||
Icon=sxiv
|
|
@ -21,18 +21,24 @@
|
|||
selected-active-background: @actbg;
|
||||
active-background: @selbg;
|
||||
|
||||
line-margin: 2;
|
||||
line-padding: 2;
|
||||
separator-style: "none";
|
||||
hide-scrollbar: "true";
|
||||
font: "IBM Plex Sans 10";
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
#window {
|
||||
location: west;
|
||||
anchor: west;
|
||||
height: 100%;
|
||||
width: 22%;
|
||||
orientation: horizontal;
|
||||
children: [mainbox];
|
||||
location: east;
|
||||
anchor: east;
|
||||
height: 100%;
|
||||
width: 22%;
|
||||
orientation: horizontal;
|
||||
children: [mainbox];
|
||||
border: 0 0 0 1px solid;
|
||||
border-color: @active-background;
|
||||
}
|
||||
|
||||
#mainbox {
|
||||
|
@ -86,7 +92,7 @@
|
|||
background-color: @selected-normal-background;
|
||||
text-color: @selected-normal-foreground;
|
||||
border: 0 5px solid 0 0;
|
||||
border-color: @active-background;
|
||||
border-color: @winbg;
|
||||
}
|
||||
|
||||
#element.selected.urgent {
|
||||
|
|
3
.xinitrc
3
.xinitrc
|
@ -19,7 +19,6 @@ setxkbmap -option caps:escape
|
|||
wmname LG3D &
|
||||
/usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1 &
|
||||
xsetroot -cursor_name left_ptr &
|
||||
hsetroot -fill /home/deadguy/Pictures/wallpaper/algorave-wp-1366-2.png &
|
||||
unclutter &
|
||||
sxhkd &
|
||||
hsetroot -fill /home/deadguy/Pictures/wallpaper/algorave-wp-1366-2.png &
|
||||
exec bspwm
|
||||
|
|
6
.zshrc
6
.zshrc
|
@ -3,6 +3,8 @@
|
|||
|
||||
export PATH="/usr/lib/ccache/bin/:$PATH"
|
||||
|
||||
source ~/.local/share/icons-in-terminal/icons_bash.sh
|
||||
|
||||
# Completion styles {{{
|
||||
zstyle ':completion:*' auto-description '%d'
|
||||
zstyle ':completion:*' completer _oldlist _expand _complete _match _approximate _prefix
|
||||
|
@ -285,8 +287,6 @@ export PATH="/usr/lib/ccache/bin/:$PATH"
|
|||
echo "$pid" | xargs kill -${1:-9}
|
||||
fi
|
||||
}
|
||||
|
||||
flocate() { xdg-open "$(locate "*" | fzf -e)" ;}
|
||||
# }}}
|
||||
|
||||
# Recolor fast-syntax-highlighting {{{
|
||||
|
@ -510,7 +510,6 @@ export PATH="/usr/lib/ccache/bin/:$PATH"
|
|||
alias p='pacui'
|
||||
alias sr='sr -browser=lynx' # open in cli browser
|
||||
alias surfraw='surfraw -browser=$BROWSER' # open in gui browser
|
||||
alias pacman-mirrors='sudo pacman-mirrors'
|
||||
alias foxdot='python -m FoxDot'
|
||||
|
||||
# MAXIMUM VERBOSITY YIELDS MAXIMUM RESULTS
|
||||
|
@ -527,6 +526,7 @@ export PATH="/usr/lib/ccache/bin/:$PATH"
|
|||
alias umount='umount -v'
|
||||
|
||||
# Opinionated
|
||||
alias pacman-mirrors='sudo pacman-mirrors -f5'
|
||||
alias tx='tmux -2'
|
||||
alias imv='imv -sd -e inconsolata:8 -r'
|
||||
alias ytdl='youtube-dl -ic'
|
||||
|
|
2
bin/batt
2
bin/batt
|
@ -1,7 +1,7 @@
|
|||
#!/bin/bash
|
||||
if [ -d /sys/class/power_supply/BAT0 ]; then
|
||||
bat_lvl=`head -n 1 /sys/class/power_supply/BAT0/capacity`
|
||||
bat=" $bat_lvl%"
|
||||
bat=" $bat_lvl%"
|
||||
fi
|
||||
|
||||
notify-send -t 5000 "${bat}"
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
terminal="st"
|
||||
|
||||
if [ -z $(xdotool search --classname "dropdown") ]; then
|
||||
bspc rule -a $terminal:dropdown state=floating,hidden=on,border=off,sticky=on layer=above,focus=on,rectangle=1369x250+0+525
|
||||
bspc rule -a $terminal:dropdown state=floating,hidden=on,sticky=on layer=above,focus=on,rectangle=1360x252+0+527
|
||||
|
||||
# Use of xtoolwait is recommended instead of the until-loop.
|
||||
# One or the other is needed to wait for the terminal to be
|
||||
|
|
|
@ -18,8 +18,9 @@ c14=$'\e[1;36m'
|
|||
c15=$'\e[1;37m'
|
||||
|
||||
kernel=`uname -r`
|
||||
distro=`lsb_release -si`
|
||||
sh=`$SHELL --version`
|
||||
distro=$(source /etc/os-release && echo $PRETTY_NAME)
|
||||
wm=$(wmctrl -m | awk 'NR==1 {print $2}')
|
||||
sh=$(echo "$SHELL" | awk -F/ '{for ( i=1; i <= NF; i++) sub(".", substr(toupper($i),1,1) , $i); print $NF}')
|
||||
|
||||
cat << EOF
|
||||
|
||||
|
@ -53,20 +54,18 @@ ${c12} .:oyhdmNMMMNmdhyo:.
|
|||
${c15}TRIOPTIMUM CORPORATION
|
||||
|
||||
${c12}UNN Von Braun
|
||||
${c11}OS ${c01}...........${c07} $distro
|
||||
${c11}terminal ${c01}.....${c07} Termite
|
||||
${c11}shell ${c01}........${c07} $sh
|
||||
${c11}OS ${c01}...........${c07} $distro
|
||||
${c11}terminal ${c01}.....${c07} Termite
|
||||
${c11}shell ${c01}........${c07} $sh
|
||||
|
||||
${c11}kernel ${c01}.......${c07} $kernel
|
||||
${c11}processor ${c01}....${c07} i3-3110M
|
||||
${c11}resolution ${c01}...${c07} 1366x768
|
||||
${c11}kernel ${c01}.......${c07} $kernel
|
||||
${c11}processor ${c01}....${c07} i3-3110M
|
||||
${c11}resolution ${c01}...${c07} 1366x768
|
||||
|
||||
${c11}wm ${c00}...........${c07} BSPWM
|
||||
${c11}bar ${c00}..........${c07} None
|
||||
${c11}gtk theme ${c00}....${c07} Minwaita
|
||||
${c11}icons ${c00}........${c07} Papirus
|
||||
${c11}font ${c00}.........${c07} Ibm Plex
|
||||
${c11}wm ${c01}...........${c07} $wm
|
||||
${c11}bar ${c01}..........${c07} None
|
||||
${c11}gtk theme ${c01}....${c07} Minwaita
|
||||
${c11}icons ${c01}........${c07} Papirus
|
||||
${c11}font ${c01}.........${c07} Ibm Plex
|
||||
|
||||
|
||||
${c00}██${c08}██${c01}██${c09}██${c02}██${c10}██${c03}██${c11}██${c04}██${c12}██${c05}██${c13}██${c06}██${c14}██${c07}██${c15}██
|
||||
EOF
|
||||
|
|
24
bin/txbar
24
bin/txbar
|
@ -1,30 +1,30 @@
|
|||
#!/bin/bash
|
||||
|
||||
HEART=''
|
||||
WIFI=''
|
||||
HEART='\ue001'
|
||||
WIFI='\ue610'
|
||||
|
||||
if cat /sys/class/net/wlo1/operstate | grep -q 'up'; then
|
||||
net="`awk 'NR == 3 { print substr($3, 1, length($3) - 1) }' /proc/net/wireless`%"
|
||||
net="`awk 'NR == 3 { print substr($3, 1, length($3) - 1) }' /proc/net/wireless`"
|
||||
fi
|
||||
|
||||
if [ -d /sys/class/power_supply/BAT0 ]; then
|
||||
battery_info="`head -n 1 /sys/class/power_supply/BAT0/capacity`%"
|
||||
current_charge=$(echo $battery_info | grep -o '[0-9]\+%')
|
||||
current_charge=$(echo $battery_info | grep -o '[0-9]\+%' | awk '{sub (/%/, "", $1); print $1}')
|
||||
|
||||
if [[ $current_charge -lt 10 ]]; then
|
||||
echo -n '#[fg=colour10]'
|
||||
elif [[ $current_charge -lt 30 ]]; then
|
||||
echo -n '#[fg=colour101]'
|
||||
elif [[ $current_charge -lt 50 ]]; then
|
||||
if [[ $current_charge -lt 11 ]]; then
|
||||
echo -n '#[fg=colour9]'
|
||||
elif [[ $current_charge -lt 31 ]]; then
|
||||
echo -n '#[fg=colour126]'
|
||||
elif [[ $current_charge -lt 51 ]]; then
|
||||
echo -n '#[fg=colour201]'
|
||||
elif [[ $current_charge -lt 70 ]]; then
|
||||
elif [[ $current_charge -lt 71 ]]; then
|
||||
echo -n '#[fg=colour171]'
|
||||
elif [[ $current_charge -lt 90 ]]; then
|
||||
echo -n '#[fg=colour11]'
|
||||
else
|
||||
echo -n '#[fg=colour124]'
|
||||
echo -n '#[fg=colour123]'
|
||||
fi
|
||||
fi
|
||||
|
||||
echo -n " $HEART $current_charge #[fg=cyan]$WIFI ${net} "
|
||||
echo -ne " $HEART $current_charge #[fg=cyan]$WIFI ${net} "
|
||||
|
||||
|
|
Reference in New Issue