This commit is contained in:
Luca Bilke 2023-05-30 23:10:27 +02:00
commit c4c8faaaa1
3 changed files with 5 additions and 26 deletions

3
TODO.md Normal file
View File

@ -0,0 +1,3 @@
# TODO
- [ ] Integrate networkmanager-dmenu (this depends on how I will implement either polkit or sudoers changes)
- [ ] Bind to disable touchpad

View File

@ -1,6 +1,6 @@
/* See LICENSE file for copyright and license details. */
#define BROWSER "firefox"
#define TERMINAL "kitty"
#define TERMINAL "kitty" /* WARN: The scratchpad commands on lines 105 - 111 set kitty config options */
#define PLAYERCTL "firefox" /* this is currently only passed to playerctl as the client to control */
/* appearance */
static const unsigned int borderpx = 2;
@ -115,7 +115,7 @@ static const char *sphelp[] = { "n", TERMINAL,"-o", "background_opacity=0.8", "-
static const Key keys[] = {
/* modifier key function argument */
{ MODKEY, XK_F1, togglescratch, {.v = sphelp} },
{ MODKEY, XK_F2, spawn, SHCMD("pidof picom && killall picom || setsid -f picom") },
{ MODKEY, XK_F2, spawn, SHCMD("pidof xcompmgr && killall xcompmgr || setsid -f xcompmgr") },
{ MODKEY, XK_F3, togglescratch, {.v = spmix} },
// { MODKEY, XK_F4, spawn, {.v = (const char *[]){NULL}} },
// { MODKEY, XK_F5, spawn, {.v = (const char *[]){NULL}} },

24
test.sh
View File

@ -1,24 +0,0 @@
#!/bin/bash
#set -o xtrace
set -o errexit -o nounset -o pipefail -o errtrace
IFS=$'\n\t'
disp_num=1
disp=:$disp_num
Xephyr -screen 2560x1440 $disp -ac -br -sw-cursor &
pid=$!
while [ ! -e /tmp/.X11-unix/X${disp_num} ] ; do
sleep 0.1
done
export DISPLAY=$disp
xrdb "${XDG_CONFIG_HOME:-$HOME/.config}/x11/xresources" & xrdbpid=$!
setbg &
remaps &
[ -n "$xrdbpid" ] && wait "$xrdbpid"
./dwm
kill $pid
exit 0