diff --git a/i3/config b/i3/config index 1ac059d..84bdb9d 100644 --- a/i3/config +++ b/i3/config @@ -167,24 +167,6 @@ mode "resize" { bindsym $mod+r mode "resize" -# Start i3bar to display a workspace bar (plus the system information i3status -# finds out, if available) -bar { - position top - status_command i3status - font pango: NimbusSans Bold 13 - colors{ - background #000000 - statusline #0288D1 - - focused_workspace #0288D1 #0288D1 #B3E5FC - active_workspace #212121 #212121 #0288D1 - inactive_workspace #212121 #212121 #0288D1 - urgent_workspace #E91E63 #E91E63 #FFCDD2 - binding_mode #E91E63 #E91E63 #FFCDD2 - } -} - # Screen brightness controls bindsym XF86MonBrightnessUp exec light -A 5 # increase screen brightness bindsym XF86MonBrightnessDown exec light -U 5 # decrease screen brightness @@ -198,6 +180,9 @@ bindsym XF86AudioMute exec amixer set Master toggle # mute sound bindsym $mod+Shift+u exec sh ~/.config/i3/trackpad-toggle.sh exec --no-startup-id ~/.config/i3/trackpad-toggle.sh & +# Start bar +exec --no-startup-id polybar -r aqua + # lockscreen bindsym $mod+Shift+h exec sh ~/.config/i3/lock.sh @@ -215,4 +200,4 @@ for_window [class="^.*"] border pixel 1 new_window 1pixel #new_window normal 0 px -bindsym $mod+Shift+s exec scrot -b -d 5 '%Y:%m:%d:%H:%M:%S.png' -e 'mv $f ~/Desktop/' \ No newline at end of file +bindsym $mod+Shift+s exec scrot -b -d 5 '%Y:%m:%d:%H:%M:%S.png' -e 'mv $f ~/Desktop/' diff --git a/polybar/config b/polybar/config new file mode 100644 index 0000000..ebb3a44 --- /dev/null +++ b/polybar/config @@ -0,0 +1,111 @@ +[colors] +black = #000000 +blue = #0288D1 +blue-light = #B3E5FC +pink = #E91E63 +pink-light = #FFCDD2 +alert = #E91E63 + + +[bar/aqua] +width = 100% +height = 24 +radius = 0.0 +fixed-center = true + +background = ${colors.black} +foreground = ${colors.blue} + +line-size = 3 +line-color = #f00 + +border-size = 0 +border-color = #000000 + +padding-left = 0 +padding-right = 2 + +module-margin-left = 1 +module-margin-right = 2 + +font-0 = NimbusSans:bold:fixed:pixelsize=14;1 +font-1 = unifont:fontformat=truetype:size=8:antialias=false;0 +font-2 = siji:pixelsize=10;1+e + +modules-left = bspwm i3 +modules-center = xwindow +modules-right = battery date + +tray-position = right +tray-padding = 2 + +[module/xwindow] +type = internal/xwindow +label = %title:0:60:...% + +[module/bspwm] +type = internal/bspwm + +label-focused = %index% +label-focused-background = ${colors.black} +label-focused-underline= ${colors.pink} +label-focused-padding = 2 + +label-occupied = %index% +label-occupied-padding = 2 + +label-urgent = %index%! +label-urgent-background = ${colors.alert} +label-urgent-padding = 2 + +label-empty = %index% +label-empty-foreground = ${colors.foreground-alt} +label-empty-padding = 2 + +[module/i3] +type = internal/i3 +format = +index-sort = true +wrapping-scroll = false + +label-mode-padding = 2 +label-mode-foreground = #000 +label-mode-background = ${colors.pink} + +label-focused = %index% +label-focused-background = ${module/bspwm.label-focused-background} +label-focused-underline = ${module/bspwm.label-focused-underline} +label-focused-padding = ${module/bspwm.label-focused-padding} + +label-unfocused = %index% +label-unfocused-padding = ${module/bspwm.label-occupied-padding} + +label-visible = %index% +label-visible-background = ${self.label-focused-background} +label-visible-underline = ${self.label-focused-background} +label-visible-padding = ${self.label-focused-padding} + +label-urgent = %index%! +label-urgent-background = ${module/bspwm.label-urgent-background} +label-urgent-padding = ${module/bspwm.label-urgent-padding} + +[module/date] +type = internal/date +interval = 1.0 +date = +date-alt = %m-%d-%Y +time = %I:%M +time-alt = %I:%M:%S +label = %date% %time% +format-underline = ${colors.blue} + +[settings] +screenchange-reload = true +;compositing-background = xor +;compositing-background = screen +;compositing-foreground = source +;compositing-border = over + +[global/wm] +margin-top = 0 +margin-bottom = 0