Commit 46f87006 authored by epsi sayidina's avatar epsi sayidina
Browse files

herbstluftwm tags test

parent d7602afb
......@@ -7,7 +7,7 @@
# #1 :2 :3 :4 .5 .6 .7 .8 .9
# custom tag names
tag_shows=( "一 ichi" "二 ni" "三 san" "四 shi"
readonly tag_shows=( "一 ichi" "二 ni" "三 san" "四 shi"
"五 go" "六 roku" "七 shichi" "八 hachi" "九 kyū" "十 jū")
# initialize variable segment
......@@ -17,20 +17,20 @@ tags_status=(); # empty array
# ----- ----- ----- ----- ----- ----- ----- ----- ----- ----- ----- ----
# decoration
separator="^bg()^fg(${color['black']})|^bg()^fg()"
readonly separator="^bg()^fg(${color['black']})|^bg()^fg()"
# Powerline Symbol
right_hard_arrow="^fn(powerlinesymbols-14)^fn()"
right_soft_arrow="^fn(powerlinesymbols-14)^fn()"
left_hard_arrow="^fn(powerlinesymbols-14)^fn()"
left_soft_arrow="^fn(powerlinesymbols-14)^fn()"
readonly right_hard_arrow="^fn(powerlinesymbols-14)^fn()"
readonly right_soft_arrow="^fn(powerlinesymbols-14)^fn()"
readonly left_hard_arrow="^fn(powerlinesymbols-14)^fn()"
readonly left_soft_arrow="^fn(powerlinesymbols-14)^fn()"
# http://fontawesome.io/
font_awesome="^fn(FontAwesome-9)"
readonly font_awesome="^fn(FontAwesome-9)"
# theme
pre_icon="^fg(${color['yellow500']})$font_awesome"
post_icon="^fn()^fg()"
readonly pre_icon="^fg(${color['yellow500']})$font_awesome"
readonly post_icon="^fn()^fg()"
# ----- ----- ----- ----- ----- ----- ----- ----- ----- ----- ----- ----
# main
......
......@@ -15,8 +15,8 @@ use gmc;
# #1 :2 :3 :4 .5 .6 .7 .8 .9
# custom tag names
my @tag_shows = ('一 ichi', '二 ni', '三 san', '四 shi',
'五 go', '六 roku', '七 shichi', '八 hachi', '九 kyū', '十 jū');
use constant TAG_SHOWS => ['一 ichi', '二 ni', '三 san', '四 shi',
'五 go', '六 roku', '七 shichi', '八 hachi', '九 kyū', '十 jū'];
# initialize variable segment
my $segment_windowtitle = '';
......@@ -25,20 +25,20 @@ my @tags_status = [];
# ----- ----- ----- ----- ----- ----- ----- ----- ----- ----- ----- ----
# decoration
my $separator = "^bg()^fg($color{'black'})|^bg()^fg()";
use constant SEPARATOR => "^bg()^fg($color{'black'})|^bg()^fg()";
# http://fontawesome.io/
my $font_awesome = "^fn(FontAwesome-9)";
use constant FONT_AWESOME => "^fn(FontAwesome-9)";
# Powerline Symbol
my $right_hard_arrow = "^fn(powerlinesymbols-14)^fn()";
my $right_soft_arrow = "^fn(powerlinesymbols-14)^fn()";
my $left_hard_arrow = "^fn(powerlinesymbols-14)^fn()";
my $left_soft_arrow = "^fn(powerlinesymbols-14)^fn()";
use constant RIGHT_HARD_ARROW => "^fn(powerlinesymbols-14)^fn()";
use constant RIGHT_SOFT_ARROW => "^fn(powerlinesymbols-14)^fn()";
use constant LEFT_HARD_ARROW => "^fn(powerlinesymbols-14)^fn()";
use constant LEFT_SOFT_ARROW => "^fn(powerlinesymbols-14)^fn()";
# theme
my $pre_icon = "^fg($color{'yellow500'})$font_awesome";
my $post_icon = "^fn()^fg()";
use constant PRE_ICON => "^fg($color{'yellow500'})".FONT_AWESOME;
use constant POST_ICON => "^fn()^fg()";
# ----- ----- ----- ----- ----- ----- ----- ----- ----- ----- ----- ----
# main
......@@ -67,14 +67,14 @@ sub output_by_tag {
my $tag_status = shift;
my $tag_index = substr($tag_status, 1, 1);
my $tag_mark = substr($tag_status, 0, 1);
my $tag_name = $tag_shows[$tag_index - 1]; # zero based
my $tag_name = TAG_SHOWS->[$tag_index - 1]; # zero based
# ----- pre tag
my $text_pre = '';
if ($tag_mark eq '#') {
$text_pre = "^bg($color{'blue500'})^fg($color{'black'})"
. $right_hard_arrow
. RIGHT_HARD_ARROW
. "^bg($color{'blue500'})^fg($color{'white'})";
} elsif ($tag_mark eq '+') {
$text_pre = "^bg($color{'yellow500'})^fg($color{'grey400'})";
......@@ -98,14 +98,14 @@ sub output_by_tag {
my $text_post = "";
if ($tag_mark eq '#') {
$text_post = "^bg($color{'black'})^fg($color{'blue500'})"
. $right_hard_arrow;
. RIGHT_HARD_ARROW;
}
return $text_pre . $text_name . $text_post;
}
sub output_by_title {
my $text = " ^r(5x0) $separator ^r(5x0) ";
my $text = " ^r(5x0) ".SEPARATOR." ^r(5x0) ";
$text .= $segment_windowtitle;
return $text;
......@@ -124,7 +124,7 @@ sub set_tag_value {
sub set_windowtitle {
my $windowtitle = shift;
my $icon = "$pre_icon$post_icon";
my $icon = PRE_ICON."".POST_ICON;
$segment_windowtitle = " $icon "
. "^bg()^fg($color{'grey700'}) $windowtitle";
......
......@@ -6,7 +6,7 @@
# Associative Array (Hash)
$color = array(
const COLOR = array(
'white' => '#ffffff',
'black' => '#000000',
......
......@@ -8,7 +8,7 @@ require_once(__DIR__.'/gmc.php');
// #1 :2 :3 :4 .5 .6 .7 .8 .9
// custom tag names
$tag_shows = ['一 ichi', '二 ni', '三 san', '四 shi',
const TAG_SHOWS = ['一 ichi', '二 ni', '三 san', '四 shi',
'五 go', '六 roku', '七 shichi', '八 hachi', '九 kyū', '十 jū'];
// initialize variable segment
......@@ -18,20 +18,20 @@ $tags_status = [];
# ----- ----- ----- ----- ----- ----- ----- ----- ----- ----- ----- ----
# decoration
$separator = "^bg()^fg(${color['black']})|^bg()^fg()";
const SEPARATOR = "^bg()^fg(".COLOR['black'].")|^bg()^fg()";
// http://fontawesome.io/
$font_awesome = '^fn(FontAwesome-9)';
const FONT_AWESOME = '^fn(FontAwesome-9)';
// Powerline Symbol
$right_hard_arrow = '^fn(powerlinesymbols-14)^fn()';
$right_soft_arrow = '^fn(powerlinesymbols-14)^fn()';
$left_hard_arrow = '^fn(powerlinesymbols-14)^fn()';
$left_soft_arrow = '^fn(powerlinesymbols-14)^fn()';
const RIGHT_HARD_ARROW = '^fn(powerlinesymbols-14)^fn()';
const RIGHT_SOFT_ARROW = '^fn(powerlinesymbols-14)^fn()';
const LEFT_HARD_ARROW = '^fn(powerlinesymbols-14)^fn()';
const LEFT_SOFT_ARROW = '^fn(powerlinesymbols-14)^fn()';
// theme
$pre_icon = "^fg(${color['yellow500']})${font_awesome}";
$post_icon = "^fn()^fg()";
const PRE_ICON = "^fg(".COLOR['yellow500'].")".FONT_AWESOME;
const POST_ICON = "^fn()^fg()";
# ----- ----- ----- ----- ----- ----- ----- ----- ----- ----- ----- ----
# main
......@@ -57,34 +57,31 @@ function get_statusbar_text($monitor)
function output_by_tag($monitor, $tag_status)
{
global $tag_shows;
global $color, $right_hard_arrow;
$tag_index = substr($tag_status, 1, 1);
$tag_mark = substr($tag_status, 0, 1);
$tag_name = $tag_shows[(int)$tag_index - 1]; # zero based
$tag_name = TAG_SHOWS[(int)$tag_index - 1]; # zero based
# ----- pre tag
switch ($tag_mark) {
case "#":
$text_pre = "^bg(${color['blue500']})^fg(${color['black']})"
. $right_hard_arrow
. "^bg(${color['blue500']})^fg(${color['white']})";
$text_pre = "^bg(".COLOR['blue500'].")^fg(".COLOR['black'].")"
. RIGHT_HARD_ARROW
. "^bg(".COLOR['blue500'].")^fg(".COLOR['white'].")";
break;
case "+":
$text_pre = "^bg(${color['yellow500']})"
. "^fg(${color['grey400']})";
$text_pre = "^bg(".COLOR['yellow500'].")"
. "^fg(".COLOR['grey400'].")";
break;
case ":":
$text_pre = "^bg()^fg(${color['white']})";
$text_pre = "^bg()^fg(".COLOR['white'].")";
break;
case "!":
$text_pre = "^bg(${color['red500']})"
. "^fg(${color['white']})";
$text_pre = "^bg(".COLOR['red500'].")"
. "^fg(".COLOR['white'].")";
break;
default:
$text_pre = "^bg()^fg(${color['grey600']})";
$text_pre = "^bg()^fg(".COLOR['grey600'].")";
}
# ----- tag by number
......@@ -97,8 +94,8 @@ function output_by_tag($monitor, $tag_status)
# ----- post tag
if ($tag_mark == '#')
$text_post = "^bg(${color['black']})^fg(${color['blue500']})"
. $right_hard_arrow;
$text_post = "^bg(".COLOR['black'].")^fg(".COLOR['blue500'].")"
. RIGHT_HARD_ARROW;
else
$text_post = "";
......@@ -107,10 +104,9 @@ function output_by_tag($monitor, $tag_status)
function output_by_title()
{
global $separator;
global $segment_windowtitle;
$text = " ^r(5x0) $separator ^r(5x0) ";
$text = " ^r(5x0) ".SEPARATOR." ^r(5x0) ";
$text .= $segment_windowtitle;
return $text;
......@@ -130,10 +126,9 @@ function set_tag_value($monitor)
function set_windowtitle($windowtitle)
{
global $segment_windowtitle;
global $color, $pre_icon, $post_icon;
$icon = "${pre_icon}${post_icon}";
$icon = PRE_ICON."".POST_ICON;
$segment_windowtitle = " ${icon} ^bg()"
. "^fg(${color['grey700']}) ${windowtitle}";
. "^fg(".COLOR['grey700'].") ${windowtitle}";
}
......@@ -9,7 +9,7 @@ from gmc import color
# #1 :2 :3 :4 .5 .6 .7 .8 .9
# custom tag names
tag_shows = ['一 ichi', '二 ni', '三 san', '四 shi',
TAG_SHOWS = ['一 ichi', '二 ni', '三 san', '四 shi',
'五 go', '六 roku', '七 shichi', '八 hachi', '九 kyū', '十 jū']
# initialize variable segment
......@@ -19,20 +19,20 @@ tags_status = []
# ----- ----- ----- ----- ----- ----- ----- ----- ----- ----- ----- ----
# decoration
separator = '^bg()^fg(' + color['black'] + ')|^bg()^fg()'
SEPARATOR = '^bg()^fg(' + color['black'] + ')|^bg()^fg()'
# http://fontawesome.io/
font_awesome = '^fn(FontAwesome-9)'
FONT_AWESOME = '^fn(FontAwesome-9)'
# Powerline Symbol
right_hard_arrow = '^fn(powerlinesymbols-14)^fn()'
right_soft_arrow = '^fn(powerlinesymbols-14)^fn()'
left_hard_arrow = '^fn(powerlinesymbols-14)^fn()'
left_soft_arrow = '^fn(powerlinesymbols-14)^fn()'
RIGHT_HARD_ARROW = '^fn(powerlinesymbols-14)^fn()'
RIGHT_SOFT_ARROW = '^fn(powerlinesymbols-14)^fn()'
LEFT_HARD_ARROW = '^fn(powerlinesymbols-14)^fn()'
LEFT_SOFT_ARROW = '^fn(powerlinesymbols-14)^fn()'
# theme
pre_icon = '^fg(' + color['yellow500'] + ')' + font_awesome
post_icon = '^fn()^fg()'
PRE_ICON = '^fg(' + color['yellow500'] + ')' + FONT_AWESOME
POST_ICON = '^fn()^fg()'
# ----- ----- ----- ----- ----- ----- ----- ----- ----- ----- ----- ----
# main
......@@ -55,14 +55,14 @@ def get_statusbar_text(monitor):
def output_by_tag(monitor, tag_status):
tag_index = tag_status[1:2]
tag_mark = tag_status[0:1]
tag_name = tag_shows[int(tag_index) - 1] # zero based
tag_name = TAG_SHOWS[int(tag_index) - 1] # zero based
# ----- pre tag
if tag_mark == '#':
text_pre = '^bg(' + color['blue500'] + ')' \
'^fg(' + color['black'] + ')' \
+ right_hard_arrow \
+ RIGHT_HARD_ARROW \
+ '^bg(' + color['blue500'] + ')' \
'^fg(' + color['white'] + ')'
elif tag_mark == '+':
......@@ -89,14 +89,14 @@ def output_by_tag(monitor, tag_status):
if tag_mark == '#':
text_post = '^bg(' + color['black'] + ')' \
'^fg(' + color['blue500'] + ')' + right_hard_arrow
'^fg(' + color['blue500'] + ')' + RIGHT_HARD_ARROW
else:
text_post = ''
return (text_pre + text_name + text_post)
def output_by_title():
text = ' ^r(5x0) ' + separator + ' ^r(5x0) '
text = ' ^r(5x0) ' + SEPARATOR + ' ^r(5x0) '
text += segment_windowtitle
return text
......@@ -113,7 +113,7 @@ def set_tag_value(monitor):
def set_windowtitle(windowtitle):
global segment_windowtitle
icon = pre_icon + '' + post_icon
icon = PRE_ICON + '' + POST_ICON
segment_windowtitle = ' ' + icon + \
' ^bg()^fg(' + color['grey700'] + ') ' + windowtitle
......@@ -7,7 +7,7 @@ module GMC
# Associative Array (Hash)
# http://ruby-doc.org/core-2.4.1/Hash.html
Color = {
COLOR = {
'white' => '#ffffff',
'black' => '#000000',
......
......@@ -7,8 +7,11 @@ include GMC
# assuming $ herbstclient tag_status
# #1 :2 :3 :4 .5 .6 .7 .8 .9
# ----- ----- ----- ----- ----- ----- ----- ----- ----- ----- ----- ----
# decoration
# custom tag names
@tag_shows = ['一 ichi', '二 ni', '三 san', '四 shi',
@TAG_SHOWS = ['一 ichi', '二 ni', '三 san', '四 shi',
'五 go', '六 roku', '七 shichi', '八 hachi', '九 kyū', '十 jū']
# initialize variable segment
......@@ -18,20 +21,20 @@ include GMC
# ----- ----- ----- ----- ----- ----- ----- ----- ----- ----- ----- ----
# decoration
@separator = "^bg()^fg(#{Color['black']})|^bg()^fg()"
@SEPARATOR = "^bg()^fg(#{COLOR['black']})|^bg()^fg()"
# http://fontawesome.io/
@font_awesome = '^fn(FontAwesome-9)'
@FONT_AWESOME = '^fn(FontAwesome-9)'
# Powerline Symbol
@right_hard_arrow = '^fn(powerlinesymbols-14)^fn()'
@right_soft_arrow = '^fn(powerlinesymbols-14)^fn()'
@left_hard_arrow = '^fn(powerlinesymbols-14)^fn()'
@left_soft_arrow = '^fn(powerlinesymbols-14)^fn()'
@RIGHT_HARD_ARROW = '^fn(powerlinesymbols-14)^fn()'
@RIGHT_SOFT_ARROW = '^fn(powerlinesymbols-14)^fn()'
@LEFT_HARD_ARROW = '^fn(powerlinesymbols-14)^fn()'
@LEFT_SOFT_ARROW = '^fn(powerlinesymbols-14)^fn()'
# theme
@pre_icon = "^fg(#{Color['yellow500']})#{@font_awesome}"
@post_icon = "^fn()^fg()"
@PRE_ICON = "^fg(#{COLOR['yellow500']})#{@FONT_AWESOME}"
@POST_ICON = "^fn()^fg()"
# ----- ----- ----- ----- ----- ----- ----- ----- ----- ----- ----- ----
# main
......@@ -53,23 +56,23 @@ end
def output_by_tag(monitor, tag_status)
tag_index = tag_status[1..1]
tag_mark = tag_status[0..0]
tag_name = @tag_shows[tag_index.to_i - 1] # zero based
tag_name = @TAG_SHOWS[tag_index.to_i - 1] # zero based
# ----- pre tag
case tag_mark
when '#'
text_pre = "^bg(#{Color['blue500']})^fg(#{Color['black']})" \
+ @right_hard_arrow \
+ "^bg(#{Color['blue500']})^fg(#{Color['white']})"
text_pre = "^bg(#{COLOR['blue500']})^fg(#{COLOR['black']})" \
+ @RIGHT_HARD_ARROW \
+ "^bg(#{COLOR['blue500']})^fg(#{COLOR['white']})"
when '+'
text_pre = "^bg(#{Color['yellow500']})^fg(#{Color['grey400']})"
text_pre = "^bg(#{COLOR['yellow500']})^fg(#{COLOR['grey400']})"
when ':'
text_pre = "^bg()^fg(#{Color['white']})"
text_pre = "^bg()^fg(#{COLOR['white']})"
when '!'
text_pre = "^bg(#{Color['red500']})^fg(#{Color['white']})"
text_pre = "^bg(#{COLOR['red500']})^fg(#{COLOR['white']})"
else
text_pre = "^bg()^fg(#{Color['grey600']})"
text_pre = "^bg()^fg(#{COLOR['grey600']})"
end
# ----- tag by number
......@@ -82,8 +85,8 @@ def output_by_tag(monitor, tag_status)
# ----- post tag
if tag_mark == '#'
text_post = "^bg(#{Color['black']})^fg(#{Color['blue500']})" \
+ @right_hard_arrow
text_post = "^bg(#{COLOR['black']})^fg(#{COLOR['blue500']})" \
+ @RIGHT_HARD_ARROW
else
text_post = ""
end
......@@ -92,7 +95,7 @@ def output_by_tag(monitor, tag_status)
end
def output_by_title()
text = " ^r(5x0) #{@separator} ^r(5x0) "
text = " ^r(5x0) #{@SEPARATOR} ^r(5x0) "
text << @segment_windowtitle
end
......@@ -105,8 +108,8 @@ def set_tag_value(monitor)
end
def set_windowtitle(windowtitle)
icon = @pre_icon + '' + @post_icon
icon = @PRE_ICON + '' + @POST_ICON
@segment_windowtitle = " #{icon} ^bg()" \
+ "^fg(#{Color['grey700']}) #{windowtitle}"
+ "^fg(#{COLOR['grey700']}) #{windowtitle}"
end
......@@ -7,27 +7,27 @@
# #1 :2 :3 :4 .5 .6 .7 .8 .9
# custom tag names
tag_shows=( "一 ichi" "二 ni" "三 san" "四 shi"
readonly tag_shows=( "一 ichi" "二 ni" "三 san" "四 shi"
"五 go" "六 roku" "七 shichi" "八 hachi" "九 kyū" "十 jū")
# initialize variable segment
segment_windowtitle='';
segment_windowtitle=''; # empty string
tags_status=(); # empty array
# ----- ----- ----- ----- ----- ----- ----- ----- ----- ----- ----- ----
# decoration
separator="%{B-}%{F${color['yellow500']}}|%{B-}%{F-}"
readonly separator="%{B-}%{F${color['yellow500']}}|%{B-}%{F-}"
# Powerline Symbol
right_hard_arrow=""
right_soft_arrow=""
left_hard_arrow=""
left_soft_arrow=""
readonly right_hard_arrow=""
readonly right_soft_arrow=""
readonly left_hard_arrow=""
readonly left_soft_arrow=""
# theme
pre_icon="%{F${color['yellow500']}}"
post_icon="%{F-}"
readonly pre_icon="%{F${color['yellow500']}}"
readonly post_icon="%{F-}"
# ----- ----- ----- ----- ----- ----- ----- ----- ----- ----- ----- ----
# main
......
......@@ -15,8 +15,8 @@ use gmc;
# #1 :2 :3 :4 .5 .6 .7 .8 .9
# custom tag names
my @tag_shows = ('一 ichi', '二 ni', '三 san', '四 shi',
'五 go', '六 roku', '七 shichi', '八 hachi', '九 kyū', '十 jū');
use constant TAG_SHOWS => ['一 ichi', '二 ni', '三 san', '四 shi',
'五 go', '六 roku', '七 shichi', '八 hachi', '九 kyū', '十 jū'];
# initialize variable segment
my $segment_windowtitle = '';
......@@ -25,17 +25,17 @@ my @tags_status = [];
# ----- ----- ----- ----- ----- ----- ----- ----- ----- ----- ----- ----
# decoration
my $separator = "%{B-}%{F$color{'yellow500'}}|%{B-}%{F-}";
use constant SEPARATOR => "%{B-}%{F$color{'yellow500'}}|%{B-}%{F-}";
# Powerline Symbol
my $right_hard_arrow = "";
my $right_soft_arrow = "";
my $left_hard_arrow = "";
my $left_soft_arrow = "";
use constant RIGHT_HARD_ARROW => "";
use constant RIGHT_SOFT_ARROW => "";
use constant LEFT_HARD_ARROW => "";
use constant LEFT_SOFT_ARROW => "";
# theme
my $pre_icon = "%{F$color{'yellow500'}}";
my $post_icon = "%{F-}";
use constant PRE_ICON => "%{F$color{'yellow500'}}";
use constant POST_ICON => "%{F-}";
# ----- ----- ----- ----- ----- ----- ----- ----- ----- ----- ----- ----
# main
......@@ -66,14 +66,14 @@ sub output_by_tag {
my $tag_status = shift;
my $tag_index = substr($tag_status, 1, 1);
my $tag_mark = substr($tag_status, 0, 1);
my $tag_name = $tag_shows[$tag_index - 1]; # zero based
my $tag_name = TAG_SHOWS->[$tag_index - 1]; # zero based
# ----- pre tag
my $text_pre = '';
if ($tag_mark eq '#') {
$text_pre = "%{B$color{'blue500'}}%{F$color{'black'}}"
. "%{U$color{'white'}}%{+u}$right_hard_arrow"
. "%{U$color{'white'}}%{+u}".RIGHT_HARD_ARROW
. "%{B$color{'blue500'}}%{F$color{'white'}}"
. "%{U$color{'white'}}%{+u}";
} elsif ($tag_mark eq '+') {
......@@ -103,7 +103,7 @@ sub output_by_tag {
if ($tag_mark eq '#') {
$text_post = "%{B-}%{F$color{'blue500'}}"
. "%{U$color{'red500'}}%{+u}"
. $right_hard_arrow;
. RIGHT_HARD_ARROW;
}
my $text_clear = '%{B-}%{F-}%{-u}';
......@@ -112,7 +112,7 @@ sub output_by_tag {
}
sub output_by_title {
my $text = "$segment_windowtitle $separator ";
my $text = "$segment_windowtitle ".SEPARATOR." ";
return $text;
}
......@@ -130,7 +130,7 @@ sub set_tag_value {
sub set_windowtitle {
my $windowtitle = shift;
my $icon = "$pre_icon$post_icon";
my $icon = PRE_ICON."".POST_ICON;
# trim both ends
$windowtitle =~ s/^\s+|\s+$//g;
......
......@@ -6,7 +6,7 @@
# Associative Array (Hash)
$color = array(
const COLOR = array(
'white' => '#ffffff',
'black' => '#000000',
......
......@@ -8,7 +8,7 @@ require_once(__DIR__.'/gmc.php');
// #1 :2 :3 :4 .5 .6 .7 .8 .9
// custom tag names
$tag_shows = ['一 ichi', '二 ni', '三 san', '四 shi',
const TAG_SHOWS = ['一 ichi', '二 ni', '三 san', '四 shi',
'五 go', '六 roku', '七 shichi', '八 hachi', '九 kyū', '十 jū'];
// initialize variable segment
......@@ -18,17 +18,17 @@ $tags_status = [];
# ----- ----- ----- ----- ----- ----- ----- ----- ----- ----- ----- ----
# decoration
$separator = "%{B-}%{F${color['yellow500']}}|%{B-}%{F-}";
const SEPARATOR = "%{B-}%{F".COLOR['yellow500']."}|%{B-}%{F-}";
// Powerline Symbol
$right_hard_arrow = "";
$right_soft_arrow = "";
$left_hard_arrow = "";
$left_soft_arrow = "";
const RIGHT_HARD_ARROW = "";
const RIGHT_SOFT_ARROW = "";
const LEFT_HARD_ARROW = "";
const LEFT_SOFT_ARROW = "";
// theme
$pre_icon = "%{F${color['yellow500']}}";
$post_icon = "%{F-}";
const PRE_ICON = "%{F".COLOR['yellow500']."}";
const POST_ICON = "%{F-}";
# ----- ----- ----- ----- ----- ----- ----- ----- ----- ----- ----- ----
# main
......@@ -56,35 +56,32 @@ function get_statusbar_text($monitor)