From a5b5d6382fef84b3b4cde51fbaba6f739d66fcf0 Mon Sep 17 00:00:00 2001 From: Severin Kaderli Date: Tue, 11 Apr 2017 10:41:59 +0200 Subject: [PATCH] Adjust workspace colors and add sudo bash completion Signed-off-by: Severin Kaderli --- .bashrc | 3 ++- .config/i3/config | 15 ++++++++------- .config/i3/i3bar/wifi.sh | 10 +++++----- .vimrc | 2 +- 4 files changed, 16 insertions(+), 14 deletions(-) diff --git a/.bashrc b/.bashrc index dcac6c9..163d6e6 100644 --- a/.bashrc +++ b/.bashrc @@ -47,7 +47,7 @@ export GTK_IM_MODULE=ibus export QT_IM_MODULE=ibus export XMODIFIERS=@im=ibus -# Setting default editor +# Setting default editor and terminal export VISUAL=vim export EDITOR="$VISUAL" export TERMINAL=termite @@ -56,6 +56,7 @@ export TERMINAL=termite if [ -f /etc/bash_completion ]; then /etc/bash_completion fi +complete -cf sudo # Add users bin directory to the PATH if [ -d "$HOME/bin" ] ; then diff --git a/.config/i3/config b/.config/i3/config index 9a21301..c19a5c2 100644 --- a/.config/i3/config +++ b/.config/i3/config @@ -11,7 +11,7 @@ new_window none # Font for window titles. Will also be used by the bar unless a different font # is used in the bar {} block below. -font pango:Roboto-Regular 10 +font pango:Roboto, FontAwesome 15px # Use Mouse+$mod to drag floating windows to their wanted position floating_modifier $mod @@ -165,15 +165,14 @@ bindsym $mod+x mode "resize" # Start i3bar to display a workspace bar (plus the system information i3status # finds out, if available) bar { - font pango: Roboto-Regular, FontAwesome 10 status_command i3blocks -c $HOME/.config/i3/i3blocks.conf position top colors { background #000000 - separator #000000 - focused_workspace #000000 #000000 #FF5722 - inactive_workspace #000000 #424242 #FFFFFF - urgent_workspace #000000 #424242 #FFFFFF + focused_workspace #000000 #268bd2 #FFFFFF + active_workspace #000000 #000000 #268bd2 + inactive_workspace #000000 #000000 #268bd2 + urgent_workspace #000000 #000000 #268bd2 } } @@ -213,11 +212,13 @@ exec_always --no-startup-id xrandr --output $output2 --mode 1280x1024 --pos 1280 # Other applications exec google-chrome-beta exec termite +exec termite -e cmus --name cmus # Assign programs to specific workspaces ### assign [class="Google-chrome-beta"] $workspace1 -assign [class="Termite"] $workspace2 +assign [instance="termite"] $workspace2 +assign [instance="cmus"] $workspace10 assign [class="Hyper"] $workspace2 assign [class="Atom"] $workspace3 assign [class="Steam"] $workspace6 diff --git a/.config/i3/i3bar/wifi.sh b/.config/i3/i3bar/wifi.sh index dee327b..d46f70a 100755 --- a/.config/i3/i3bar/wifi.sh +++ b/.config/i3/i3bar/wifi.sh @@ -1,10 +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" - +if [ "$SSID" != "Yggdrasil"]; then + echo " Disconnected" +else + echo " $SSID" +fi diff --git a/.vimrc b/.vimrc index 05f87b8..0d60501 100644 --- a/.vimrc +++ b/.vimrc @@ -1,6 +1,6 @@ syntax on set encoding=utf-8 - +set virtualedit=onemore set number filetype on