瀏覽代碼

Revert "Run screensaver after a period of idleness"

This reverts commit 1e18b85e56.

Revert until remaining issues are fixed.  The filter search expires
after 1 second of inactivity without the revert.
master
sin 9 年之前
父節點
當前提交
d6e89ef07f
共有 2 個檔案被更改,包括 0 行新增15 行删除
  1. +0
    -2
      config.def.h
  2. +0
    -13
      noice.c

+ 0
- 2
config.def.h 查看文件

@@ -3,8 +3,6 @@
#define EMPTY " " #define EMPTY " "


int mtimeorder = 0; /* Set to 1 to sort by time in the default case */ int mtimeorder = 0; /* Set to 1 to sort by time in the default case */
int idletimeout = 0; /* Screensaver timeout in seconds, 0 to disable */
char *idlecmd = "rain"; /* The screensaver program */


struct assoc assocs[] = { struct assoc assocs[] = {
{ "\\.(avi|mp4|mkv|mp3|ogg|flac|mov)$", "mplayer" }, { "\\.(avi|mp4|mkv|mp3|ogg|flac|mov)$", "mplayer" },


+ 0
- 13
noice.c 查看文件

@@ -82,7 +82,6 @@ struct entry *dents;
int n, cur; int n, cur;
char *path, *oldpath; char *path, *oldpath;
char *fltr; char *fltr;
int idle;


/* /*
* Layout: * Layout:
@@ -260,7 +259,6 @@ initcurses(void)
intrflush(stdscr, FALSE); intrflush(stdscr, FALSE);
keypad(stdscr, TRUE); keypad(stdscr, TRUE);
curs_set(FALSE); /* Hide cursor */ curs_set(FALSE); /* Hide cursor */
timeout(1000); /* One second */
} }


void void
@@ -316,10 +314,6 @@ nextsel(char **run)
int c, i; int c, i;


c = getch(); c = getch();
if (c == -1)
idle++;
else
idle = 0;


for (i = 0; i < LEN(bindings); i++) for (i = 0; i < LEN(bindings); i++)
if (c == bindings[i].sym) { if (c == bindings[i].sym) {
@@ -885,13 +879,6 @@ moretyping:
initcurses(); initcurses();
break; break;
} }
/* Screensaver */
if (idletimeout != 0 && idle == idletimeout) {
idle = 0;
exitcurses();
spawn(idlecmd, NULL, NULL);
initcurses();
}
} }
} }




Loading…
取消
儲存