From 6bd768ff878f05ac6f25520f565500fe4c81630b Mon Sep 17 00:00:00 2001 From: Severin Kaderli Date: Wed, 29 Mar 2017 22:13:33 +0200 Subject: [PATCH] Add termite configuration and add wifi information to i3blocks Signed-off-by: Severin Kaderli --- .bashrc | 1 + .config/compton.conf | 1 + .config/i3/config | 10 ++++---- .config/i3/i3bar/wifi.sh | 10 ++++++++ .config/i3/i3blocks.conf | 10 +++++++- .config/termite/config | 51 ++++++++++++++++++++++++++++++++++++++++ .hyper.js | 3 +-- 7 files changed, 78 insertions(+), 8 deletions(-) create mode 100755 .config/i3/i3bar/wifi.sh create mode 100644 .config/termite/config diff --git a/.bashrc b/.bashrc index c5a4af9..dcac6c9 100644 --- a/.bashrc +++ b/.bashrc @@ -50,6 +50,7 @@ export XMODIFIERS=@im=ibus # Setting default editor export VISUAL=vim export EDITOR="$VISUAL" +export TERMINAL=termite # Enable autocompletion features if [ -f /etc/bash_completion ]; then diff --git a/.config/compton.conf b/.config/compton.conf index e69de29..167763a 100644 --- a/.config/compton.conf +++ b/.config/compton.conf @@ -0,0 +1 @@ +opacity-rule = [ "85:class_g = 'Termite'" ]; diff --git a/.config/i3/config b/.config/i3/config index 75cd982..efc37d9 100644 --- a/.config/i3/config +++ b/.config/i3/config @@ -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 diff --git a/.config/i3/i3bar/wifi.sh b/.config/i3/i3bar/wifi.sh new file mode 100755 index 0000000..047a35b --- /dev/null +++ b/.config/i3/i3bar/wifi.sh @@ -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" + diff --git a/.config/i3/i3blocks.conf b/.config/i3/i3blocks.conf index 4809b7f..56b726c 100644 --- a/.config/i3/i3blocks.conf +++ b/.config/i3/i3blocks.conf @@ -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 diff --git a/.config/termite/config b/.config/termite/config new file mode 100644 index 0000000..b249365 --- /dev/null +++ b/.config/termite/config @@ -0,0 +1,51 @@ +[options] +resize_grip = false +scroll_on_output = false +scroll_on_keystroke = true +audible_bell = false +visible_bell = false +mouse_autohide = false +allow_bold = true +dynamic_title = true +urgent_on_bell = false +clickable_url = true +font = Hack 10 +scrollback_lines = 1000 +search_wrap = true + +# "system", "on" or "off" +cursor_blink = system + +# "block", "underline" or "ibeam" +cursor_shape = ibeam + +#modify_other_keys = false + +# Solarized dark color scheme +[colors] +foreground = #839496 +foreground_bold = #eee8d5 +#foreground_dim = #888888 +background = #002b36 +cursor = #93a1a1 + +# if unset, will reverse foreground and background +#highlight = #839496 + +# colors from color0 to color254 can be set +color0 = #073642 +color1 = #dc322f +color2 = #859900 +color3 = #b58900 +color4 = #268bd2 +color5 = #d33682 +color6 = #2aa198 +color7 = #eee8d5 +color8 = #002b36 +color9 = #cb4b16 +color10 = #586e75 +color11 = #657b83 +color12 = #839496 +color13 = #6c71c4 +color14 = #93a1a1 +color15 = #fdf6e3 diff --git a/.hyper.js b/.hyper.js index 4e737c9..c0de26d 100644 --- a/.hyper.js +++ b/.hyper.js @@ -58,8 +58,7 @@ module.exports = { plugins: [ "hyper-tomorrow-night", - "hyper-blink", - "hyper-statusline" + "hyper-blink" ], localPlugins: []