ソースを参照

2023-08-02

master
RinRi 9ヶ月前
コミット
ee935920b4
29個のファイルの変更30行の追加19行の削除
  1. +9
    -0
      Makefile
  2. バイナリ
      a.out
  3. バイナリ
      components/battery.o
  4. +1
    -1
      components/cpu.c
  5. バイナリ
      components/cpu.o
  6. バイナリ
      components/datetime.o
  7. バイナリ
      components/disk.o
  8. バイナリ
      components/entropy.o
  9. バイナリ
      components/hostname.o
  10. バイナリ
      components/ip.o
  11. バイナリ
      components/kernel_release.o
  12. バイナリ
      components/keyboard_indicators.o
  13. バイナリ
      components/keymap.o
  14. バイナリ
      components/load_avg.o
  15. バイナリ
      components/netspeeds.o
  16. バイナリ
      components/num_files.o
  17. バイナリ
      components/ram.o
  18. バイナリ
      components/run_command.o
  19. バイナリ
      components/swap.o
  20. バイナリ
      components/temperature.o
  21. バイナリ
      components/uptime.o
  22. バイナリ
      components/user.o
  23. バイナリ
      components/volume.o
  24. バイナリ
      components/wifi.o
  25. +10
    -9
      config.def.h
  26. +10
    -9
      config.h
  27. バイナリ
      slstatus
  28. バイナリ
      slstatus.o
  29. バイナリ
      util.o

+ 9
- 0
Makefile ファイルの表示

@@ -62,6 +62,15 @@ install: all
cp -f slstatus.1 "$(DESTDIR)$(MANPREFIX)/man1"
chmod 644 "$(DESTDIR)$(MANPREFIX)/man1/slstatus.1"

reinstall: all
mkdir -p "$(DESTDIR)$(PREFIX)/bin"
cp -f slstatus "$(DESTDIR)$(PREFIX)/bin"
chmod 755 "$(DESTDIR)$(PREFIX)/bin/slstatus"
mkdir -p "$(DESTDIR)$(MANPREFIX)/man1"
cp -f slstatus.1 "$(DESTDIR)$(MANPREFIX)/man1"
chmod 644 "$(DESTDIR)$(MANPREFIX)/man1/slstatus.1"
killall slstatus

uninstall:
rm -f "$(DESTDIR)$(PREFIX)/bin/slstatus"
rm -f "$(DESTDIR)$(MANPREFIX)/man1/slstatus.1"

バイナリ
a.out ファイルの表示


バイナリ
components/battery.o ファイルの表示


+ 1
- 1
components/cpu.c ファイルの表示

@@ -44,7 +44,7 @@
return NULL;
}

return bprintf("%d", (int)(100 *
return bprintf("%03d", (int)(100 *
((b[0] + b[1] + b[2] + b[5] + b[6]) -
(a[0] + a[1] + a[2] + a[5] + a[6])) / sum));
}


バイナリ
components/cpu.o ファイルの表示


バイナリ
components/datetime.o ファイルの表示


バイナリ
components/disk.o ファイルの表示


バイナリ
components/entropy.o ファイルの表示


バイナリ
components/hostname.o ファイルの表示


バイナリ
components/ip.o ファイルの表示


バイナリ
components/kernel_release.o ファイルの表示


バイナリ
components/keyboard_indicators.o ファイルの表示


バイナリ
components/keymap.o ファイルの表示


バイナリ
components/load_avg.o ファイルの表示


バイナリ
components/netspeeds.o ファイルの表示


バイナリ
components/num_files.o ファイルの表示


バイナリ
components/ram.o ファイルの表示


バイナリ
components/run_command.o ファイルの表示


バイナリ
components/swap.o ファイルの表示


バイナリ
components/temperature.o ファイルの表示


バイナリ
components/uptime.o ファイルの表示


バイナリ
components/user.o ファイルの表示


バイナリ
components/volume.o ファイルの表示


バイナリ
components/wifi.o ファイルの表示


+ 10
- 9
config.def.h ファイルの表示

@@ -63,14 +63,15 @@ static const char unknown_str[] = "n/a";
*/
static const struct arg args[] = {
/* function format argument */
{ keymap, "[%s] ", "NULL"},
{ username, ":%s@", "NULL"},
{ username, "^c#fbdf90^^b#1e1e2e^ :%s@", "NULL"},
{ hostname, "%s ", "NULL"},
{ run_command, ":%s ", "amixer sget Master | awk -F\"[][]\" '/%/ { print $2 }' | head -n1" },
{ battery_perc, ":%s|", "BAT1"},
{ battery_state, "%s ", "BAT1"},
{ run_command, ":%s ", "/home/rinri/scripts/status/brightness.sh"},
{ cpu_perc, ":%02s ", "NULL"},
{ ram_free, ":%s ", "NULL"},
{ datetime, "%s", "%a %F %H:%M" },
{ run_command, "^c#81d4ee^^b#1e1e2e^ %s | ", "~/scripts/mute.sh"},
{ run_command, ":%s ", "pactl get-sink-volume @DEFAULT_SINK@ | grep -o \"[0-9]*%\" | head -1" },
{ run_command, "%s", "~/scripts/status/battery.sh"},
{ battery_perc, ":%s|", "BAT1"},
{ battery_state, "%s ^b#1e1e2e^", "BAT1"},
{ run_command, "^c#d990cd^ :%s ", "~/scripts/status/brightness.sh"},
{ cpu_perc, "^c#fbdf90^ :%s ", "NULL"},
{ ram_free, "^c#81d4ee^ :%s ", "NULL"},
{ run_command, "%s^d^ ", "~/scripts/status/date.sh"}
};

+ 10
- 9
config.h ファイルの表示

@@ -63,14 +63,15 @@ static const char unknown_str[] = "n/a";
*/
static const struct arg args[] = {
/* function format argument */
{ keymap, "[%s] ", "NULL"},
{ username, ":%s@", "NULL"},
{ username, "^c#fbdf90^^b#1e1e2e^ :%s@", "NULL"},
{ hostname, "%s ", "NULL"},
{ run_command, ":%s ", "amixer sget Master | awk -F\"[][]\" '/%/ { print $2 }' | head -n1" },
{ battery_perc, ":%s|", "BAT1"},
{ battery_state, "%s ", "BAT1"},
{ run_command, ":%s ", "/home/rinri/scripts/status/brightness.sh"},
{ cpu_perc, ":%02s ", "NULL"},
{ ram_free, ":%s ", "NULL"},
{ datetime, "%s", "%a %F %H:%M" },
{ run_command, "^c#81d4ee^^b#1e1e2e^ %s | ", "~/scripts/mute.sh"},
{ run_command, ":%s ", "pactl get-sink-volume @DEFAULT_SINK@ | grep -o \"[0-9]*%\" | head -1" },
{ run_command, "%s", "~/scripts/status/battery.sh"},
{ battery_perc, ":%s|", "BAT1"},
{ battery_state, "%s ^b#1e1e2e^", "BAT1"},
{ run_command, "^c#d990cd^ :%s ", "~/scripts/status/brightness.sh"},
{ cpu_perc, "^c#fbdf90^ :%s ", "NULL"},
{ ram_free, "^c#81d4ee^ :%s ", "NULL"},
{ run_command, "%s^d^ ", "~/scripts/status/date.sh"}
};

バイナリ
slstatus ファイルの表示


バイナリ
slstatus.o ファイルの表示


バイナリ
util.o ファイルの表示


読み込み中…
キャンセル
保存