ã©ããããpmsetã³ãã³ãã使ç¨ãã㨠ããããªæ®éãåå¾ã§ãããããã (modify power management settings) 試ãã«ãã£ã¦ã¿ãã $ pmset -g ps Currenty drawing from 'AC Power' -InternalBattery-0 48%; charging; 1:09 remaining åå¾ã§ãã¦ãã ã§ãå é»ä¸ãªã®ã§ãã£ãã charging ã¨ãªã£ã¦ãã ãã¨ã¯ãããæ´å½¢ã㦠backtick ã«è¨å®ããã° screen ä¸ã«è¡¨ç¤ºã§ããã ã¾ããå¿ è¦ãªæ å ±ãæ½åºããã¹ã¯ãªãã battery ãä½ãã #!/bin/sh pmset -g ps | egrep -o '[0-9]+%' ãããã«åããã¦ã¿ãã $ ./battery 48% ãã¾ããã£ãã ãã¨ã¯ã$HOME/.screenrc ã® backtick
{{#tags}}- {{label}}
{{/tags}}