summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Holman <dholman@gymli.org>2018-10-24 20:43:07 -0500
committerDaniel Holman <dholman@gymli.org>2018-10-24 20:43:07 -0500
commit3c617f833f81d203fe174e0dfe2b13eafe261e33 (patch)
tree124e8f6bf31df887329ee68d17f4b63dbbc26475
parent059d4dc9908047c5e59e03d7048723fce3fe433b (diff)
Added powerline stuffs to polybar
-rw-r--r--.config/i3/config38
-rw-r--r--.config/polybar/config568
2 files changed, 282 insertions, 324 deletions
diff --git a/.config/i3/config b/.config/i3/config
index 493eb7f..44edc4d 100644
--- a/.config/i3/config
+++ b/.config/i3/config
@@ -17,7 +17,7 @@ set $mod Mod4
# 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
+#font pango:DejaVu Sans Mono 8
# Before i3 v4.8, we used to recommend this one as the default:
# font -misc-fixed-medium-r-normal--13-120-75-75-C-70-iso10646-1
@@ -26,6 +26,9 @@ font pango:DejaVu Sans Mono 8
# X core fonts rendering does not support right-to-left and this being a bitmap
# font, it doesn’t scale on retina/hidpi displays.
+# My font
+font pango:xos4 Terminus 12
+
# Use Mouse+$mod to drag floating windows to their wanted position
floating_modifier $mod
@@ -36,11 +39,11 @@ bindsym $mod+Return exec i3-sensible-terminal
bindsym $mod+Shift+q kill
# start dmenu (a program launcher)
-bindsym $mod+d exec i3-dmenu-desktop
+# bindsym $mod+d exec dmenu
# There also is the (new) i3-dmenu-desktop which only displays applications
# shipping a .desktop file. It is a wrapper around dmenu, so you need that
# installed.
-# bindsym $mod+d exec --no-startup-id i3-dmenu-desktop
+ bindsym $mod+d exec --no-startup-id i3-dmenu-desktop
# alternatively, you can use the cursor keys:
bindsym $mod+Left focus left
@@ -164,26 +167,33 @@ bindsym $mod+Shift+s mode "$mode_system"
bindsym $mod+Tab workspace next
bindsym $mod+Shift+Tab workspace prev
+# Colors
+set $bg-color #2f343f
+set $inactive-bg-color #2f343f
+set $text-color #f3f3f5
+set $inactive-text-color #676e7d
+set $urgent-bg-color #e53935
+
# Gap stuff
-hide_edge_borders both
-new_window 1pixel
-gaps inner 15
-gaps outer 15
+#hide_edge_borders both
+#new_window 1pixel
+#gaps inner 15
+#gaps outer 15
+
+# Make displays nice
+#exec --no-startup-id xrandr --output HDMI-0 --mode 1920x1080 --output DVI-I-0 --right-of HDMI-0
# Start helpful programs
+exec --no-startup-id wal -i "$HOME/Pictures/wal/"
exec --no-startup-id polybar -r main0
-exec --no-startup-id polybar -r main1
-exec --no-startup-id polybar -r main2
-exec --no-startup-id redshift-gtk
-exec --no-startup-id xset dpms 600
-exec --no-startup-id xautolock -time 10 -locker "i3lock -c 000000"
-exec --no-startup-id alsactl --file ~/.config/asound.state restore
+exec --no-startup-id redshift
+exec --no-startup-id xautolock -time 5 -locker "i3lock -c 000000"
exec --no-startup-id nitrogen --restore
exec --no-startup-id compton
exec --no-startup-id dex -a
# Play nice with Steam windows
-for_window [class="^Steam$" title="^Friends List$"] floating enable
+for_window [class="^Steam$" title="^Friends & Chat$"] floating enable
for_window [class="^Steam$" title="Steam - News"] floating enable
for_window [class="^Steam$" title=".* - Chat"] floating enable
for_window [class="^Steam$" title=".* - event started"] floating enable
diff --git a/.config/polybar/config b/.config/polybar/config
index cd0cc2a..edb9e87 100644
--- a/.config/polybar/config
+++ b/.config/polybar/config
@@ -1,219 +1,163 @@
-;=====================================================
-;
-; To learn more about how to configure Polybar
-; go to https://github.com/jaagr/polybar
-;
-; The README contains alot of information
-;
-;=====================================================
+; Skillet's polybar config
[colors]
-;background = ${xrdb:color0:#222}
-background = #222
-background-alt = #444
-;foreground = ${xrdb:color7:#222}
-foreground = #dfdfdf
-foreground-alt = #555
-primary = #ffb52a
-secondary = #e60053
+peach = #FFCD98
+lime = #CADC79
+salmon = #d97464
+darkgrey = #2e2e2e
+lightgrey = #444444
alert = #bd2c40
+xcolor0 = ${xrdb:color0}
+xcolor1 = ${xrdb:color1}
+xcolor2 = ${xrdb:color2}
+xcolor3 = ${xrdb:color3}
+xcolor4 = ${xrdb:color4}
+xcolor5 = ${xrdb:color5}
+xcolor6 = ${xrdb:color6}
+xcolor7 = ${xrdb:color7}
+xcolor8 = ${xrdb:color8}
+xcolor9 = ${xrdb:color9}
+xcolor10 = ${xrdb:color10}
+xcolor11 = ${xrdb:color11}
+xcolor12 = ${xrdb:color12}
+xcolor13 = ${xrdb:color13}
+xcolor14 = ${xrdb:color14}
+xcolor15 = ${xrdb:color15}
+background = ${xrdb:background}
+foreground = ${xrdb:foreground}
+
+; Global
+
+[global/wm]
+margin-top = 5
+margin-bottom = 5
+
[bar/main0]
-monitor = ${env:MONITOR:DVI-I-0}
+;monitor = ${env:MONITOR:HDMI-0}
+monitor = ${env:MONITOR:eDP1}
width = 100%
height = 27
-;offset-x = 1%
-;offset-y = 1%
-radius = 6.0
-fixed-center = false
-enable-rpc = true
-
-background = ${colors.background}
-foreground = ${colors.foreground}
-
-line-size = 3
-line-color = #f00
-
-border-size = 4
-border-color = #00000000
-
+bottom = false
+offset-x = 0%
+offset-y = 0%
+fixed-center = true
+background = ${colors.xcolor0}
+foreground = ${colors.xcolor1}
+
+overline-size = 0
+overline-color = ${colors.xcolor7}
+underline-size = 0
+underline-color = ${colors.xcolor7}
+
+border-bottom-size = 0
+border-bottom-color = ${colors.xcolor7}
+border-top-size = 0
+border-top-color = ${colors.xcolor7}
+border-color-foreground = ${colors.peach}
+
+spacing = 0
padding-left = 0
-padding-right = 2
-
-module-margin-left = 1
-module-margin-right = 2
-
-font-0 = fixed:pixelsize=10;1
-font-1 = unifont:fontformat=truetype:size=8:antialias=false;0
-font-2 = siji:pixelsize=10;1
-
-modules-left = i3
-modules-center =
-modules-right = filesystem volume memory cpu battery temperature date
-
-tray-position = right
+padding-right = 0
+module-margin-left = 0
+module-margin-right = 0
+
+; Fonts
+font-0 = PowerlineSymbols:size=15;3
+font-1 = xos4 Terminus:size=12;1
+font-2 = FontAwesome:size=10;2
+font-3 = xos4 Terminus:size=18;0
+font-4 = Monospace:size=28;3
+font-5 = FontAwesome:size=26;7
+
+; System tray
+tray-position = left
tray-padding = 2
tray-transparent = false
-;tray-background = #0063ff
-
-;wm-restack = bspwm
-;wm-restack = i3
+tray-background = ${colors.xcolor7}
-;override-redirect = true
+; Module layouts
+modules-left = RightArrow2 i3 RightArrow1 RightStripe RightArrow1
+modules-center =
+modules-right = arrow1 LeftStripe arrow1 filesystem arrow2 volume arrow3 cpu arrow2 memory
-;scroll-up = bspwm-desknext
-;scroll-down = bspwm-deskprev
-
-;scroll-up = i3wm-wsnext
-;scroll-down = i3wm-wsprev
[bar/main1]
-monitor = ${env:MONITOR:HDMI-0}
-width = 100%
-height = 27
-;offset-x = 1%
-;offset-y = 1%
-radius = 6.0
-fixed-center = false
-enable-rpc = true
-
-background = ${colors.background}
-foreground = ${colors.foreground}
-
-line-size = 3
-line-color = #f00
-
-border-size = 4
-border-color = #00000000
-
-padding-left = 0
-padding-right = 2
-
-module-margin-left = 1
-module-margin-right = 2
-
-font-0 = fixed:pixelsize=10;1
-font-1 = unifont:fontformat=truetype:size=8:antialias=false;0
-font-2 = siji:pixelsize=10;1
-
-modules-left = i3
-modules-center =
-modules-right = filesystem volume memory cpu battery temperature date
-
-;tray-position = right
-;tray-padding = 2
-;tray-transparent = true
-;tray-background = #0063ff
-
-;wm-restack = bspwm
-;wm-restack = i3
+inherit = bar/main0
+monitor = ${env:MONITOR:DVI-I-1}
+tray-position = none
-;override-redirect = true
-
-;scroll-up = bspwm-desknext
-;scroll-down = bspwm-deskprev
-
-;scroll-up = i3wm-wsnext
-;scroll-down = i3wm-wsprev
-
-[module/xwindow]
-type = internal/xwindow
-label = %title:0:30:...%
+[bar/main2]
+inherit = bar/main0
+monitor = ${env:MONITOR:HDMI-1-2}
+tray-position = none
-[module/xkeyboard]
-type = internal/xkeyboard
-blacklist-0 = num lock
-
-format-prefix = " "
-format-prefix-foreground = ${colors.foreground-alt}
-format-prefix-underline = ${colors.secondary}
-
-label-layout = %layout%
-label-layout-underline = ${colors.secondary}
-
-label-indicator-padding = 2
-label-indicator-margin = 1
-label-indicator-background = ${colors.secondary}
-label-indicator-underline = ${colors.secondary}
+; Modules
[module/filesystem]
type = internal/fs
interval = 25
+fixed-values = true
mount-0 = /
+;mount-1 = /home
-label-mounted = %{F#0a81f5}%mountpoint%%{F-}: %percentage_used%%
-label-unmounted = %mountpoint% not mounted
-label-unmounted-foreground = ${colors.foreground-alt}
-
-[module/bspwm]
-type = internal/bspwm
-
-label-focused = %index%
-label-focused-background = ${colors.background-alt}
-label-focused-underline= ${colors.primary}
-label-focused-padding = 2
-
-label-occupied = %index%
-label-occupied-padding = 2
-
-label-urgent = %index%!
-label-urgent-background = ${colors.alert}
-label-urgent-padding = 2
+format-mounted = RootFS <label-mounted>
+format-mounted-foreground = ${colors.xcolor7}
+format-mounted-background = ${colors.xcolor1}
-label-empty = %index%
-label-empty-foreground = ${colors.foreground-alt}
-label-empty-padding = 2
+;  
+label-mounted = "  %percentage_used%%"
+; %free%% %percentage_used%% %used%
+label-mounted-foreground = ${colors.xcolor7}
+label-mounted-background = ${colors.xcolor1}
+label-unmounted =   %mountpoint%
+label-unmounted-foreground = ${colors.xcolor7}
+label-unmounted-background = ${colors.xcolor1}
[module/i3]
type = internal/i3
format = <label-state> <label-mode>
index-sort = true
wrapping-scroll = false
-
-; Only show workspaces on the same output as the bar
pin-workspaces = true
-
-label-mode-padding = 2
-label-mode-foreground = #000
-label-mode-background = ${colors.primary}
-
-; Create scroll handlers used to cycle workspaces
enable-scroll = true
-; focused = Active workspace on focused monitor
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}
-
-; unfocused = Inactive workspace on any monitor
+label-focused-foreground = ${colors.xcolor7}
+label-focused-background = ${colors.xcolor1}
+label-focused-underline = 1
+label-focused-padding = 2
+label-focused-font = 3
label-unfocused = %index%
-label-unfocused-padding = ${module/bspwm.label-occupied-padding}
-
-; visible = Active workspace on unfocused monitor
+label-unfocused-padding = 2
+label-unfocused-foreground = ${colors.xcolor7}
+label-unfocused-background = ${colors.xcolor0}
+label-occupied = %index%
+label-occupied-foreground = ${colors.xcolor0}
+label-occupied-background = ${colors.xcolor1}
+label-occupied-padding = 2
+label-occupied-font = 3
+label-urgent = %index%
+label-urgent-foreground = ${colors.xcolor4}
+label-urgent-background = ${colors.xcolor1}
+label-urgent-padding = 2
+label-urgent-font = 3
+label-empty = %index%
+label-empty-foreground = ${colors.xcolor0}
+label-empty-background = ${colors.xcolor1}
+label-empty-padding = 2
+label-empty-font = 3
label-visible = %index%
label-visible-background = ${self.label-focused-background}
label-visible-underline = ${self.label-focused-underline}
label-visible-padding = ${self.label-focused-padding}
-; urgent = Workspace with urgency hint set
-label-urgent = %index%
-label-urgent-background = ${module/bspwm.label-urgent-background}
-label-urgent-padding = ${module/bspwm.label-urgent-padding}
-
-[module/mpd]
-type = internal/mpd
-format-online = <label-song> <icon-prev> <icon-stop> <toggle> <icon-next>
-
-icon-prev = 
-icon-stop = 
-icon-play = 
-icon-pause = 
-icon-next = 
+[module/xwindow]
+type = internal/xwindow
-label-song-maxlen = 25
-label-song-ellipsis = true
+format-foreground = ${colors.xcolor1}
+format-background = ${colors.xcolor0}
[module/xbacklight]
type = internal/xbacklight
@@ -241,84 +185,68 @@ card = intel_backlight
type = internal/cpu
interval = 2
format-prefix = " "
-format-prefix-foreground = ${colors.foreground-alt}
-format-underline = #f90000
-label = %percentage%%
+format-foreground = ${colors.xcolor7}
+format-background = ${colors.xcolor1}
+label = CPU %percentage%%
[module/memory]
type = internal/memory
interval = 2
format-prefix = " "
-format-prefix-foreground = ${colors.foreground-alt}
-format-underline = #4bffdc
-label = %percentage_used%%
-
-[module/wlan]
-type = internal/network
-interface = wlp6s0
-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-alt}
-
-ramp-signal-0 = 
-ramp-signal-1 = 
-ramp-signal-2 = 
-ramp-signal-3 = 
-ramp-signal-4 = 
-ramp-signal-foreground = ${colors.foreground-alt}
-
-[module/eth]
-type = internal/network
-interface = enp3s0
-interval = 3.0
-
-format-connected-underline = #55aa55
-format-connected-prefix = " "
-format-connected-prefix-foreground = ${colors.foreground-alt}
-label-connected = %local_ip%
-
-format-disconnected =
-;format-disconnected = <label-disconnected>
-;format-disconnected-underline = ${self.format-connected-underline}
-;label-disconnected = %ifname% disconnected
-;label-disconnected-foreground = ${colors.foreground-alt}
+format-foreground = ${colors.xcolor1}
+format-background = ${colors.xcolor7}
+format-margin-top = -5
+
+label = MEM %percentage_used%%
[module/date]
type = internal/date
-interval = 5
+interval = 1
-date =
+date = " %Y/%m/%d"
date-alt = " %Y-%m-%d"
time = %H:%M
-time-alt = %H:%M:%S
+time-alt = " %I:%M:%S %p"
-format-prefix = 
-format-prefix-foreground = ${colors.foreground-alt}
-format-underline = #0a6cf5
+format-foreground = ${colors.xcolor7}
+format-background = ${colors.xcolor1}
label = %date% %time%
[module/volume]
-type = internal/alsa
-
-format-volume = <label-volume> <bar-volume>
-label-volume = VOL
-label-volume-foreground = ${root.foreground}
-
-format-muted-prefix = " "
-format-muted-foreground = ${colors.foreground-alt}
-label-muted = sound muted
+type = internal/volume
+
+master-soundcard = default
+speaker-soundcard = default
+headphone-soundcard = default
+mapping = true
+
+format-volume = <label-volume>
+;     
+
+label-volume = VOL %percentage%
+label-volume-foreground = ${colors.xcolor1}
+label-volume-background = ${colors.xcolor7}
+label-muted = "  muted"
+label-muted-foreground = ${colors.xcolor7}
+label-muted-background = ${colors.xcolor1}
+
+ramp-volume-0 = "  "
+ramp-volume-0-foreground = ${colors.xcolor7}
+ramp-volume-0-background = ${colors.xcolor1}
+ramp-volume-1 = "  "
+ramp-volume-1-foreground = ${colors.xcolor7}
+ramp-volume-1-background = ${colors.xcolor1}
+ramp-volume-2 = "  "
+ramp-volume-2-foreground = ${colors.xcolor7}
+ramp-volume-2-background = ${colors.xcolor1}
+ramp-volume-3 = "  "
+ramp-volume-3-foreground = ${colors.xcolor7}
+ramp-volume-3-background = ${colors.xcolor1}
bar-volume-width = 10
+bar-volume-background = #495858
bar-volume-foreground-0 = #55aa55
bar-volume-foreground-1 = #55aa55
bar-volume-foreground-2 = #55aa55
@@ -326,87 +254,113 @@ bar-volume-foreground-3 = #55aa55
bar-volume-foreground-4 = #55aa55
bar-volume-foreground-5 = #f5a70a
bar-volume-foreground-6 = #ff5555
-bar-volume-gradient = false
-bar-volume-indicator = |
-bar-volume-indicator-font = 2
+bar-volume-gradient = true
+bar-volume-indicator = "|"
bar-volume-fill = ─
-bar-volume-fill-font = 2
bar-volume-empty = ─
-bar-volume-empty-font = 2
-bar-volume-empty-foreground = ${colors.foreground-alt}
[module/battery]
type = internal/battery
+; To list battery & adapter: $ ls -1 /sys/class/power_supply/
battery = BAT0
-adapter = AC
-full-at = 98
+adapter = AC0
+full-at = 99
format-charging = <animation-charging> <label-charging>
-format-charging-underline = #ffb52a
-
+format-charging-foreground = ${colors.xcolor7}
+format-charging-background = ${colors.xcolor1}
format-discharging = <ramp-capacity> <label-discharging>
-format-discharging-underline = ${self.format-charging-underline}
-
-format-full-prefix = " "
-format-full-prefix-foreground = ${colors.foreground-alt}
-format-full-underline = ${self.format-charging-underline}
-
-ramp-capacity-0 = 
-ramp-capacity-1 = 
-ramp-capacity-2 = 
-ramp-capacity-foreground = ${colors.foreground-alt}
-
-animation-charging-0 = 
-animation-charging-1 = 
-animation-charging-2 = 
-animation-charging-foreground = ${colors.foreground-alt}
+format-discharging-foreground = ${colors.xcolor7}
+format-discharging-background = ${colors.xcolor1}
+format-full = <label-full>
+format-full-foreground = ${colors.xcolor7}
+format-full-background = ${colors.xcolor1}
+
+label-charging = "%percentage%% "
+label-discharging = "%percentage%% "
+label-discharging-foreground = ${colors.xcolor7}
+label-full = "  %percentage%% "
+; 
+ramp-capacity-0 = " "
+ramp-capacity-0-foreground = ${colors.xcolor4}
+ramp-capacity-1 = " "
+ramp-capacity-1-foreground = ${colors.xcolor4}
+ramp-capacity-2 = " "
+ramp-capacity-3 = " "
+ramp-capacity-4 = " "
+animation-charging-0 = " "
+animation-charging-1 = " "
+animation-charging-2 = " "
+animation-charging-3 = " "
+animation-charging-4 = " "
animation-charging-framerate = 750
-[module/temperature]
-type = internal/temperature
-thermal-zone = 0
-warn-temperature = 60
-
-format = <ramp> <label>
-format-underline = #f50a4d
-format-warn = <ramp> <label-warn>
-format-warn-underline = ${self.format-underline}
-
-label = %temperature%
-label-warn = %temperature%
-label-warn-foreground = ${colors.secondary}
-
-ramp-0 = 
-ramp-1 = 
-ramp-2 = 
-ramp-foreground = ${colors.foreground-alt}
-
-[module/powermenu]
-type = custom/menu
-
-format-spacing = 1
-
-label-open = 
-label-open-foreground = ${colors.secondary}
-label-close =  cancel
-label-close-foreground = ${colors.secondary}
-label-separator = |
-label-separator-foreground = ${colors.foreground-alt}
-
-menu-0-0 = reboot
-menu-0-0-exec = menu-open-1
-menu-0-1 = power off
-menu-0-1-exec = menu-open-2
-
-menu-1-0 = cancel
-menu-1-0-exec = menu-open-0
-menu-1-1 = reboot
-menu-1-1-exec = sudo reboot
-
-menu-2-0 = power off
-menu-2-0-exec = sudo poweroff
-menu-2-1 = cancel
-menu-2-1-exec = menu-open-0
+[module/pipe]
+type = custom/text
+content = "|"
+content-foreground = ${colors.darkgrey}
+content-background = ${colors.xcolor0}
+content-padding = 1
+
+[module/LeftStripe]
+type = custom/text
+content = ""
+content-foreground = ${colors.xcolor0}
+content-background = ${colors.xcolor1}
+
+[module/arrow1]
+type = custom/text
+content = ""
+content-foreground = ${colors.xcolor1}
+content-background = ${colors.xcolor0}
+
+[module/arrow2]
+type = custom/text
+content = " "
+content-foreground = ${colors.xcolor7}
+content-background = ${colors.xcolor1}
+
+[module/arrow3]
+type = custom/text
+content = " "
+content-foreground = ${colors.xcolor1}
+content-background = ${colors.xcolor7}
+
+[module/RightStripe]
+type = custom/text
+content = ""
+content-foreground = ${colors.xcolor0}
+content-background = ${colors.xcolor1}
+
+[module/RightArrow1]
+type = custom/text
+content = ""
+content-foreground = ${colors.xcolor1}
+content-background = ${colors.xcolor0}
+
+[module/RightArrow2]
+type = custom/text
+content = ""
+content-foreground = ${colors.xcolor7}
+content-background = ${colors.xcolor1}
+
+[module/RightArrow3]
+type = custom/text
+content = ""
+content-foreground = ${colors.xcolor1}
+content-background = ${colors.xcolor7}
+
+[module/MiddleArrowLeft]
+type = custom/text
+content = "◥"
+content-foreground = ${colors.xcolor1}
+content-background = ${colors.xcolor0}
+;◥ ◤◢ ◣
+[module/MiddleArrowRight]
+type = custom/text
+content = "◢"
+content-foreground = ${colors.xcolor0}
+content-background = ${colors.xcolor1}
[settings]
screenchange-reload = true
@@ -414,9 +368,3 @@ screenchange-reload = true
;compositing-background = screen
;compositing-foreground = source
;compositing-border = over
-
-[global/wm]
-margin-top = 5
-margin-bottom = 5
-
-; vim:ft=dosini