started migrating to polybar because it has many capabilities.
This commit is contained in:
41
.i3/config
41
.i3/config
@@ -1,6 +1,7 @@
|
||||
# T's desktop v3
|
||||
#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 --no-startup-id mplayer -fs ~/.i3/boot.mp4
|
||||
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
|
||||
@@ -22,7 +23,7 @@ exec xmodmap ~/.i3/custom.map
|
||||
# US brackets on slovene special characters
|
||||
#exec xmodmap ~/.i3/custom.map
|
||||
|
||||
font pango: FontAwesome, xos4 Terminess Powerline 12
|
||||
font pango: FontAwesome, xos4 Terminess Powerline 14
|
||||
|
||||
|
||||
#--APPEARANCE--#
|
||||
@@ -222,23 +223,23 @@ mode "ignore" {
|
||||
bindsym $alt+i mode "ignore"
|
||||
|
||||
#--BAR CONFIGURATION--#
|
||||
bar {
|
||||
tray_output primary
|
||||
#status_command i3blocks -c ~/.i3/i3blocks.conf
|
||||
status_command i3blocks -c ~/.i3/i3blocks-netbook.conf
|
||||
|
||||
mode dock
|
||||
hidden_state show
|
||||
position top
|
||||
# T-i3
|
||||
colors {
|
||||
background #15325A
|
||||
statusline #FFFFFF
|
||||
separator #666666
|
||||
focused_workspace #225396 #184791 #ffffff
|
||||
active_workspace #333333 #5f676a #ffffff
|
||||
inactive_workspace #333333 #222222 #888888
|
||||
urgent_workspace #aa0000 #990000 #ffffff
|
||||
}
|
||||
}
|
||||
#bar {
|
||||
# tray_output primary
|
||||
# #status_command i3blocks -c ~/.i3/i3blocks.conf
|
||||
# status_command i3blocks -c ~/.i3/i3blocks-netbook.conf
|
||||
#
|
||||
# mode dock
|
||||
# hidden_state show
|
||||
# position top
|
||||
# # T-i3
|
||||
# colors {
|
||||
# background #15325A
|
||||
# statusline #FFFFFF
|
||||
# separator #666666
|
||||
# focused_workspace #225396 #184791 #ffffff
|
||||
# active_workspace #333333 #5f676a #ffffff
|
||||
# inactive_workspace #333333 #222222 #888888
|
||||
# urgent_workspace #aa0000 #990000 #ffffff
|
||||
# }
|
||||
#}
|
||||
# vim:filetype=i3
|
||||
|
||||
@@ -35,4 +35,4 @@ interval=5
|
||||
|
||||
[shutdown_menu]
|
||||
full_text= Quit
|
||||
command=~/.i3/scripts/shutdown_menu -c
|
||||
command= ~/.i3/scripts/shutdown_menu -c
|
||||
|
||||
@@ -47,4 +47,4 @@ interval=5
|
||||
|
||||
[shutdown_menu]
|
||||
full_text= Quit
|
||||
command=~/.i3/scripts/shutdown_menu -c
|
||||
command= ~/.i3/scripts/shutdown_menu -c
|
||||
|
||||
12
.i3/scripts/polybar_launch.sh
Executable file
12
.i3/scripts/polybar_launch.sh
Executable file
@@ -0,0 +1,12 @@
|
||||
#!/usr/bin/env sh
|
||||
|
||||
# Terminate already running bar instances
|
||||
killall -q polybar
|
||||
|
||||
# Wait until the processes have been shut down
|
||||
while pgrep -u $UID -x polybar >/dev/null; do sleep 1; done
|
||||
|
||||
polybar top &
|
||||
|
||||
|
||||
echo "Bars launched..."
|
||||
@@ -16,8 +16,8 @@ menu=(
|
||||
[Hibernate]="systemctl hibernate"
|
||||
[Suspend]="systemctl suspend"
|
||||
[Halt]="systemctl halt"
|
||||
[Lock]="i3lock --color=${BG_COLOR}"
|
||||
[Logout]="i3-msg exit"
|
||||
[Lock]="~/.i3/scripts/locker.sh"
|
||||
[Logout]="exit"
|
||||
[Cancel]="Cancel"
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user