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
eaf4ebc4
Commit
eaf4ebc4
authored
4 years ago
by
Jiří Kalvoda
Browse files
Options
Downloads
Patches
Plain Diff
Using new osdd.
parent
76bf3cf1
No related branches found
No related tags found
No related merge requests found
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
i3/config
+16
-6
16 additions, 6 deletions
i3/config
light/lightInfo-rpi.c
+1
-1
1 addition, 1 deletion
light/lightInfo-rpi.c
light/lightInfo.c
+1
-1
1 addition, 1 deletion
light/lightInfo.c
volume/volumeInfo.c
+1
-1
1 addition, 1 deletion
volume/volumeInfo.c
with
19 additions
and
9 deletions
i3/config
+
16
−
6
View file @
eaf4ebc4
...
...
@@ -380,6 +380,16 @@ mode "System modifikator"
bindcode 94 exec --no-startup-id "osdd-run & sleep 1;osdc --color=red RESTART"
bindcode $mod+51 exec --no-startup-id "osdd-run & sleep 1;osdc --color=red RESTART"
bindsym Shift+z exec --no-startup-id "osdc --cmd-after=disable:led --color=red Disable led "
bindsym z exec --no-startup-id "osdc --cmd-now=enable:led --color=red Enable led "
bindsym Shift+x exec --no-startup-id "osdc --cmd-after=disable:loglast --color=red Disable loglast "
bindsym x exec --no-startup-id "osdc --cmd-now=enable:loglast --color=red Enable loglast "
bindsym Shift+c exec --no-startup-id "osdc --cmd-after=disable:display0 --color=red Disable display0 "
bindsym c exec --no-startup-id "osdc --cmd-now=enable:display0 --color=red Enable display0 "
bindsym Shift+v exec --no-startup-id "osdc --cmd-after=disable:display1 --color=red Disable display1 "
bindsym v exec --no-startup-id "osdc --cmd-now=enable:display1 --color=red Enable display1 "
bindcode Shift+94 exec --no-startup-id "osdc --color=red test --color=blue 123456789 --color=green 123456789123456789123456789123456789123456789123456789 --color=white 123456789123456789123456789123456789123456789123456789123456789123456789123456789123456789123456789123456789 "
bindcode Shift+$mod+51 exec --no-startup-id "osdc test"
}
bindcode 121 exec "echo $(( 1 - $(cat ~/.config/micloop/mute) )) > ~/.config/micloop/mute;pacmd set-sink-input-mute $(cat ~/.config/micloop/id) $(cat ~/.config/micloop/mute) ; notify-send 'loopmic mute' $(cat ~/.config/micloop/mute) -h string:x-canonical-private-synchronous:anything"
...
...
@@ -428,14 +438,14 @@ exec "setxkbmap us,cz -variant ,ucw -option grp:caps_switch"
exec --no-startup-id "sleep 2; osdd-run & sleep 1;osdc --color=red START"
exec --no-startup-id "sleep 5; terminal -e m-daemon"
bindcode 94 exec "osdc --duration=1 --
log=1
\\"\\""
bindcode $mod+51 exec "osdc --duration=1 --
log=1
\\"\\""
bindcode Shift+ 94 exec "osdc --
skip=1 --log=0
--duration=1 \\"\\""
bindcode Shift+$mod+51 exec "osdc --
skip=1 --log=0
--duration=1 \\"\\""
bindcode 94 exec "osdc --duration=1 --
output=loglast
\\"\\""
bindcode $mod+51 exec "osdc --duration=1 --
output=loglast
\\"\\""
bindcode Shift+ 94 exec "osdc --
cmd-now=skip --do-not-que --output=no
--duration=1 \\"\\""
bindcode Shift+$mod+51 exec "osdc --
cmd-now=skip --do-not-que --output=no
--duration=1 \\"\\""
bindcode Ctrl+ 94 exec "osd-clock"
bindcode Ctrl+$mod+51 exec "osd-clock"
bindcode Ctrl+Shift +94 exec "terminal -e bash -i -c \\"
cat
~/.osdd_log;read\\""
bindcode Ctrl+Shift+$mod+51 exec "terminal -e bash -i -c \\"
cat
~/.osdd_log;read\\""
bindcode Ctrl+Shift +94 exec "terminal -e bash -i -c \\"
tail -n500
~/.osdd_log;read\\""
bindcode Ctrl+Shift+$mod+51 exec "terminal -e bash -i -c \\"
tail -n500
~/.osdd_log;read\\""
bindcode $mod+94 exec "terminal"
...
...
This diff is collapsed.
Click to expand it.
light/lightInfo-rpi.c
+
1
−
1
View file @
eaf4ebc4
...
...
@@ -23,7 +23,7 @@ int main(int argc,char ** argv)
//for(double i=0;i<log(lightMax);i+=0.3)
//printf("%s",act<i?"−":"+");
//printf("]");
sprintf
(
out
,
"osdc --
log=0
--color=red --duration=500 --min-duration=1
\"
%d%% %d
\"
--percent=%d"
,
int
(
100
*
act
/
log
(
lightMax
)
+
0
.
5
),
realAct
,
int
(
100
*
act
/
log
(
lightMax
)
+
0
.
5
));
sprintf
(
out
,
"osdc --
output=display
--color=red --duration=500 --min-duration=1
\"
%d%% %d
\"
--percent=%d"
,
int
(
100
*
act
/
log
(
lightMax
)
+
0
.
5
),
realAct
,
int
(
100
*
act
/
log
(
lightMax
)
+
0
.
5
));
system
(
out
);
fclose
(
f
);
return
0
;
...
...
This diff is collapsed.
Click to expand it.
light/lightInfo.c
+
1
−
1
View file @
eaf4ebc4
...
...
@@ -24,7 +24,7 @@ int main(int argc,char ** argv)
//for(double i=0;i<log(lightMax);i+=0.3)
//printf("%s",act<i?"−":"+");
//printf("]");
sprintf
(
out
,
"osdc --
log=0
--color=red --duration=500 --min-duration=1
\"
%d%% %d
\"
--percent=%d"
,
int
(
100
*
act
/
log
(
lightMax
)
+
0
.
5
),
realAct
,
int
(
100
*
act
/
log
(
lightMax
)
+
0
.
5
));
sprintf
(
out
,
"osdc --
output=display
--color=red --duration=500 --min-duration=1
\"
%d%% %d
\"
--percent=%d"
,
int
(
100
*
act
/
log
(
lightMax
)
+
0
.
5
),
realAct
,
int
(
100
*
act
/
log
(
lightMax
)
+
0
.
5
));
system
(
out
);
fclose
(
f
);
return
0
;
...
...
This diff is collapsed.
Click to expand it.
volume/volumeInfo.c
+
1
−
1
View file @
eaf4ebc4
...
...
@@ -19,7 +19,7 @@ int main(int argc,char ** argv)
//for(double i=0;i<100;i+=5)
//printf("%s",act<=i?"−":"+");
//printf("]");
sprintf
(
out
,
"osdc --color=red --
log=0
--duration=500 --min-duration=1
\"
%d%% %.1lfdB
\"
--percent=%d"
,
act
,
realAct
,
act
);
sprintf
(
out
,
"osdc --color=red --
output=display
--duration=500 --min-duration=1
\"
%d%% %.1lfdB
\"
--percent=%d"
,
act
,
realAct
,
act
);
system
(
out
);
fclose
(
f
);
}
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