Add termite configuration and add wifi information to i3blocks

Signed-off-by: Severin Kaderli <severin.kaderli@gmail.com>
This commit is contained in:
Severin Kaderli 2017-03-29 22:13:33 +02:00
parent 6b38dff3f1
commit 6bd768ff87
7 changed files with 78 additions and 8 deletions

View file

@ -13,15 +13,11 @@ new_window none
# is used in the bar {} block below.
font pango:Roboto-Regular 10
# This font is widely installed, provides lots of unicode glyphs, right-to-left
# text rendering and scalability on retina/hidpi displays (thanks to pango).
#font pango:DejaVu Sans Mono 8
# Use Mouse+$mod to drag floating windows to their wanted position
floating_modifier $mod
# start a terminal
bindsym $mod+Return exec gnome-terminal
bindsym $mod+Return exec termite
# kill focused window
bindsym $mod+Shift+q kill
@ -230,3 +226,7 @@ assign [class="Vlc"] $workspace9
# Disable window titlebars
for_window [class="^.*"] border pixel 0
# Gaps
gaps inner 10
gaps outer 10

10
.config/i3/i3bar/wifi.sh Executable file
View file

@ -0,0 +1,10 @@
#!/bin/bash
# wifi.sh
if [ "$(cat /sys/class/net/$INTERFACE/operstate)" = "down" ]; then
echo "Wifi not connected"
fi
SSID=$(iwgetid -r)
echo "Connected to $SSID"

View file

@ -6,7 +6,7 @@ full_text=
align=center
separator=false
separator_block_width=10
color=#FF5722
color=#268bd2
[Music]
markup=pango
@ -24,6 +24,14 @@ color=#FFFFFF
[seperator]
[Wifi]
full_text=
command=~/.config/i3/i3bar/wifi.sh
interval=5
color=#FFFFFF
[seperator]
[Datetime]
command=~/.config/i3/i3bar/datetime.sh
interval=1