Commit 4a9b56b5 authored by epsi sayidina's avatar epsi sayidina

relative directory

parent 1b5a009f
#!/usr/bin/env bash
. ~/Documents/standalone/cli/example/ansi.sh
. ~/Documents/standalone/cli/example/helpercpu.sh
. ~/Documents/standalone/cli/example/progressbar.sh
DIR=$(dirname "$0")
. ${DIR}/ansi.sh
. ${DIR}/helpercpu.sh
. ${DIR}/progressbar.sh
# ----- ----- ----- ----- ----- ----- ----- ----- ----- ----- ----- ----
# test
......
......@@ -6,5 +6,6 @@ tput civis -- invisible
clear
conky -c ~/Documents/standalone/cli/example/03.lua
DIR=$(dirname "$0")
conky -c ${DIR}/03.lua
#!/usr/bin/env bash
# include
. ~/Documents/standalone/dzen2/bash-example/02-output.sh
DIR=$(dirname "$0")
. ${DIR}/02-output.sh
# dzen2
......
#!/usr/bin/env bash
# include
. ~/Documents/standalone/dzen2/bash-example/03-output.sh
DIR=$(dirname "$0")
. ${DIR}/03-output.sh
# dzen2
......
......@@ -4,7 +4,8 @@
pkill dzen2
# include
. ~/Documents/standalone/dzen2/bash-example/04-output.sh
DIR=$(dirname "$0")
. ${DIR}/04-output.sh
# dzen2
......
......@@ -10,10 +10,12 @@ theme='bright-deco'
# ----- ----- ----- ----- ----- ----- ----- ----- ----- ----- ----- ----
# include
. ~/Documents/standalone/dzen2/bash/gmc.sh
. ~/Documents/standalone/dzen2/bash/vars.sh
. ~/Documents/standalone/dzen2/bash/segments.sh
. ~/Documents/standalone/dzen2/bash/output.sh
DIR=$(dirname "$0")
. ${DIR}/gmc.sh
. ${DIR}/vars.sh
. ${DIR}/segments.sh
. ${DIR}/output.sh
# ----- ----- ----- ----- ----- ----- ----- ----- ----- ----- ----- ----
# main
......
#!/usr/bin/env bash
generated_output() {
conky -c ~/Documents/standalone/dzen2/conky-example/01.lua
DIR=$(dirname "$0")
conky -c ${DIR}/01.lua
}
# ----- ----- ----- ----- ----- ----- ----- ----- ----- ----- ----- ----
......
#!/usr/bin/env bash
generated_output() {
conky -c ~/Documents/standalone/dzen2/conky-example/02.lua
DIR=$(dirname "$0")
conky -c ${DIR}/02.lua
}
# ----- ----- ----- ----- ----- ----- ----- ----- ----- ----- ----- ----
......
......@@ -20,13 +20,13 @@ conky.config = {
presetName = 'dark-separator'
assemblyName = 'separator'
home = os.getenv("HOME")
path = '/Documents/standalone/dzen2/conky/'
dofile(home .. path .. 'gmc.lua')
dofile(home .. path .. 'presets/' .. presetName .. '.lua')
dofile(home .. path .. 'helper.lua')
dofile(home .. path .. 'parts.lua')
dofile(home .. path .. 'assemblies/' .. assemblyName .. '.lua')
local dirname = debug.getinfo(1).source:match("@?(.*/)")
dofile(dirname .. 'gmc.lua')
dofile(dirname .. 'presets/' .. presetName .. '.lua')
dofile(dirname .. 'helper.lua')
dofile(dirname .. 'parts.lua')
dofile(dirname .. 'assemblies/' .. assemblyName .. '.lua')
conky.text = [[\
]] .. enabled .. [[\
......
#!/usr/bin/env bash
generated_output() {
conky -c ~/Documents/standalone/dzen2/debug/conky.lua
DIR=$(dirname "$0")
conky -c ${DIR}/conky.lua
}
# ----- ----- ----- ----- ----- ----- ----- ----- ----- ----- ----- ----
......
......@@ -13,12 +13,11 @@ conky.config = {
presetName = 'bright-background'
home = os.getenv("HOME")
path = '/Documents/standalone/dzen2/multi/'
dofile(home .. path .. 'gmc.lua')
dofile(home .. path .. 'presets/' .. presetName .. '.lua')
dofile(home .. path .. 'helper.lua')
dofile(home .. path .. 'parts.lua')
local dirname = debug.getinfo(1).source:match("@?(.*/)")
dofile(dirname .. 'gmc.lua')
dofile(dirname .. 'presets/' .. presetName .. '.lua')
dofile(dirname .. 'helper.lua')
dofile(dirname .. 'parts.lua')
decoleft = helper.decoDoubleArrowLeft
decoright = helper.decoDoubleArrowRight
......
......@@ -13,12 +13,11 @@ conky.config = {
presetName = 'bright-background'
home = os.getenv("HOME")
path = '/Documents/standalone/dzen2/multi/'
dofile(home .. path .. 'gmc.lua')
dofile(home .. path .. 'presets/' .. presetName .. '.lua')
dofile(home .. path .. 'helper.lua')
dofile(home .. path .. 'parts.lua')
local dirname = debug.getinfo(1).source:match("@?(.*/)")
dofile(dirname .. 'gmc.lua')
dofile(dirname .. 'presets/' .. presetName .. '.lua')
dofile(dirname .. 'helper.lua')
dofile(dirname .. 'parts.lua')
deco = helper.decoDoubleArrowRight
......
......@@ -13,12 +13,11 @@ conky.config = {
presetName = 'bright-background'
home = os.getenv("HOME")
path = '/Documents/standalone/dzen2/multi/'
dofile(home .. path .. 'gmc.lua')
dofile(home .. path .. 'presets/' .. presetName .. '.lua')
dofile(home .. path .. 'helper.lua')
dofile(home .. path .. 'parts.lua')
local dirname = debug.getinfo(1).source:match("@?(.*/)")
dofile(dirname .. 'gmc.lua')
dofile(dirname .. 'presets/' .. presetName .. '.lua')
dofile(dirname .. 'helper.lua')
dofile(dirname .. 'parts.lua')
deco = helper.decoDoubleArrowLeft
......
......@@ -13,12 +13,11 @@ conky.config = {
presetName = 'bright-background'
home = os.getenv("HOME")
path = '/Documents/standalone/dzen2/multi/'
dofile(home .. path .. 'gmc.lua')
dofile(home .. path .. 'presets/' .. presetName .. '.lua')
dofile(home .. path .. 'helper.lua')
dofile(home .. path .. 'parts.lua')
local dirname = debug.getinfo(1).source:match("@?(.*/)")
dofile(dirname .. 'gmc.lua')
dofile(dirname .. 'presets/' .. presetName .. '.lua')
dofile(dirname .. 'helper.lua')
dofile(dirname .. 'parts.lua')
decoleft = helper.decoCornerBottomLeft
decoright = helper.decoCornerBottomRight
......
......@@ -13,12 +13,11 @@ conky.config = {
presetName = 'bright-background'
home = os.getenv("HOME")
path = '/Documents/standalone/dzen2/multi/'
dofile(home .. path .. 'gmc.lua')
dofile(home .. path .. 'presets/' .. presetName .. '.lua')
dofile(home .. path .. 'helper.lua')
dofile(home .. path .. 'parts.lua')
local dirname = debug.getinfo(1).source:match("@?(.*/)")
dofile(dirname .. 'gmc.lua')
dofile(dirname .. 'presets/' .. presetName .. '.lua')
dofile(dirname .. 'helper.lua')
dofile(dirname .. 'parts.lua')
decoleft = helper.decoCornerTopLeft
decoright = helper.decoCornerTopRight
......
......@@ -13,12 +13,11 @@ conky.config = {
presetName = 'bright-background'
home = os.getenv("HOME")
path = '/Documents/standalone/dzen2/multi/'
dofile(home .. path .. 'gmc.lua')
dofile(home .. path .. 'presets/' .. presetName .. '.lua')
dofile(home .. path .. 'helper.lua')
dofile(home .. path .. 'parts.lua')
local dirname = debug.getinfo(1).source:match("@?(.*/)")
dofile(dirname .. 'gmc.lua')
dofile(dirname .. 'presets/' .. presetName .. '.lua')
dofile(dirname .. 'helper.lua')
dofile(dirname .. 'parts.lua')
decoleft = helper.decoCornerTopLeft
decoright = helper.decoCornerTopRight
......
......@@ -75,7 +75,7 @@ pkill dzen2
# This is just a sample.
# more dzen-conky means more CPU.
path=~/Documents/standalone/dzen2/multi
path=$(dirname "$0")
# execute dzen
conky -c $path/conky-topleft.lua | dzen2 $parameters_topleft &
......
#!/usr/bin/env bash
# include
. ~/Documents/standalone/lemon/example/gmc.sh
. ~/Documents/standalone/lemon/example/02-output.sh
DIR=$(dirname "$0")
. ${DIR}/gmc.sh
. ${DIR}/02-output.sh
# ----- ----- ----- ----- ----- ----- ----- ----- ----- ----- ----- ----
# parameters
......
#!/usr/bin/env bash
generated_output() {
conky -c ~/Documents/standalone/lemon/example/03-output.lua
DIR=$(dirname "$0")
conky -c ${DIR}/03-output.lua
}
# ----- ----- ----- ----- ----- ----- ----- ----- ----- ----- ----- ----
......
......@@ -15,11 +15,10 @@ conky.config = {
Prepare
]]
home = os.getenv("HOME")
path = '/Documents/standalone/lemon/multi/'
dofile(home .. path .. 'gmc.lua')
dofile(home .. path .. 'helper.lua')
dofile(home .. path .. 'parts.lua')
local dirname = debug.getinfo(1).source:match("@?(.*/)")
dofile(dirname .. 'gmc.lua')
dofile(dirname .. 'helper.lua')
dofile(dirname .. 'parts.lua')
-- shortcut
local _h = helper
......
......@@ -15,11 +15,10 @@ conky.config = {
Prepare
]]
home = os.getenv("HOME")
path = '/Documents/standalone/lemon/multi/'
dofile(home .. path .. 'gmc.lua')
dofile(home .. path .. 'helper.lua')
dofile(home .. path .. 'parts.lua')
local dirname = debug.getinfo(1).source:match("@?(.*/)")
dofile(dirname .. 'gmc.lua')
dofile(dirname .. 'helper.lua')
dofile(dirname .. 'parts.lua')
-- shortcut
local _h = helper
......
......@@ -21,7 +21,7 @@ font_monospace="monospace-9"
# remove all lemonbar instance
pkill lemonbar
path=~/Documents/standalone/lemon/multi
path=$(dirname "$0")
conky -c $path/conky-top.lua | lemonbar \
-g $position_top -u 2 -B $background -F $foreground \
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment