Explorar o código

changed to i3blocks as status bar

Marius Schwarz %!s(int64=3) %!d(string=hai) anos
pai
achega
f7cf6b3bee

+ 2 - 2
.config/i3/config

@@ -264,8 +264,8 @@ bindsym $mod+Shift+0 move container to workspace 10
 bar {
 bar {
         # default status string
         # default status string
         #i3bar_command i3bar
         #i3bar_command i3bar
-        #status_command i3blocks -c ~/.config/i3blocks/i3blocks.conf
+        status_command i3blocks -c ~/.config/i3blocks/i3blocks.conf
-        status_command i3status -c $HOME/.config/i3status/i3status.conf
+        #status_command i3status -c $HOME/.config/i3status/i3status.conf
         font pango:NotoSansMono Nerd Font 8
         font pango:NotoSansMono Nerd Font 8
         modifier None
         modifier None
 	position top
 	position top

+ 6 - 14
.config/i3blocks/i3blocks.conf

@@ -14,18 +14,13 @@ markup=pango
 command=curl -Ss 'https://wttr.in/munich?0&T&Q' | cut -c 16- | head -2 | xargs echo
 command=curl -Ss 'https://wttr.in/munich?0&T&Q' | cut -c 16- | head -2 | xargs echo
 interval=3600
 interval=3600
 
 
-[notes]
-label=🗒️
-command=$HOME/.scripts/i3/i3blocks/todoasdkas.sh
-interval=5
-
 [pacman]
 [pacman]
 label=📦
 label=📦
 command=$HOME/.scripts/i3/i3blocks/pacman-upgradable.sh
 command=$HOME/.scripts/i3/i3blocks/pacman-upgradable.sh
 interval=60
 interval=60
 
 
 [volume]
 [volume]
-label=
+label=🎵
 command=$HOME/.scripts/i3/i3blocks/i3volume.sh
 command=$HOME/.scripts/i3/i3blocks/i3volume.sh
 interval=2
 interval=2
 
 
@@ -42,16 +37,13 @@ label=cpu
 interval=5
 interval=5
 command=$HOME/.scripts/i3/i3blocks/i3cpu.sh
 command=$HOME/.scripts/i3/i3blocks/i3cpu.sh
 
 
-# Free Disk Space
-[disk]
-label=⛁
-
-
 # Network interface monitoring
 # Network interface monitoring
-[iface]
+[ip]
+label=IP:
 color=#19c682
 color=#19c682
-interval=10
+interval=30
-separator=false
+separator=true
+command=ip --brief a | grep wlp | awk '{print " " $3}'
 
 
 
 
 # Battery indicator
 # Battery indicator

+ 1 - 1
.scripts/i3/i3blocks/i3cpu.sh

@@ -5,4 +5,4 @@ case $BLOCK_BUTTON in
     2) ;;
     2) ;;
 esac
 esac
 
 
-grep 'cpu ' /proc/stat | awk '{usage=($2+$4)*100/($2+$4+$5)} END {print usage "%"}'
+grep 'cpu ' /proc/stat | awk '{usage=($2+$4)*100/($2+$4+$5)} END {print " " usage "%"}'

+ 1 - 1
.scripts/i3/i3blocks/i3mem.sh

@@ -5,4 +5,4 @@ case $BLOCK_BUTTON in
     2) ;;
     2) ;;
 esac
 esac
 
 
-free -h | awk '/^Mem:/ {print $3}'
+free -h | awk '/^Mem:/ {print " "$3}'

+ 1 - 1
.scripts/i3/i3blocks/i3volume.sh

@@ -8,7 +8,7 @@ esac
 state=$(amixer -D pulse sget Master | awk '/Front Left:/ {print $6}' | sed -r 's/\[(.*)\]/\1/g')
 state=$(amixer -D pulse sget Master | awk '/Front Left:/ {print $6}' | sed -r 's/\[(.*)\]/\1/g')
 
 
 if [ "$state" = "off" ] ;then
 if [ "$state" = "off" ] ;then
-    echo "mute"
+    echo " muted"
 else
 else
     echo " $(amixer -D pulse sget Master | awk '/Front Left:/ {print $5}' | sed -r 's/\[(.*)\]/\1/g')"
     echo " $(amixer -D pulse sget Master | awk '/Front Left:/ {print $5}' | sed -r 's/\[(.*)\]/\1/g')"
 fi
 fi

+ 1 - 1
install.sh

@@ -7,7 +7,7 @@ read yesno
 if [[ "$yesno" == "y" ]]; then
 if [[ "$yesno" == "y" ]]; then
     echo "[*] Installing most popular tools"
     echo "[*] Installing most popular tools"
     # most important tools that are _always_ needed
     # most important tools that are _always_ needed
-    sudo pacman -Sy fzf fd neovim ripgrep nmap hexyl ctags git podman ueberzug duf exa
+    sudo pacman -Sy fzf fd neovim ripgrep nmap hexyl ctags git podman ueberzug duf exa i3blocks
 fi
 fi