Skip to content

Instantly share code, notes, and snippets.

View ThomasAdam's full-sized avatar
💭
Working on fvwm3

Thomas Adam ThomasAdam

💭
Working on fvwm3
View GitHub Profile
diff --git a/default-config/Makefile.am b/default-config/Makefile.am
index 4021a80..55ec99b 100644
--- a/default-config/Makefile.am
+++ b/default-config/Makefile.am
@@ -4,7 +4,8 @@ configdir = @FVWM_DATADIR@/default-config
IMAGES_DIR != find images -type d
config_DATA = config \
FvwmScript-DateTime \
- FvwmScript-Quit
+ FvwmScript-Quit \
DestroyFunc FullScreen
AddToFunc FullScreen
+ I ThisWindow (State 13) RestoreWindow
+ I TestRc (Match) Break
+ I WindowStyle !Title, !Borders, !Handles, ResizeHintOverride, State 13
+ I UpdateStyles
+ I Maximize ewmhiwa True 100 100
DestroyFunc RestoreWindow
AddToFunc RestoreWindow
conky.config = {
--#############################################
-- Settings
--#############################################
out_to_x = false,
background = false,
out_to_console = true,
update_interval = 1,
total_run_times = 0,
use_spacer = 'none',
@ThomasAdam
ThomasAdam / gist:7c19827686481383a6ff8a24bbb3bc2c
Last active February 17, 2017 21:03
FVWM: Per-state "tags" to have separate windows per desktop
# This explains how to make use of FVWM States in such a way as to emulate what other WMs make use of in terms of "groups" or
# "tags".
#
# Note that this doesn't (yet) encapsulate setting the EWMH Desktop, nor does it (yet) allow you to display more than one tag
# at a time, although that would be trivial.
#
# What this does do though, is, given tne prerequisite information on the number of Xinerama monitors there are, set up ten
# tags per monitor, and then tracks windows in these tags. Only one window can be in a tag at any one time, and sticky windows
# are supported.
cvs diff
Index: virtual.c
===================================================================
RCS file: /home/cvs/fvwm/fvwm/fvwm/virtual.c,v
retrieving revision 1.189.4.4
diff -u -p -r1.189.4.4 virtual.c
--- virtual.c 20 Sep 2014 00:28:59 -0000 1.189.4.4
+++ virtual.c 8 Mar 2016 10:09:51 -0000
@@ -2502,8 +2502,8 @@ void CMD_DesktopName(F_CMD_ARGS)
}
@ThomasAdam
ThomasAdam / init.vim
Last active March 2, 2016 18:51
Neovim init.vim file
call plug#begin()
Plug 'tpope/vim-sensible'
Plug 'tpope/vim-fugitive'
Plug 'tpope/vim-eunuch'
Plug 'tpope/vim-dispatch'
Plug 'radenling/vim-dispatch-neovim'
Plug 'chrisbra/changesPlugin'
Plug 'https://github.com/kien/rainbow_parentheses.vim.git'
Plug 'git://github.com/maciakl/vim-neatstatus.git'
diff --git a/cmd-switch-client.c b/cmd-switch-client.c
index 0f6acbf..434f891 100644
--- a/cmd-switch-client.c
+++ b/cmd-switch-client.c
@@ -93,7 +93,6 @@ cmd_switch_client_exec(struct cmd *self, struct cmd_q *cmdq)
if (cmdq->client == NULL)
return (CMD_RETURN_NORMAL);
- s = state->tflag.s;
if (state->tflag.wl != NULL) {
diff --git a/cmd-queue.c b/cmd-queue.c
index be648d4..52e7245 100644
--- a/cmd-queue.c
+++ b/cmd-queue.c
@@ -185,13 +185,14 @@ cmdq_append(struct cmd_q *cmdq, struct cmd_list *cmdlist, struct mouse_event *m)
static enum cmd_retval
cmdq_continue_one(struct cmd_q *cmdq)
{
- struct cmd *cmd = cmdq->cmd;
- const char *name = cmd->entry->name;
diff --git a/cmd-select-pane.c b/cmd-select-pane.c
index 5ea4bdc..ea672c4 100644
--- a/cmd-select-pane.c
+++ b/cmd-select-pane.c
@@ -146,6 +146,7 @@ cmd_select_pane_exec(struct cmd *self, struct cmd_q *cmdq)
server_status_window(wl->window);
server_redraw_window_borders(wl->window);
}
+ server_redraw_window(wl->window);
@ThomasAdam
ThomasAdam / gdb-trace
Created November 21, 2014 11:32
tmux gdb trace
(gdb) bt
#0 format_window_pane (ft=ft@entry=0x24e0510, wp=wp@entry=0x24dfe60) at format.c:542
#1 0x000000000042f9d4 in status_replace (c=c@entry=0x23ac090, s=0x245c870, s@entry=0x0, wl=0x2466c70, wl@entry=0x0, wp=0x24dfe60, wp@entry=0x0, fmt=fmt@entry=0x23a0270 "#S:#I:#W - \"#T\"", t=1416569220, jobsflag=1) at status.c:480
#2 0x0000000000429740 in server_client_set_title (c=0x23ac090) at server-client.c:791
#3 0x0000000000429968 in server_client_check_redraw (c=0x0, c@entry=0x23ac090) at server-client.c:744
#4 0x00000000004299c4 in server_client_loop () at server-client.c:507
#5 0x000000000042bc74 in server_loop () at server.c:204
#6 0x000000000042c1a3 in server_start (lockfd=lockfd@entry=5, lockfile=0x23a3310 "\260G<\002") at server.c:192
#7 0x0000000000405820 in client_connect (path=0x67fec0 <socket_path> "/home/local/tmp/tmux-1007/default", start_server=1) at client.c:152
#8 0x0000000000405bfc in client_main (argc=argc@entry=2, argv=argv@entry=0x7fffaeefd3e0, flags=flags@entry=65536) at client.c:2