summaryrefslogtreecommitdiff
path: root/.i3
diff options
context:
space:
mode:
authorGravatar Jonas Gunz <himself@jonasgunz.de> 2019-05-02 23:23:44 +0200
committerGravatar Jonas Gunz <himself@jonasgunz.de> 2019-05-02 23:23:44 +0200
commit766c3e82264f86c8bffa5fe8ddf956f449d82026 (patch)
tree288a12d0f74790013811e89b2f0ec9cef145ffba /.i3
parent03a071affee747bc66201114fba2a5fb29359caa (diff)
downloaddotfiles-766c3e82264f86c8bffa5fe8ddf956f449d82026.tar.gz
Added polybar
Diffstat (limited to '.i3')
-rw-r--r--.i3/config12
-rwxr-xr-x.i3/start_polybar.sh12
2 files changed, 19 insertions, 5 deletions
diff --git a/.i3/config b/.i3/config
index 8101927..4e21b50 100644
--- a/.i3/config
+++ b/.i3/config
@@ -30,10 +30,10 @@ font pango:monospace 9
floating_modifier $mod
# start a terminal
-bindsym $mod+Return exec "xterm -fa 'Monospace' -fs 12 -bg black -fg white"
+bindsym $mod+Return exec "xterm -fa 'Monospace' -fs 12 -bg black -fg white -ls -xrm 'XTerm*selectToClipboard: true'"
#start ranger
-bindsym $mod+o exec "xterm -fa 'Monospace' -fs 11 -bg black -fg white ranger"
+bindsym $mod+o exec "xterm -fa 'Monospace' -fs 11 -bg black -fg white -ls -xrm 'XTerm*selectToClipboard: true' ranger"
# kill focused window
bindsym $mod+Shift+q kill
@@ -195,9 +195,11 @@ exec --no-startup-id feh --bg-fill .i3/wp.jpg
# Start i3bar to display a workspace bar (plus the system information i3status
# finds out, if available)
-bar {
- status_command i3status
-}
+#bar {
+# status_command i3status
+#}
+
+exec_always --no-startup-id ~/.i3/start_polybar.sh jonny
# Pulse Audio controls
bindsym XF86AudioRaiseVolume exec --no-startup-id pactl -- set-sink-volume 0 +5% #increase sound volume
diff --git a/.i3/start_polybar.sh b/.i3/start_polybar.sh
new file mode 100755
index 0000000..38b46f6
--- /dev/null
+++ b/.i3/start_polybar.sh
@@ -0,0 +1,12 @@
+#!/bin/bash
+
+# Terminate already running bar instances
+killall -q polybar
+
+# Wait until the processes have been shut down
+while pgrep -u $UID -x polybar >/dev/null; do sleep 1; done
+
+# Launch Polybar, using default config location ~/.config/polybar/config
+polybar $1 &
+
+echo "Polybar launched..."