Skip to content
Snippets Groups Projects
Commit eaf4ebc4 authored by Jiří Kalvoda's avatar Jiří Kalvoda
Browse files

Using new osdd.

parent 76bf3cf1
No related branches found
No related tags found
No related merge requests found
......@@ -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"
......
......@@ -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;
......
......@@ -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;
......
......@@ -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);
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment