Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #########################
- # Global properties #
- #########################
- #
- command=$HOME/.config/i3/i3blocks/$BLOCK_NAME
- full_text=
- color=#7b5751
- separator=false
- separator_block_width=16
- markup=pango
- #####################
- # Media player #
- #####################
- #
- [mocp]
- interval=1
- color=#7b5751
- #########################
- # Volume indicator #
- #########################
- #
- [volume]
- label=
- instance=Master
- interval=once
- signal=1
- color=#88b090
- [separator]
- #################
- # Disk usage #
- #################
- #
- [disk-root]
- label=
- command=echo "$(df -h / | grep dev | awk -F ' ' '{print $4}')"; [[ -z "${BLOCK_BUTTON}" ]] || pcmanfm -n / &
- interval=1
- color=#eeeeee
- [disk-home]
- label=
- command=echo "$(df -h /home | grep dev | awk -F ' ' '{print $4}')"; [[ -z "${BLOCK_BUTTON}" ]] || pcmanfm -n &HOME &
- interval=1
- color=#eeeeee
- [trash]
- label=
- interval=1
- color=#eeeeee
- [separator]
- #################
- # Updates #
- #################
- #
- #[updates]
- #label=
- #command=$HOME/.config/i3/i3blocks/updates; [[ -z "${BLOCK_BUTTON}" ]] || pamac-manager &
- #color=#d8d782
- #interval=3600
- #[separator]
- #################
- # Packages #
- #################
- #
- [packages]
- label=
- command=echo "$(pacman -Q | wc -l)"; [[ -z "${BLOCK_BUTTON}" ]] || pamac-manager &
- color=#87a7af
- interval=1
- [separator]
- #################
- # CPU usage #
- #################
- #
- [cpu_usage]
- label=
- interval=1
- color=#eeeeee
- #####################
- # Temperature #
- #####################
- #
- [temperature]
- label=
- interval=1
- color=#eeeeee
- #####################
- # Memory usage #
- #####################
- #
- [memory]
- command=echo "$(free -m | awk 'NR==2{printf "%0.0f\n",$3/$2*100}')%"; [[ -z "${BLOCK_BUTTON}" ]] || lxtask &
- label=
- color=#eeeeee
- interval=1
- [separator]
- #################
- # Date & Time #
- #################
- #
- [date]
- command=date +'%a %d.%m.%Y'; [[ -z "${BLOCK_BUTTON}" ]] || gsimplecal &
- interval=1
- label=
- color=#88b090
- [time]
- command=echo "`date +'%H:%M'`"
- interval=1
- label=
- color=#88b090
- [separator]
- #################
- # Powermenu #
- #################
- #
- [powermenu]
- full_text=
- command=$HOME/.config/i3/powermenu &
- color=#eeeeee
- MOCP:
- #!/bin/bash
- STATUS=$(mocp -i | grep "State:" | sed -e "s/^.*: //")
- TITLE=$(mocp -i | grep "^Title:" | sed -e "s/^.*: //")
- ARTIST=$(mocp -i | grep "Artist:" | sed -e "s/^.*: //")
- SONGTITLE=$(mocp -i | grep "SongTitle:" | sed -e "s/^.*: //")
- if [[ $STATUS == PLAY ]]; then
- if [[ $TITLE != "" ]]; then
- if [[ $ARTIST != "" ]]; then ARTIST="$ARTIST -"; fi
- echo -e " $ARTIST $SONGTITLE "
- else echo -e " Prehráva sa "
- case $BLOCK_BUTTON in
- 1) mocp -f ;; # left click = next song
- 2) mocp -G ;; # middle click = toggle pause - play
- 3) mocp -r ;; # right click = previous song
- esac
- exit 0
- fi
- fi
- if (! pidof mocp ) &>/dev/null 2>&1; then
- echo -e " "
- else echo -e " "
- fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement