polybar and i3: FontAwesome5

This commit is contained in:
Tristaan
2018-01-27 14:32:05 +01:00
parent 4250191d46
commit cc02c6e367
4 changed files with 46 additions and 29 deletions

View File

@@ -36,7 +36,7 @@ bright_white = '0xd7d7d7'
[bar/top]
monitor = ${env:MONITOR}
width = 100%
height = 26
height = 30
;offset-x = 1%
;offset-y = 1%
radius = 0
@@ -45,7 +45,7 @@ fixed-center = false
background = ${colors.background}
foreground = ${colors.foreground}
line-size = 3
line-size = 2
line-color = #f00
border-size = 0
@@ -58,11 +58,12 @@ module-margin-left = 0
module-margin-right = 1
font-0 = "xos4 Terminus:pixelsize=16"
font-1 = FontAwesome:pixelsize=16;1
font-1 = "Font Awesome 5 Free:style=Solid:pixelsize=16;1"
font-2 = "Font Awesome 5 Brands:style=Solid:pixelsize=16;1"
modules-left = i3
modules-center = xwindow
modules-right = filesystem network volume battery xkeyboard cpu memory date powermenu
modules-right = filesystem wired-network wireless-network volume battery xkeyboard cpu memory date powermenu
tray-position = right
tray-padding = 2
@@ -174,7 +175,7 @@ bar-used-fill = ▐
bar-used-empty = ▐
bar-used-empty-foreground = ${colors.foreground-alt}
[module/network]
[module/wireless-network]
type = internal/network
interface = wlp3s0
interval = 1.0
@@ -204,6 +205,29 @@ animation-packetloss-1-foreground = ${colors.black}
; Framerate in milliseconds
animation-packetloss-framerate = 500
[module/wired-network]
type = internal/network
interface = enp4s0
interval = 1.0
udspeed-minwidth = 5
accumulate-stats = true
format-connected = <label-connected>
format-disconnected = <label-disconnected>
format-packetloss = <animation-packetloss> <label-connected>
label-connected = %local_ip%%downspeed:9%
label-connected-foreground = ${colors.green}
label-disconnected = %ifname%
label-disconnected-foreground = ${colors.bright_red}
; Only applies if <animation-packetloss> is used
animation-packetloss-0 = 
animation-packetloss-0-foreground = ${colors.yellow}
animation-packetloss-1 = 
animation-packetloss-1-foreground = ${colors.black}
; Framerate in milliseconds
animation-packetloss-framerate = 500
[module/battery]
type = internal/battery
full-at = 99

View File

@@ -1,4 +1,4 @@
':/home/tristan/Downloads
':/media/Downloads/Old Linux Games (x86)/Heavy Metal FAKK2
v:/home/tristan/build/rineja/app/views
a:/home/tristan/build/rineja/app/assets
c:/home/tristan/build/rineja/app/controllers

View File

@@ -2,11 +2,11 @@
#exec --no-stratup-id xrandr --output eDP1 --primary --auto
exec --no-startup-id xrandr --output HDMI-0 --auto --mode 2048x1152 --primary
exec_always --no-startup-id $HOME/.i3/scripts/polybar_launch.sh
exec_always --no-startup-id compton -G -b
exec --no-startup-id mplayer -fs ~/.i3/boot.mp4
exec --no-startup-id compton -G -b
exec --no-startup-id mplayer -fs $HOME/.i3/boot.mp4
exec --no-startup-id conky -c $HOME/.config/conky/conkyrc
exec --no-startup-id xset -dpms && xset s noblank && xset s noexpose && xset dpms 600 1800 360
exec --no-startup-id xautolock -time 10 -locker ~/.i3/scripts/locker.sh
exec --no-startup-id xautolock -time 10 -locker $HOME/.i3/scripts/locker.sh
exec --no-startup-id xautolock -locknow
#DAEMONS
#exec --no-startup-id urxvtd -q
@@ -20,11 +20,9 @@ exec --no-startup-id dunst
exec --no-startup-id blueman-applet
#Layout
exec setxkbmap us altgr-intl
exec xmodmap ~/.i3/custom.map
# US brackets on slovene special characters
#exec xmodmap ~/.i3/custom.map
exec xmodmap $HOME/.i3/custom.map
font pango: FontAwesome, xos4 Terminus 12
font pango: Font Awesome 5 Free, Font Awesome 5 Brands, xos4 Terminus 12
#--APPEARANCE--#
@@ -58,6 +56,7 @@ for_window [class=".*"] title_format "-> %title"
for_window [class="Pavucontrol"] floating enable
for_window [class="octopi"] floating enable
for_window [class="lxappearance"] floating enable
for_window [class="mojo"] floating enable
for_window [title="Hold On*"] floating enable
for_window [title="Cerebro*"] floating enable
for_window [title="florence"] floating enable
@@ -147,7 +146,7 @@ workspace $WS1 output primary
#Primary workspaces
set $WS1 "1:"
set $WS2 "2:"
set $WS3 "3:"
set $WS3 "3:"
set $WS4 "4:"
set $WS5 "5:"
bindsym $mod+1 workspace $WS1

View File

@@ -4,6 +4,11 @@ ARGS=(
"--blur=5"
# "-i${HOME}/Pictures/bg_1440p/Linux-Wallpapers-19-2560-x-1920.png"
# "-i${HOME}/Pictures/backgrounds/0c7e1f_5775038.jpg"
"--timepos=x-90:h-ch+30"
"--datepos=tx+24:ty+25"
"--clock"
"--timecolor=dfdfdfff"
"--datecolor=dfdfdfff"
"--insidevercolor=35d75588"
"--insidewrongcolor=d7355588"
"--insidecolor=00000000"
@@ -11,24 +16,13 @@ ARGS=(
"--ringwrongcolor=c76484ff"
"--ringcolor=3555d7ff"
"--linecolor=00000000"
"--radius=24"
"--indpos=x+282:h-70"
"--separatorcolor=6484c7ff"
"--keyhlcolor=35d755ff"
"--bshlcolor=d73555ff")
"--bshlcolor=d73555ff"
"--veriftext=''" "--wrongtext=''")
i3lock "${ARGS[@]}" &
i3lockpid=$!
sleep 2
#winid=`xwininfo -name "i3lock" | grep "Window id" | grep -oE "0x[0-9a-f]+"`
#if [ -z "$winid" ]
#then
# echo "Could not find i3lock window"
# exit 1
#fi
#echo $winid
#conky -c "$HOME/.config/conky/conkyrc" -w "$winid" &
#conkypid=$!
#
#wait $i3lockpid
#kill $conkypid