Skip to content

Instantly share code, notes, and snippets.

#!/usr/bin/bash
grim -g "$(wf-info | grep Geome | awk {'print $2,$3'})"
#
# Automatically generated file; DO NOT EDIT.
# Linux/x86 6.7.3 Kernel Configuration
#
CONFIG_CC_VERSION_TEXT="gcc (Ubuntu 13.2.0-13ubuntu1) 13.2.0"
CONFIG_CC_IS_GCC=y
CONFIG_GCC_VERSION=130200
CONFIG_CLANG_VERSION=0
CONFIG_AS_IS_GNU=y
CONFIG_AS_VERSION=24200
Feb 26 21:34:07 LIDG lxc-net[1020]: Warning: Extension udp revision 0 not supported, missing kernel module?
Feb 26 21:34:07 LIDG lxc-net[1020]: iptables v1.8.10 (nf_tables): Could not fetch rule set generation id: Invalid argument
Feb 26 21:34:07 LIDG lxc-net[1000]: Failed to setup lxc-net.
Feb 26 21:34:07 LIDG lxc-net[1031]: Warning: Extension udp revision 0 not supported, missing kernel module?
Feb 26 21:34:07 LIDG lxc-net[1031]: iptables v1.8.10 (nf_tables): Could not fetch rule set generation id: Invalid argument
Feb 26 21:34:07 LIDG lxc-net[1035]: Warning: Extension tcp revision 0 not supported, missing kernel module?
Feb 26 21:34:07 LIDG lxc-net[1035]: iptables v1.8.10 (nf_tables): Could not fetch rule set generation id: Invalid argument
Feb 26 21:34:07 LIDG lxc-net[1038]: Warning: Extension udp revision 0 not supported, missing kernel module?
Feb 26 21:34:07 LIDG lxc-net[1038]: iptables v1.8.10 (nf_tables): Could not fetch rule set generation id: Invalid argument
Feb 26 21:34:07 LIDG lxc-net[1041]: War
--- adb starting (pid 7120) ---
02-25 18:29:28.205 7120 7120 I adb : main.cpp:63 Android Debug Bridge version 1.0.41
02-25 18:29:28.205 7120 7120 I adb : main.cpp:63 Version 34.0.4-android-tools
02-25 18:29:28.205 7120 7120 I adb : main.cpp:63 Installed as /usr/bin/adb
02-25 18:29:28.205 7120 7120 I adb : main.cpp:63 Running on Linux 6.6.17-0-lts (x86_64)
02-25 18:29:28.205 7120 7120 I adb : main.cpp:63
02-25 18:29:28.706 7120 7120 F adb : main.cpp:160 could not install *smartsocket* listener: Address not available
--- adb starting (pid 19887) ---
02-25 18:32:18.768 19887 19887 I adb : main.cpp:63 Android Debug Bridge version 1.0.41
02-25 18:32:18.768 19887 19887 I adb : main.cpp:63 Version 34.0.4-android-tools
diff --git a/src/examples/srm-multi-session/main.c b/src/examples/srm-multi-session/main.c
index 66114b6..c4217cb 100644
--- a/src/examples/srm-multi-session/main.c
+++ b/src/examples/srm-multi-session/main.c
@@ -31,7 +31,7 @@
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
-#include <sys/poll.h>
+#include <poll.h>
#!/bin/sh
seatd_start() {
/usr/local/bin/seatd -g seatd 2> /dev/null &
}
seatd_stop() {
/bin/killall seatd 2> /dev/null
}
#!/usr/bin/bash
menu=" Minimize\n Floating Toggle\n Window Shot\n Move Workspace\n Close"
swspc () {
wspc=$(wofi -d -W 15% --prompt="Move To Worspace" --lines=2); swaymsg move window to workspace $wspc
}
active=$(swaymsg -t get_tree | jq -r 'recurse(.nodes[]?, .floating_nodes[]?) | select(.focused) | .rect | "\(.x),\(.y)"')
00:00:00.000 [INFO] [sway/main.c:338] Sway version 1.8
00:00:00.000 [INFO] [sway/main.c:339] wlroots version 0.16.0
00:00:00.004 [INFO] [sway/main.c:120] Linux LIDG 6.2.0-rc3 #1 SMP PREEMPT_DYNAMIC Tue Jan 10 14:32:39 WIB 2023 x86_64 Intel(R) Core(TM) i7-2620M CPU @ 2.70GHz GenuineIntel GNU/Linux
00:00:00.004 [INFO] [sway/main.c:136] Contents of /etc/os-release:
00:00:00.004 [INFO] [sway/main.c:120] NAME=Slackware
00:00:00.004 [INFO] [sway/main.c:120] VERSION="15.0"
00:00:00.004 [INFO] [sway/main.c:120] ID=slackware
00:00:00.004 [INFO] [sway/main.c:120] VERSION_ID=15.0
00:00:00.004 [INFO] [sway/main.c:120] PRETTY_NAME="Slackware 15.0 x86_64 (post 15.0 -current)"
00:00:00.004 [INFO] [sway/main.c:120] ANSI_COLOR="0;34"
# i3blocks configuration file
#
# The i3blocks man page describes the usage of the binary,
# and its website describes the configuration:
#
# https://vivien.github.io/i3blocks
# Global properties
separator=true
#!/bin/sh
jwq() {
jq -r 'recurse(.nodes[]?) | select(.name == "__i3_scratch").floating_nodes[].'$1', select(.name == "__i3_scratch").floating_nodes[].window_properties.title'
}
app_id=$(swaymsg -t get_tree | jwq app_id | grep -v null)
win_id=$(swaymsg -t get_tree | jwq id | grep -v null)