Skip to content

Commit

Permalink
Polybar as default for i3-irunix
Browse files Browse the repository at this point in the history
* Polybar is now the default bar for i3 on irunix.
* Compton now has no transparency in menus (wtf?).
* newsboat now opens tabs silently (doesn't focus on qb).
* Major cosmetic changes to polybar to make it look less stupid.
  • Loading branch information
mbfraga committed Dec 1, 2017
1 parent 959500f commit 43ca83a
Show file tree
Hide file tree
Showing 8 changed files with 353 additions and 152 deletions.
10 changes: 5 additions & 5 deletions compton/.config/compton.conf
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ shadow = false;
no-dnd-shadow = true;
no-dock-shadow = true;
clear-shadow = true;
shadow-radius = 7;
shadow-offset-x = -7;
shadow-offset-y = -7;
shadow-radius = 3;
shadow-offset-x = -3;
shadow-offset-y = -3;
# shadow-opacity = 0.7;
# shadow-red = 0.0;
# shadow-green = 0.0;
Expand All @@ -22,13 +22,13 @@ shadow-exclude = [
# xinerama-shadow-crop = true;

# Opacity
menu-opacity = 0.95;
menu-opacity = 1;
inactive-opacity = 1;
active-opacity = 1;
frame-opacity = 1;
inactive-opacity-override = false;
alpha-step = 0.06;
inactive-dim = 0.0;
inactive-dim = 0.0;
# inactive-dim-fixed = true;
# blur-background = true;
# blur-background-frame = true;
Expand Down
110 changes: 56 additions & 54 deletions i3-irunix/.config/i3/config
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ exec ~/opt/Telegram/Telegram -startintray &
#- Compton
exec --no-startup-id compton
bindsym Ctrl+Shift+F12 exec ~/bin/compton-toggle
exec --no-startup-id $HOME/.config/polybar/launch.sh


#=============#
Expand Down Expand Up @@ -386,62 +387,63 @@ set $darkgray #707681
set $urgentcolor #ea4439
set $darkurgent #472b2a

#--[ i3 bar one ]--
bar {
output DP-0.8
status_command i3blocks
position top #<top|bottom>

bindsym button4 nop
bindsym button5 nop
workspace_buttons yes #<yes|no>
hidden_state show #<hide|show>
mode dock #<dock|hide|invisible>
modifier Mod4
tray_output DP-0.8 #none|primary|<output>

font pango:DejaVu Sans Mono 11
tray_padding 2
separator_symbol "|"
colors {
separator $darkgray
background $blackwidget
statusline $fgwhite
focused_workspace $maincolor $maincolor $blackdarkest
active_workspace $blackwidget $blackwidget $maincolor
inactive_workspace $blackwidget $blackwidget $darkgray
urgent_workspace $urgentcolor $blackwidget $urgentcolor
}
}

##--[ i3 bar one ]--
#bar {
# output DP-0.8
# status_command i3blocks
# position top #<top|bottom>
#
# bindsym button4 nop
# bindsym button5 nop
# workspace_buttons yes #<yes|no>
# hidden_state show #<hide|show>
# mode dock #<dock|hide|invisible>
# modifier Mod4
# tray_output DP-0.8 #none|primary|<output>
#
# font pango:DejaVu Sans Mono 11
# tray_padding 2
# separator_symbol "|"
# colors {
# separator $darkgray
# background $blackwidget
# statusline $fgwhite
# focused_workspace $maincolor $maincolor $blackdarkest
# active_workspace $blackwidget $blackwidget $maincolor
# inactive_workspace $blackwidget $blackwidget $darkgray
# urgent_workspace $urgentcolor $blackwidget $urgentcolor
# }
#}

#--[ i3 bar two ]--
bar {
output DVI-D-0
status_command i3blocks
position top #<top|bottom>

bindsym button4 nop
bindsym button5 nop
workspace_buttons yes #<yes|no>
hidden_state show #<hide|show>
mode dock #<dock|hide|invisible>
modifier Mod4
tray_output DP-0.8 #none|primary|<output>

font pango:DejaVu Sans Mono 9
tray_padding 2
separator_symbol "|"
colors {
separator $darkgray
background $blackwidget
statusline $fgwhite
focused_workspace $maincolor $maincolor $blackdarkest
active_workspace $blackwidget $blackwidget $maincolor
inactive_workspace $blackwidget $blackwidget $darkgray
urgent_workspace $urgentcolor $blackwidget $urgentcolor
}

}
#bar {
# output DVI-D-0
# status_command i3blocks
# position top #<top|bottom>
#
# bindsym button4 nop
# bindsym button5 nop
# workspace_buttons yes #<yes|no>
# hidden_state show #<hide|show>
# mode dock #<dock|hide|invisible>
# modifier Mod4
# tray_output DP-0.8 #none|primary|<output>
#
# font pango:DejaVu Sans Mono 9
# tray_padding 2
# separator_symbol "|"
# colors {
# separator $darkgray
# background $blackwidget
# statusline $fgwhite
# focused_workspace $maincolor $maincolor $blackdarkest
# active_workspace $blackwidget $blackwidget $maincolor
# inactive_workspace $blackwidget $blackwidget $darkgray
# urgent_workspace $urgentcolor $blackwidget $urgentcolor
# }
#
#}

#--[ Look ]--
font pango: DejaVu Sans 10
Expand Down
2 changes: 1 addition & 1 deletion newsboat/.config/newsboat/config
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#--[ general ]--
max-items 100
browser qutebrowser
browser "qutebrowser --target tab-silent"
cleanup-on-quit yes
cache-file "~/.config/newsboat/cache.db"
feed-sort-order title-dec
Expand Down
235 changes: 235 additions & 0 deletions polybar-irunix/.config/polybar/config
Original file line number Diff line number Diff line change
@@ -0,0 +1,235 @@
;=====================================================
;
; To learn more about how to configure Polybar
; go to https://github.com/jaagr/polybar
;
; The README contains alot of information
;
;=====================================================

[colors]
;background = ${xrdb:color0:#222}
background = #191a1d
background-alt = #33373e
;foreground = ${xrdb:color7:#222}
foreground = #ece3d0
foreground-alt = #707681
primary = #eac58d
secondary = #446fa6
alert = #ea4439

[bar/example]
;monitor = ${env:MONITOR:HDMI-1}
width = 100%
height = 24
offset-x = 0%
offset-y = 0%
radius = 0.0
fixed-center = true

background = ${colors.background}
foreground = ${colors.foreground}

line-size = 2
line-color = #ece3d0

border-bottom-size = 0
border-color = ${colors.background-alt}

padding-left = 0
padding-right = 0

module-margin-left = 1
module-margin-right = 1

font-0 = "DejaVu Sans Mono:pixelsize=10;1"
font-1 = "FontAwesome:size=10;1"
font-2 = "Symbola:size=10;1"
;font-1 = unifont:fontformat=truetype:size=8:antialias=false;0
;font-2 = siji:pixelsize=10;1

modules-left = bspwm i3
modules-center = mpd
modules-right = eth volume date

tray-position = right
tray-padding = 2
;tray-transparent = true
;tray-background = #0063ff

;wm-restack = bspwm
;wm-restack = i3

;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:…%
format-foreground = ${colors.foreground-alt}



[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}


[module/bspwm]
type = internal/bspwm

label-focused = %index%
label-focused-background = ${colors.background-alt}
label-focused-underline= ${colors.primary}
label-focused-padding = 1

label-occupied = %index%
label-occupied-foreground = ${colors.foreground-alt}
label-occupied-padding = 1

label-urgent = %index%!
label-urgent-background = ${colors.alert}
label-urgent-padding = 1

label-empty = %index%
label-empty-foreground = ${colors.foreground-alt}
label-empty-padding = 1


[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 = 1
label-mode-foreground = #000
label-mode-background = ${colors.alert}

; 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-unfocused = %index%
label-unfocused-padding = ${module/bspwm.label-occupied-padding}
label-unfocused-foreground = ${module/bspwm.label-occupied-foreground}

; visible = Active workspace on unfocused monitor
label-visible = %index%
label-visible-background = ${self.label-focused-background}
label-visible-underline = ${module/bspwm.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
interval = 2
format-online = <label-song>
format-offline =

label-song-maxlen = 60
;label-song-ellipsis = false
format-online-prefix = ""
format-online-prefix-foreground = ${colors.foreground-alt}
label-song = %artist:0:20:…% - %title%
label-song-foreground = ${colors.foreground-alt}


[module/eth]
type = internal/network
interface = enp3s0
interval = 3.0
;udspeed-minwidth = 10
;accumulate-stats = true
;format-connected-underline =
format-connected-prefix = ""
format-connected-prefix-foreground = ${colors.foreground-alt}
label-connected = up

;format-connected = <ramp-signal> <label-connected>
;format-disconnected = <label-disconnected>
;format-disconnected-underline = ${self.format-connected-underline}
label-disconnected = :(
label-disconnected-foreground = ${colors.alert}


[module/date]
type = internal/date
interval = 3

date = "%a %d (%b)"
time = %H:%M
date-alt = "%Y-%m-%d"
time-alt = %H:%M:%S

format-prefix = ""
format-prefix-foreground = ${colors.foreground-alt}
;format-underline = #0a6cf5

label = %date% %time%
;label-font
;label-foreground


[module/volume]
type = internal/volume

master-soundcard = default
master-mixer = Master
;headphone-id = 9
;mapped = true

format-volume = <label-volume>

format-volume-prefix = ""
format-volume-prefix-foreground = ${colors.foreground-alt}
label-volume = %percentage%%


format-muted-prefix = ""
format-muted-prefix-foreground = ${colors.foreground-alt}
label-muted-foreground = ${colors.foreground-alt}
label-muted = "mute"


[settings]
screenchange-reload = true
;compositing-background = xor
;compositing-background = screen
;compositing-foreground = source
;compositing-border = over

[global/wm]
margin-top = 0
margin-bottom = 0

; vim:ft=dosini
Loading

0 comments on commit 43ca83a

Please sign in to comment.