polybar and i3: FontAwesome5
This commit is contained in:
@@ -36,7 +36,7 @@ bright_white = '0xd7d7d7'
|
|||||||
[bar/top]
|
[bar/top]
|
||||||
monitor = ${env:MONITOR}
|
monitor = ${env:MONITOR}
|
||||||
width = 100%
|
width = 100%
|
||||||
height = 26
|
height = 30
|
||||||
;offset-x = 1%
|
;offset-x = 1%
|
||||||
;offset-y = 1%
|
;offset-y = 1%
|
||||||
radius = 0
|
radius = 0
|
||||||
@@ -45,7 +45,7 @@ fixed-center = false
|
|||||||
background = ${colors.background}
|
background = ${colors.background}
|
||||||
foreground = ${colors.foreground}
|
foreground = ${colors.foreground}
|
||||||
|
|
||||||
line-size = 3
|
line-size = 2
|
||||||
line-color = #f00
|
line-color = #f00
|
||||||
|
|
||||||
border-size = 0
|
border-size = 0
|
||||||
@@ -58,11 +58,12 @@ module-margin-left = 0
|
|||||||
module-margin-right = 1
|
module-margin-right = 1
|
||||||
|
|
||||||
font-0 = "xos4 Terminus:pixelsize=16"
|
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-left = i3
|
||||||
modules-center = xwindow
|
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-position = right
|
||||||
tray-padding = 2
|
tray-padding = 2
|
||||||
@@ -174,7 +175,7 @@ bar-used-fill = ▐
|
|||||||
bar-used-empty = ▐
|
bar-used-empty = ▐
|
||||||
bar-used-empty-foreground = ${colors.foreground-alt}
|
bar-used-empty-foreground = ${colors.foreground-alt}
|
||||||
|
|
||||||
[module/network]
|
[module/wireless-network]
|
||||||
type = internal/network
|
type = internal/network
|
||||||
interface = wlp3s0
|
interface = wlp3s0
|
||||||
interval = 1.0
|
interval = 1.0
|
||||||
@@ -204,6 +205,29 @@ animation-packetloss-1-foreground = ${colors.black}
|
|||||||
; Framerate in milliseconds
|
; Framerate in milliseconds
|
||||||
animation-packetloss-framerate = 500
|
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]
|
[module/battery]
|
||||||
type = internal/battery
|
type = internal/battery
|
||||||
full-at = 99
|
full-at = 99
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
':/home/tristan/Downloads
|
':/media/Downloads/Old Linux Games (x86)/Heavy Metal FAKK2
|
||||||
v:/home/tristan/build/rineja/app/views
|
v:/home/tristan/build/rineja/app/views
|
||||||
a:/home/tristan/build/rineja/app/assets
|
a:/home/tristan/build/rineja/app/assets
|
||||||
c:/home/tristan/build/rineja/app/controllers
|
c:/home/tristan/build/rineja/app/controllers
|
||||||
|
|||||||
15
.i3/config
15
.i3/config
@@ -2,11 +2,11 @@
|
|||||||
#exec --no-stratup-id xrandr --output eDP1 --primary --auto
|
#exec --no-stratup-id xrandr --output eDP1 --primary --auto
|
||||||
exec --no-startup-id xrandr --output HDMI-0 --auto --mode 2048x1152 --primary
|
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 $HOME/.i3/scripts/polybar_launch.sh
|
||||||
exec_always --no-startup-id compton -G -b
|
exec --no-startup-id compton -G -b
|
||||||
exec --no-startup-id mplayer -fs ~/.i3/boot.mp4
|
exec --no-startup-id mplayer -fs $HOME/.i3/boot.mp4
|
||||||
exec --no-startup-id conky -c $HOME/.config/conky/conkyrc
|
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 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
|
exec --no-startup-id xautolock -locknow
|
||||||
#DAEMONS
|
#DAEMONS
|
||||||
#exec --no-startup-id urxvtd -q
|
#exec --no-startup-id urxvtd -q
|
||||||
@@ -20,11 +20,9 @@ exec --no-startup-id dunst
|
|||||||
exec --no-startup-id blueman-applet
|
exec --no-startup-id blueman-applet
|
||||||
#Layout
|
#Layout
|
||||||
exec setxkbmap us altgr-intl
|
exec setxkbmap us altgr-intl
|
||||||
exec xmodmap ~/.i3/custom.map
|
exec xmodmap $HOME/.i3/custom.map
|
||||||
# US brackets on slovene special characters
|
|
||||||
#exec xmodmap ~/.i3/custom.map
|
|
||||||
|
|
||||||
font pango: FontAwesome, xos4 Terminus 12
|
font pango: Font Awesome 5 Free, Font Awesome 5 Brands, xos4 Terminus 12
|
||||||
|
|
||||||
|
|
||||||
#--APPEARANCE--#
|
#--APPEARANCE--#
|
||||||
@@ -58,6 +56,7 @@ for_window [class=".*"] title_format "-> %title"
|
|||||||
for_window [class="Pavucontrol"] floating enable
|
for_window [class="Pavucontrol"] floating enable
|
||||||
for_window [class="octopi"] floating enable
|
for_window [class="octopi"] floating enable
|
||||||
for_window [class="lxappearance"] floating enable
|
for_window [class="lxappearance"] floating enable
|
||||||
|
for_window [class="mojo"] floating enable
|
||||||
for_window [title="Hold On*"] floating enable
|
for_window [title="Hold On*"] floating enable
|
||||||
for_window [title="Cerebro*"] floating enable
|
for_window [title="Cerebro*"] floating enable
|
||||||
for_window [title="florence"] floating enable
|
for_window [title="florence"] floating enable
|
||||||
@@ -147,7 +146,7 @@ workspace $WS1 output primary
|
|||||||
#Primary workspaces
|
#Primary workspaces
|
||||||
set $WS1 "1:"
|
set $WS1 "1:"
|
||||||
set $WS2 "2:"
|
set $WS2 "2:"
|
||||||
set $WS3 "3:"
|
set $WS3 "3:"
|
||||||
set $WS4 "4:"
|
set $WS4 "4:"
|
||||||
set $WS5 "5:"
|
set $WS5 "5:"
|
||||||
bindsym $mod+1 workspace $WS1
|
bindsym $mod+1 workspace $WS1
|
||||||
|
|||||||
@@ -4,6 +4,11 @@ ARGS=(
|
|||||||
"--blur=5"
|
"--blur=5"
|
||||||
# "-i${HOME}/Pictures/bg_1440p/Linux-Wallpapers-19-2560-x-1920.png"
|
# "-i${HOME}/Pictures/bg_1440p/Linux-Wallpapers-19-2560-x-1920.png"
|
||||||
# "-i${HOME}/Pictures/backgrounds/0c7e1f_5775038.jpg"
|
# "-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"
|
"--insidevercolor=35d75588"
|
||||||
"--insidewrongcolor=d7355588"
|
"--insidewrongcolor=d7355588"
|
||||||
"--insidecolor=00000000"
|
"--insidecolor=00000000"
|
||||||
@@ -11,24 +16,13 @@ ARGS=(
|
|||||||
"--ringwrongcolor=c76484ff"
|
"--ringwrongcolor=c76484ff"
|
||||||
"--ringcolor=3555d7ff"
|
"--ringcolor=3555d7ff"
|
||||||
"--linecolor=00000000"
|
"--linecolor=00000000"
|
||||||
|
"--radius=24"
|
||||||
|
"--indpos=x+282:h-70"
|
||||||
"--separatorcolor=6484c7ff"
|
"--separatorcolor=6484c7ff"
|
||||||
"--keyhlcolor=35d755ff"
|
"--keyhlcolor=35d755ff"
|
||||||
"--bshlcolor=d73555ff")
|
"--bshlcolor=d73555ff"
|
||||||
|
"--veriftext=''" "--wrongtext=''")
|
||||||
|
|
||||||
i3lock "${ARGS[@]}" &
|
i3lock "${ARGS[@]}" &
|
||||||
i3lockpid=$!
|
i3lockpid=$!
|
||||||
sleep 2
|
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
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user