Home
last modified time | relevance | path

Searched refs:cur_ws (Results 1 – 25 of 58) sorted by relevance

123

/dports/misc/clifm/clifm-1.3/src/
H A Dnavigation.c49 if (i == cur_ws) in workspaces()
74 if (tmp_ws == cur_ws) { in workspaces()
80 if ((cur_ws + 1) < MAX_WS) in workspaces()
81 tmp_ws = cur_ws + 1; in workspaces()
85 if ((cur_ws - 1) >= 0) in workspaces()
86 tmp_ws = cur_ws - 1; in workspaces()
110 cur_ws = tmp_ws; in workspaces()
196 free(ws[cur_ws].path); in cd_function()
233 free(ws[cur_ws].path); in cd_function()
383 free(ws[cur_ws].path); in set_path()
[all …]
H A Dprompt.c231 switch(cur_ws + 1) { in decode_prompt()
258 if (!ws[cur_ws].path) { in decode_prompt()
266 if (strncmp(ws[cur_ws].path, user.home, in decode_prompt()
268 tmp_path = home_tilde(ws[cur_ws].path); in decode_prompt()
270 tmp_path = ws[cur_ws].path; in decode_prompt()
450 char *ret = strrchr(ws[cur_ws].path, '/'); in prompt()
451 if (ret && ret != ws[cur_ws].path) in prompt()
458 size_t path_len = strlen(ws[cur_ws].path), i; in prompt()
461 if (ws[cur_ws].path[i] != '/') in prompt()
464 ws[cur_ws].path[i] = '\0'; in prompt()
[all …]
H A Dremotes.c167 free(ws[cur_ws].path); in remotes_mount()
168 ws[cur_ws].path = savestring(remotes[i].mountpoint, in remotes_mount()
170 add_to_jumpdb(ws[cur_ws].path); in remotes_mount()
171 add_to_dirhist(ws[cur_ws].path); in remotes_mount()
204 if (strncmp(remotes[i].mountpoint, ws[cur_ws].path, mlen) == 0) { in remotes_unmount()
224 free(ws[cur_ws].path); in remotes_unmount()
225 ws[cur_ws].path = savestring(remotes[i].mountpoint, in remotes_unmount()
371 if (*ws[cur_ws].path == *remotes[i].mountpoint in autounmount_remotes()
372 && strcmp(remotes[i].mountpoint, ws[cur_ws].path) == 0) { in autounmount_remotes()
380 xchdir(ws[cur_ws].path, NO_TITLE); in autounmount_remotes()
H A Dsearch.c160 (search_path[1] == ws[cur_ws].path[1] in search_glob()
241 if (xchdir(ws[cur_ws].path, NO_TITLE) == -1) in search_glob()
243 ws[cur_ws].path, strerror(errno)); in search_glob()
470 ws[cur_ws].path, strerror(errno)); in search_glob()
563 || (search_path[1] == ws[cur_ws].path[1] in search_regex()
589 ws[cur_ws].path, strerror(errno)); in search_regex()
644 if (xchdir(ws[cur_ws].path, NO_TITLE) == -1) in search_regex()
646 ws[cur_ws].path, strerror(errno)); in search_regex()
677 if (xchdir(ws[cur_ws].path, NO_TITLE) == -1) in search_regex()
679 ws[cur_ws].path, strerror(errno)); in search_regex()
[all …]
H A Dtrash.c302 if (xchdir(ws[cur_ws].path, NO_TITLE) == -1) {
304 ws[cur_ws].path, strerror(errno));
543 if (xchdir(ws[cur_ws].path, NO_TITLE) == -1) {
545 PROGRAM_NAME, ws[cur_ws].path, strerror(errno));
552 if (xchdir(ws[cur_ws].path, NO_TITLE) == -1) {
554 ws[cur_ws].path, strerror(errno));
834 if (xchdir(ws[cur_ws].path, NO_TITLE) == -1) {
854 if (xchdir(ws[cur_ws].path, NO_TITLE) == -1) {
872 if (xchdir(ws[cur_ws].path, NO_TITLE) == -1) {
874 ws[cur_ws].path, strerror(errno));
[all …]
H A Dselection.c271 if (*ws[cur_ws].path == '/' && !*(ws[cur_ws].path + 1)) { in sel_glob()
276 tmp = (char *)xnmalloc(strlen(ws[cur_ws].path) in sel_glob()
278 sprintf(tmp, "%s/%s", ws[cur_ws].path, matches[i]); in sel_glob()
337 if (*ws[cur_ws].path == '/' && !*(ws[cur_ws].path + 1)) { in sel_regex()
508 snprintf(dir, PATH_MAX, "%s/%s", ws[cur_ws].path, tmpdir); in sel_function()
555 if (*ws[cur_ws].path == '/' && !*(ws[cur_ws].path + 1)) { in sel_function()
560 tmp = (char *)xnmalloc(strlen(ws[cur_ws].path) in sel_function()
562 sprintf(tmp, "%s/%s", ws[cur_ws].path, args[i]); in sel_function()
613 if (sel_path && xchdir(ws[cur_ws].path, NO_TITLE) == -1) { in sel_function()
933 pwd_len = strlen(ws[cur_ws].path); in normalize_path()
[all …]
H A Dprofiles.c260 cur_ws = UNSET; in profile_set()
265 if (cur_ws == UNSET) in profile_set()
266 cur_ws = DEF_CUR_WS; in profile_set()
268 if (!ws[cur_ws].path) { in profile_set()
275 ws[cur_ws].path = savestring(cwd, strlen(cwd)); in profile_set()
278 if (xchdir(ws[cur_ws].path, SET_TITLE) == -1) { in profile_set()
279 fprintf(stderr, "%s: %s: %s\n", PROGRAM_NAME, ws[cur_ws].path, in profile_set()
H A Dinit.c204 if (cur_ws == UNSET) in set_start_path()
205 cur_ws = DEF_CUR_WS; in set_start_path()
208 cur_ws = DEF_CUR_WS; in set_start_path()
211 cur_ws, cur_ws + 1); in set_start_path()
223 if (!ws[cur_ws].path) { in set_start_path()
258 if (ws[cur_ws].path) in set_start_path()
259 free(ws[cur_ws].path); in set_start_path()
1276 cur_ws = iopt - 1; in external_arguments()
1489 if (cur_ws == UNSET) in external_arguments()
1491 if (ws[cur_ws].path) in external_arguments()
[all …]
H A Dmisc.c543 path_dir = (char *)xnmalloc(strlen(ws[cur_ws].path)
545 sprintf(path_dir, "%s/%s", ws[cur_ws].path, deq_dir);
599 term, self, ws[cur_ws].path);
820 if ((size_t)cur_ws == i)
1411 if (ws[cur_ws].path)
1412 free(ws[cur_ws].path);
1414 ws[cur_ws].path = savestring(stdin_tmp_dir, strlen(stdin_tmp_dir));
1426 add_to_dirhist(ws[cur_ws].path);
1476 if (strcmp(ws[cur_ws].path, "/") == 0) {
1481 + strlen(ws[cur_ws].path) + 2, sizeof(char));
[all …]
H A Dmain.c132 cur_ws = UNSET, variable
808 if (ws == (struct ws_t *)NULL || !ws[cur_ws].path || !*ws[cur_ws].path) { in main()
820 set_term_title(ws[cur_ws].path); in main()
826 add_to_dirhist(ws[cur_ws].path); in main()
854 add_to_jumpdb(ws[cur_ws].path); in main()
H A Darchives.c267 free(ws[cur_ws].path); in handle_iso()
268 ws[cur_ws].path = savestring(mountpoint, strlen(mountpoint)); in handle_iso()
269 add_to_jumpdb(ws[cur_ws].path); in handle_iso()
275 add_to_dirhist(ws[cur_ws].path); in handle_iso()
985 free(ws[cur_ws].path); in archiver()
986 ws[cur_ws].path = (char *)xnmalloc(strlen(mountpoint) + 1, in archiver()
988 strcpy(ws[cur_ws].path, mountpoint); in archiver()
991 add_to_jumpdb(ws[cur_ws].path); in archiver()
997 add_to_dirhist(ws[cur_ws].path); in archiver()
H A Dautocmds.c86 int ret = strncmp(path, ws[cur_ws].path, tlen); in check_autocmds()
93 if (strncmp(autocmds[i].pattern, ws[cur_ws].path, plen - n) == 0) { in check_autocmds()
112 if (*ws[cur_ws].path == *g.gl_pathv[j] in check_autocmds()
113 && strcmp(ws[cur_ws].path, g.gl_pathv[j]) == 0) { in check_autocmds()
H A Djump.c365 if (ws[cur_ws].path[1] == jump_db[i].path[1] in dirjump()
366 && strcmp(ws[cur_ws].path, jump_db[i].path) == 0) { in dirjump()
503 if (jump_db[j].path[1] == ws[cur_ws].path[1] in dirjump()
504 && strcmp(jump_db[j].path, ws[cur_ws].path) == 0) in dirjump()
512 if (!strstr(ws[cur_ws].path, jump_db[j].path)) in dirjump()
517 if (!strstr(jump_db[j].path, ws[cur_ws].path)) in dirjump()
H A Dmedia.c199 if (strncmp(mnt, ws[cur_ws].path, mlen) == 0) {
638 free(ws[cur_ws].path);
639 ws[cur_ws].path = savestring(media[n].mnt, strlen(media[n].mnt));
647 add_to_dirhist(ws[cur_ws].path);
648 add_to_jumpdb(ws[cur_ws].path);
H A Dkeybinds.c653 if (*ws[cur_ws].path == '/' && !ws[cur_ws].path[1]) in rl_parent_dir()
663 if (*ws[cur_ws].path == '/' && !ws[cur_ws].path[1]) in rl_root_dir()
673 if (*ws[cur_ws].path == *user.home && strcmp(ws[cur_ws].path, user.home) == 0) in rl_home_dir()
1369 if (cur_ws == 0) in rl_ws1()
1378 if (cur_ws == 1) in rl_ws2()
1387 if (cur_ws == 2) in rl_ws3()
1396 if (cur_ws == 3) in rl_ws4()
H A Dactions.c184 set_term_title(ws[cur_ws].path); in run_action()
225 set_term_title(ws[cur_ws].path); in run_action()
H A Dlisting.c135 if (!ws || !ws[cur_ws].path || !*ws[cur_ws].path) in print_disk_usage()
139 if (statvfs(ws[cur_ws].path, &stat) != EXIT_SUCCESS) { in print_disk_usage()
395 event_fd = open(ws[cur_ws].path, O_EVTONLY); in set_events_checker()
397 event_fd = open(ws[cur_ws].path, O_RDONLY); in set_events_checker()
402 EV_ADD | EV_CLEAR, KQUEUE_FFLAGS, 0, ws[cur_ws].path); in set_events_checker()
1372 if ((dir = opendir(ws[cur_ws].path)) == NULL) { in list_dir_light()
1373 fprintf(stderr, "%s: %s: %s\n", PROGRAM_NAME, ws[cur_ws].path, in list_dir_light()
1677 if ((dir = opendir(ws[cur_ws].path)) == NULL) { in list_dir()
1678 fprintf(stderr, "%s: %s: %s\n", PROGRAM_NAME, ws[cur_ws].path, in list_dir()
/dports/misc/clifm/clifm-1.3/misc/codecov/
H A Dnavigation.c.gcov64 #####: 49: if (i == cur_ws)
131 16: 74: if (tmp_ws == cur_ws)
145 1: 77: if ((cur_ws + 1) < MAX_WS)
149 1: 78: tmp_ws = cur_ws + 1;
163 1: 82: if ((cur_ws - 1) >= 0)
167 1: 83: tmp_ws = cur_ws - 1;
218 17: 107: cur_ws = tmp_ws;
426 4: 192: free(ws[cur_ws].path);
516 39: 229: free(ws[cur_ws].path);
908 23: 401: free(ws[cur_ws].path);
[all …]
H A Dprompt.c.gcov361 507: 224: sprintf(s, "%d", cur_ws + 1);
391 509: 241: if (!ws[cur_ws].path) {
404 509: 249: if (strncmp(ws[cur_ws].path, user.home,
409 488: 251: tmp_path = home_tilde(ws[cur_ws].path);
417 21: 253: tmp_path = ws[cur_ws].path;
794 #####: 431: char *ret = strrchr(ws[cur_ws].path, '/');
795 #####: 432: if (ret && ret != ws[cur_ws].path)
810 509: 439: size_t path_len = strlen(ws[cur_ws].path), i;
821 508: 442: if (ws[cur_ws].path[i] != '/')
829 #####: 445: ws[cur_ws].path[i] = '\0';
[all …]
H A Dsearch.c.gcov325 2: 159: (search_path[1] == ws[cur_ws].path[1]
469 #####: 223: if (xchdir(ws[cur_ws].path, NO_TITLE) == -1)
475 #####: 225: ws[cur_ws].path, strerror(errno));
1012 #####: 477: ws[cur_ws].path, strerror(errno));
1231 #####: 588: || (search_path[1] == ws[cur_ws].path[1]
1290 #####: 615: ws[cur_ws].path, strerror(errno));
1390 #####: 668: if (xchdir(ws[cur_ws].path, NO_TITLE) == -1)
1396 #####: 670: ws[cur_ws].path, strerror(errno));
1496 #####: 705: if (xchdir(ws[cur_ws].path, NO_TITLE) == -1)
1502 #####: 707: ws[cur_ws].path, strerror(errno));
[all …]
H A Dremotes.c.gcov320 1: 142: free(ws[cur_ws].path);
321 2: 143: ws[cur_ws].path = savestring(remotes[i].mountpoint,
325 1: 145: add_to_jumpdb(ws[cur_ws].path);
327 1: 146: add_to_dirhist(ws[cur_ws].path);
735 #####: 308: if (*ws[cur_ws].path == *remotes[i].mountpoint
739 #####: 309: && strcmp(remotes[i].mountpoint, ws[cur_ws].path) == 0) {
764 #####: 317: xchdir(ws[cur_ws].path, NO_TITLE);
H A Dselection.c.gcov546 11: 276: if (*ws[cur_ws].path == '/' && !*(ws[cur_ws].path + 1)) {
560 11: 281: tmp = (char *)xnmalloc(strlen(ws[cur_ws].path)
564 11: 283: sprintf(tmp, "%s/%s", ws[cur_ws].path, matches[i]);
688 7: 342: if (*ws[cur_ws].path == '/' && !*(ws[cur_ws].path + 1)) {
699 7: 345: snprintf(tmp_path, PATH_MAX - 1, "%s/%s", ws[cur_ws].path,
1088 #####: 513: snprintf(dir, PATH_MAX, "%s/%s", ws[cur_ws].path, tmpdir);
1197 13: 560: if (*ws[cur_ws].path == '/' && !*(ws[cur_ws].path + 1)) {
1211 13: 565: tmp = (char *)xnmalloc(strlen(ws[cur_ws].path)
1215 13: 567: sprintf(tmp, "%s/%s", ws[cur_ws].path, args[i]);
1334 13: 618: if (sel_path && xchdir(ws[cur_ws].path, NO_TITLE) == -1) {
[all …]
/dports/x11-wm/i3/i3-4.20.1/i3bar/src/
H A Dxcb.c531 i3_ws *cur_ws = NULL, *clicked_ws = NULL, *ws_walk; in handle_button() local
538 cur_ws = ws_walk; in handle_button()
575 if (cur_ws == NULL) { in handle_button()
586 if (cur_ws == TAILQ_FIRST(walk->workspaces)) in handle_button()
589 cur_ws = TAILQ_PREV(cur_ws, ws_head, tailq); in handle_button()
600 cur_ws = TAILQ_NEXT(cur_ws, tailq); in handle_button()
603 cur_ws = clicked_ws; in handle_button()
607 if (cur_ws == NULL) { in handle_button()
609 if (cur_ws->visible && !cur_ws->focused) in handle_button()
615 if (cur_ws == NULL) in handle_button()
[all …]
/dports/x11-wm/i3-gaps/i3-4.20.1/i3bar/src/
H A Dxcb.c531 i3_ws *cur_ws = NULL, *clicked_ws = NULL, *ws_walk; in handle_button() local
538 cur_ws = ws_walk; in handle_button()
575 if (cur_ws == NULL) { in handle_button()
586 if (cur_ws == TAILQ_FIRST(walk->workspaces)) in handle_button()
589 cur_ws = TAILQ_PREV(cur_ws, ws_head, tailq); in handle_button()
600 cur_ws = TAILQ_NEXT(cur_ws, tailq); in handle_button()
603 cur_ws = clicked_ws; in handle_button()
607 if (cur_ws == NULL) { in handle_button()
609 if (cur_ws->visible && !cur_ws->focused) in handle_button()
615 if (cur_ws == NULL) in handle_button()
[all …]
/dports/x11/swayr/swayr-v0.11.2/src/
H A Dlayout.rs145 if let Some(cur_ws) = workspaces.iter().find(|ws| ws.is_current()) { in relayout_current_workspace()
149 for win in cur_ws.iter().filter(|n| n.get_type() == t::Type::Window) in relayout_current_workspace()

123