Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
U
UserConfig
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jiří Kalvoda
UserConfig
Commits
7321ac20
You need to sign in or sign up before continuing.
Commit
7321ac20
authored
2 years ago
by
Jiří Kalvoda
Browse files
Options
Downloads
Patches
Plain Diff
I3 icsstatus config
parent
07f614b6
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
i3/i3csstatus.conf
+176
-0
176 additions, 0 deletions
i3/i3csstatus.conf
with
176 additions
and
0 deletions
i3/i3csstatus.conf
0 → 100644
+
176
−
0
View file @
7321ac20
refresh
=
1
# [exec]
# program = python3
# separator = 10
# parser = i3
# _color = blue
# stdin
# import time
#
# i = 0
# while True:
# i += 1
# print('[{"full_text":"PY<i>THON</i> '+str(i)+'", "short_text":"P", "color":"#00FFFF", "background":"red", "border":"blue", "border_top":3, "min_width":"AHOJ PYTHON", "align":"center", "urgent":true, "separator": false, "separator_block_width":30, "markup":"pango"}]', flush=True)
# time.sleep(3)
# [osdd_last]
# type = _pipe
# path = $XDG_RUNTIME_DIR/osdd_to_i3csstatus
# [pipe]
# path = a
# show_old = 5
# max_old = 10
# no_data_handler
# [constant]
# text = AHOJ
# [api_time]
# _type=http
# url = http://worldtimeapi.org/api/timezone/Europe/Prague
# period = 30
# max_old = 20
# show_old = 10
[
osdd_last
]
_
type
=
file
path
= ~/.
osdd_last
_
exec
=
terminal
-
e
bash
-
i
-
c
"tail -n500 ~/.osdd_log;read"
[
offlineimap_status
]
_
type
=
file
path
= ~/.
offlineimap
.
log
[
checkmail_status
]
_
type
=
file
path
= ~/.
cm
_
exec
=
i3
-
workspace
goto
-
workspace
--
workspace
MAIL
[
wireless_channel
]
_
type
=
exec
parser
=
i3
program
=
python3
arguments
= -
u
delay
=
1
separator
=
10
stdin
import
sys
import
time
import
subprocess
i
=
0
while
True
:
try
:
process
=
subprocess
.
Popen
([
"iwlist"
,
"wlp1s0"
,
"channel"
],
stdout
=
subprocess
.
PIPE
)
ch
=
int
(
process
.
communicate
()[
0
].
decode
().
split
(
"\n"
)[-
3
].
split
()[
4
][:-
1
])
print
(
f
'[{{"full_text":"{ch}"}}]'
,
flush
=
True
)
except
Exception
as
e
:
print
(
e
,
file
=
sys
.
stderr
)
print
(
"[]"
,
flush
=
True
)
time
.
sleep
(
10
);
[
wireless
]
_
type
=
i3status
name
=
wireless
_
first_
config
<<
AMEN
format_up
=
"W: (%quality %essid) %ip"
format_down
=
"W: down"
AMEN
_
exec
=
terminal
-
e
nmtui
[
ethernet
]
_
type
=
i3status
name
=
ethernet
_
first_
config
=
format_up
=
"E: %ip (%speed)"
format_down
=
"E: down"
global_cache
=
1
# [battery_i3]
# _type = i3status
# name = battery all
# config =
# format = "%status %percentage %remaining %consumption"
[
battery
]
_
exec
=
terminal
-
e
battop
[
load
]
_
type
=
i3status
config
=
format
=
"%1min L"
_
exec
=
terminal
-
e
htop
[
memory
]
_
type
=
i3status
config
=
format
=
"%available"
threshold_degraded
=
"1G"
format_degraded
=
"MEMORY %available"
[
time
]
format
=
yyyy
-
MM
-
dd
HH
:
mm
:
ss
refresh
_
exec
=
terminal
-
e
calcurse
# [ICE_speed]
# _type=http
# url = https://iceportal.de/api1/rs/status
# period = 5
# show_old = 20
# max_old = 120
# error_handler =
# no_data_handler =
# _exec = chromium https://iceportal.de/
# [ICE_next_stop]
# _type=http
# url = https://iceportal.de/api1/rs/tripInfo/trip
# error_handler =
# period = 20
# show_old = 60
# max_old = 300
# _exec = chromium https://iceportal.de/
[
CD_speed
]
_
type
=
http
url
=
http
://
cdwifi
.
cz
/
portal
/
api
/
vehicle
/
realtime
period
=
5
show_old
=
20
max_old
=
120
error_handler
=
no_data_handler
=
_
exec
=
chromium
http
://
cdwifi
.
cz
[
CD_next_stop
]
_
type
=
http_multi
urls
=
http
://
cdwifi
.
cz
/
portal
/
api
/
timetable
/
connexion
/
current
?
locale
=
cs_CZ
http
://
cdwifi
.
cz
/
portal
/
api
/
vehicle
/
realtime
error_handler
=
period
=
20
show_old
=
60
max_old
=
300
_
exec
=
chromium
http
://
cdwifi
.
cz
# [OBB_speed]
# _type=http
# url = https://railnet.oebb.at/api/speed
# period = 5
# show_old = 20
# max_old = 120
# error_handler =
# no_data_handler =
# _exec = chromium http://railnet.oebb.at/
# [OBB_next_stop]
# _type=http
# url = https://railnet.oebb.at/assets/modules/fis/combined.json
# error_handler =
# period = 20
# show_old = 60
# max_old = 300
# _exec = chromium http://railnet.oebb.at/
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment