From 690770c13c733fe417f2a3c1ef93f808b52d99c2 Mon Sep 17 00:00:00 2001 From: Ben Morrison Date: Thu, 23 Apr 2020 17:31:05 -0400 Subject: using polybar instead of i3bar --- .config/i3/config | 34 +++--- .config/polybar/config | 269 ++++++++++++++++++++++++++++++++++++++++++++++ .config/polybar/launch.sh | 7 ++ 3 files changed, 295 insertions(+), 15 deletions(-) create mode 100644 .config/polybar/config create mode 100755 .config/polybar/launch.sh (limited to '.config') diff --git a/.config/i3/config b/.config/i3/config index c125c64..483473c 100644 --- a/.config/i3/config +++ b/.config/i3/config @@ -11,6 +11,10 @@ ################################# # AUTOSTART SECTION # ############################### +exec xcompmgr & +exec "sh ~/.fehbg &" +exec_always --no-startup-id $HOME/.config/polybar/launch.sh +exec "redshift -l 34:84 -t 5500:4000 &" exec "pactl upload-sample /usr/share/sounds/freedesktop/stereo/bell.oga x11-bell" exec "pactl load-module module-x11-bell sample=x11-bell display=$DISPLAY" exec "xset b 100" @@ -58,8 +62,8 @@ bindsym XF86AudioLowerVolume exec "amixer -D pulse sset Master 5%-" bindsym XF86AudioRaiseVolume exec "amixer -D pulse sset Master 5%+" bindsym XF86AudioMicMute exec "amixer -D pulse sset Mic toggle" #bindsym XF86Sleep exec dmenu_run -bindsym XF86MonBrightnessDown exec "xbacklight -dec 10" -bindsym XF86MonBrightnessUp exec "xbacklight -inc 10" +bindsym XF86MonBrightnessDown exec "backlight -5" +bindsym XF86MonBrightnessUp exec "backlight 5" #bindsym $mod+c exec "xterm -e cataclysm" #bindsym $mod+t exec "xterm -e tf" @@ -200,21 +204,21 @@ bindsym $mod+r mode "resize" # Start i3bar to display a workspace bar (plus the system information i3status # finds out, if available) -bar { - status_command i3status +#bar { +# status_command i3status # position top # mode hide - font pango:Fira Code 9 - colors { - separator #7d7d7d - background #141414 - statusline #00b0ef - focused_workspace #00b0ef #141414 #00b0ef - active_workspace #141414 #141414 #00b0ef - inactive_workspace #141414 #141414 #7d7d7d - urgent_workspace #ff7066 #141414 #ff7066 - } -} +# font pango:Fira Code 9 +# colors { +# separator #7d7d7d +# background #141414 +# statusline #00b0ef +# focused_workspace #00b0ef #141414 #00b0ef +# active_workspace #141414 #141414 #00b0ef +# inactive_workspace #141414 #141414 #7d7d7d +# urgent_workspace #ff7066 #141414 #ff7066 +# } +#} new_window pixel 1 new_float pixel 1 diff --git a/.config/polybar/config b/.config/polybar/config new file mode 100644 index 0000000..c26b19f --- /dev/null +++ b/.config/polybar/config @@ -0,0 +1,269 @@ +[bar/i3_bar] +width = 100% +height = 20 +radius = 0 +fixed-center = false + +background = #272827 +foreground = #657b83 + +line-size = 3 +line-color = + +border-size = 0 +border-color = + +padding-left = 0 +padding-right = 2 + +module-margin-left = 1 +module-margin-right = 2 + +font-0 = "Source Code Pro Semibold:size=10;1" +font-1 = "Font Awesome 5 Free:style=Solid:size=10;1" +font-2 = "Font Awesome 5 Brands:size=10;1" + +modules-left = i3 +modules-center = +modules-right = cpu memory batt1 batt0 wlan eth date + +tray-position = +;tray-padding = +;wm-restack = i3 +;override-redirect = true + +cursor-click = pointer +cursor-scroll = ns-resize + +[module/i3] +type = internal/i3 +format = +index-sort = true +wrapping-scroll = false + +label-mode-padding = 2 +label-mode-foreground = #657b83 +label-mode-background = #272827 + +label-focused = %index% +label-focused-background = #4E524F +label-focused-foreground = #272827 +label-focused-padding = 2 + +label-unfocused = %index% +label-unfocused-background = #7E807E +label-unfocused-foreground = #272827 +label-unfocused-padding = 2 + +label-visible = %index% +label-visible-background = #7E807E +label-visible-foreground = #272827 +label-visible-padding = 2 + +label-urgent = %index% +label-urgent-background = #BA2922 +label-urgent-padding = 2 + +[module/batt1] +type = internal/battery +full-at = 98 + +battery = BAT1 +adapter = AC + +format-charging = +format-discharging = +format-full = + +label-charging = %percentage%% %time%h +label-discharging = %percentage%% %time%h +ramp-capacity-0 =  +ramp-capacity-0-foreground = #f53c3c +ramp-capacity-1 =  +ramp-capacity-1-foreground = #ffa900 +ramp-capacity-2 =  +ramp-capacity-3 =  +ramp-capacity-4 =  + +bar-capacity-width = 10 +bar-capacity-format = %{+u}%{+o}%fill%%empty%%{-u}%{-o} +bar-capacity-fill = █ +bar-capacity-fill-foreground = #ddffffff +bar-capacity-fill-font = 3 +bar-capacity-empty = █ +bar-capacity-empty-font = 3 +bar-capacity-empty-foreground = #44ffffff + +animation-charging-0 =  +animation-charging-1 =  +animation-charging-2 =  +animation-charging-3 =  +animation-charging-4 =  +animation-charging-framerate = 750 + +[module/batt0] +type = internal/battery +full-at = 98 + +battery = BAT0 +adapter = AC + +format-charging = +format-discharging = +format-full = + +label-charging = %percentage%% %time%h +label-discharging = %percentage%% %time%h +ramp-capacity-0 =  +ramp-capacity-0-foreground = #f53c3c +ramp-capacity-1 =  +ramp-capacity-1-foreground = #ffa900 +ramp-capacity-2 =  +ramp-capacity-3 =  +ramp-capacity-4 =  + +bar-capacity-width = 10 +bar-capacity-format = %{+u}%{+o}%fill%%empty%%{-u}%{-o} +bar-capacity-fill = █ +bar-capacity-fill-foreground = #ddffffff +bar-capacity-fill-font = 3 +bar-capacity-empty = █ +bar-capacity-empty-font = 3 +bar-capacity-empty-foreground = #44ffffff + +animation-charging-0 =  +animation-charging-1 =  +animation-charging-2 =  +animation-charging-3 =  +animation-charging-4 =  +animation-charging-framerate = 750 + +[module/cpu] +type = internal/cpu +interval = 0.5 +format =