Add polybar configuration

Signed-off-by: Severin Kaderli <severin.kaderli@gmail.com>
This commit is contained in:
Severin Kaderli 2017-06-15 21:21:24 +02:00
parent a1117b541d
commit 6744982639
7 changed files with 180 additions and 40 deletions

View file

@ -5,5 +5,5 @@
alias cls="clear"
# Some aliases for ls
alias ls="ls -l --color=auto"
alias ll="ls -al"
alias ls="ls -Fhl --color=auto"
alias ll="ls -aFhl --color=auto"

View file

@ -52,6 +52,8 @@ export VISUAL=vim
export EDITOR="$VISUAL"
export TERMINAL=termite
export QT_QPA_PLATFORMTHEME=qt5ct
# Enable autocompletion features
if [ -f /etc/bash_completion ]; then
/etc/bash_completion

View file

@ -161,17 +161,19 @@ bindsym $mod+x mode "resize"
# Start i3bar to display a workspace bar (plus the system information i3status
# finds out, if available)
bar {
status_command i3blocks -c $HOME/.config/i3/i3blocks.conf
position top
colors {
background #222D32
focused_workspace #222D32 #268bd2 #FFFFFF
active_workspace #222D32 #222D32 #268bd2
inactive_workspace #222D32 #222D32 #268bd2
urgent_workspace #222D32 #222D32 #268bd2
}
}
#bar {
# status_command i3blocks -c $HOME/.config/i3/i3blocks.conf
# position top
# colors {
# background #222D32
# focused_workspace #222D32 #268bd2 #FFFFFF
# active_workspace #222D32 #222D32 #268bd2
# inactive_workspace #222D32 #222D32 #268bd2
# urgent_workspace #222D32 #222D32 #268bd2
# }
#}
exec_always --no-startup-id $HOME/.config/polybar/launch.sh
# Custom key bindings
###
@ -209,7 +211,7 @@ exec xrdb -merge $HOME/.Xresources
exec --no-startup-id compton
# Background-Image
exec_always --no-startup-id feh --bg-center /home/severin/GoogleDrive/02_Media/01_Images/01_Wallpaper/Desktop/Zelda_1.jpg
exec_always --no-startup-id feh --bg-fill /home/severin/GoogleDrive/02_Media/01_Images/01_Wallpaper/Adapta_Tealized.jpg
# Monitor settings
exec_always --no-startup-id xrandr --output $output2 --mode 1280x1024 --pos 1280x0 --rotate normal --output $output1 --mode 1280x1024 --pos 0x0 --rotate normal
@ -227,7 +229,7 @@ assign [instance="cmus"] $workspace10
assign [class="Hyper"] $workspace2
assign [class="Atom"] $workspace3
assign [class="Steam"] $workspace6
assign [class="Keepassx2"] $workspace8
assign [class="keepassxc"] $workspace8
assign [class="Vlc"] $workspace9
# Disable window titlebars

119
.config/polybar/config Normal file
View file

@ -0,0 +1,119 @@
[colors]
background = #222D32
foreground = #A1B0B8
[bar/top]
monitor = VGA-1
width = 100%
height = 35
offset-x = 0
offset-y = 0
background = ${colors.background}
foreground = ${colors.foreground}
padding-right = 2
module-margin = 2
font-0 = Roboto:pixelsize=12;2
font-1 = FontAwesome:size=11;2
font-2 = siji:pixelsize=10;0
modules-left = i3
modules-center = xwindow
modules-right = volume wlan date
#wm-restack = i3
scroll-up = i3wm-desknext
scroll-down = i3wm-deskprev
[bar/top2]
inherit = bar/top
monitor = HDMI-1
[module/i3]
type = internal/i3
# Only show workspaces on the same output as the bar
pin-workspaces = true
strip-wsnumbers = true
index-sort = true
enable-click = true
enable-scroll = true
wrapping-scroll = false
label-mode = %mode%
label-mode-padding = 1
label-focused = %name%
label-focused-foreground = ${colors.background}
label-focused-background = ${colors.foreground}
label-focused-padding = 4
label-unfocused = %name%
label-unfocused-padding = 4
label-visible = %name%
label-visible-padding = 4
label-urgent = %name%
label-urgent-foreground = ${colors.foreground}
label-urgent-background = ${colors.background}
label-urgent-padding = 4
[module/xwindow]
type = internal/xwindow
label = %title:0:40:...%
label-padding = 4
[module/date]
type = internal/date
interval = 1.0
date = %F
time = %H:%M:%S
label =  %date% %time%
format = <label>
[module/padding]
type = custom/text
content =
content-foreground = #00000000
content-background = #55000000
[module/wlan]
type = internal/network
interface = wifi0
interval = 3.0
format-connected = <ramp-signal> <label-connected>
format-connected-underline = #9f78e1
label-connected = %essid%
format-disconnected =
;format-disconnected = <label-disconnected>
;format-disconnected-underline = ${self.format-connected-underline}
;label-disconnected = %ifname% disconnected
;label-disconnected-foreground = ${colors.foreground}
ramp-signal-0 = 
ramp-signal-1 = 
ramp-signal-2 = 
ramp-signal-3 = 
ramp-signal-4 = 
ramp-signal-foreground = ${colors.foreground}
[module/volume]
type = internal/volume
format-volume = <ramp-volume> <label-volume>
format-muted = <label-muted>
label-volume = %percentage%
label-muted =  Muted
label-muted-foreground = #aaa
ramp-volume-0 = 
ramp-volume-1 = 
ramp-volume-2 = 
ramp-headphones-0 = 

11
.config/polybar/launch.sh Executable file
View file

@ -0,0 +1,11 @@
#!/usr/bin/env sh
# Terminate already running bar instances
killall -q polybar
# Wait until the processes have been shut down
while pgrep -x polybar >/dev/null; do sleep 1; done
# Launch bar1 and bar2
polybar top &
polybar top2 &

1
.config/polybar/polybar Symbolic link
View file

@ -0,0 +1 @@
/home/severin/.config/polybar

View file

@ -21,31 +21,36 @@ 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
# special
foreground = #a1b0b8
foreground_bold = #a1b0b8
cursor = #a1b0b8
background = #263238
# black
color0 = #252525
color8 = #252525
# red
color1 = #ff5252
color9 = #ff5252
# green
color2 = #c3d82c
color10 = #c3d82c
# yellow
color3 = #ffd740
color11 = #ffd740
# blue
color4 = #40c4ff
color12 = #40c4ff
# magenta
color5 = #ff4081
color13 = #ff4081