mirror of
https://github.com/eRgo35/dots.git
synced 2025-12-16 15:36:11 +01:00
patch.def.h sync
This commit is contained in:
@@ -19,7 +19,7 @@
|
||||
* Awesomebar takes precedence over fancybar.
|
||||
* https://dwm.suckless.org/patches/awesomebar/
|
||||
*/
|
||||
#define BAR_AWESOMEBAR_PATCH 0
|
||||
#define BAR_AWESOMEBAR_PATCH 1
|
||||
|
||||
/* This patch depends on statuscmd patch and adds integration with a (patched)
|
||||
* dwmblocks instance to give a clickable status bar. One must not necessarily
|
||||
@@ -151,7 +151,7 @@
|
||||
* This patch is incompatible with the extrabar patch.
|
||||
* https://dwm.suckless.org/patches/status2d/
|
||||
*/
|
||||
#define BAR_STATUS2D_PATCH 0
|
||||
#define BAR_STATUS2D_PATCH 1
|
||||
|
||||
/* Supplementary patch should you want to disable alpha for the status2d section */
|
||||
#define BAR_STATUS2D_NO_ALPHA_PATCH 0
|
||||
@@ -167,7 +167,7 @@
|
||||
/* The systray patch adds systray for the status bar.
|
||||
* https://dwm.suckless.org/patches/systray/
|
||||
*/
|
||||
#define BAR_SYSTRAY_PATCH 0
|
||||
#define BAR_SYSTRAY_PATCH 1
|
||||
|
||||
/* Show tag symbols in the bar. */
|
||||
#define BAR_TAGS_PATCH 1
|
||||
@@ -331,7 +331,7 @@
|
||||
/* Allows the bar height to be explicitly set rather than being derived from font.
|
||||
* https://dwm.suckless.org/patches/bar_height/
|
||||
*/
|
||||
#define BAR_HEIGHT_PATCH 0
|
||||
#define BAR_HEIGHT_PATCH 1
|
||||
|
||||
/* This patch prevents dwm from drawing tags with no clients (i.e. vacant) on the bar.
|
||||
* https://dwm.suckless.org/patches/hide_vacant_tags/
|
||||
@@ -367,7 +367,7 @@
|
||||
* toggled in unison when vanitygaps are toggled. Increasing or decreasing gaps during runtime
|
||||
* will not affect the bar padding.
|
||||
*/
|
||||
#define BAR_PADDING_VANITYGAPS_PATCH 0
|
||||
#define BAR_PADDING_VANITYGAPS_PATCH 1
|
||||
|
||||
/* This patch adds simple markup for status messages using pango markup.
|
||||
* This depends on the pango library v1.44 or greater.
|
||||
@@ -441,7 +441,7 @@
|
||||
/* Adds a window task switcher toggled using alt-tab.
|
||||
* https://dwm.suckless.org/patches/alt-tab/
|
||||
*/
|
||||
#define ALT_TAB_PATCH 0
|
||||
#define ALT_TAB_PATCH 1
|
||||
|
||||
/* All floating windows are centered, like the center patch, but without a rule.
|
||||
* The center patch takes precedence over this patch.
|
||||
@@ -466,13 +466,13 @@
|
||||
* This patch takes precedence over ATTACHBELOW_PATCH.
|
||||
* https://dwm.suckless.org/patches/attachaside/
|
||||
*/
|
||||
#define ATTACHASIDE_PATCH 0
|
||||
#define ATTACHASIDE_PATCH 1
|
||||
|
||||
/* This patch adds new clients below the selected client.
|
||||
* This patch takes precedence over ATTACHBOTTOM_PATCH.
|
||||
* https://dwm.suckless.org/patches/attachbelow/
|
||||
*/
|
||||
#define ATTACHBELOW_PATCH 0
|
||||
#define ATTACHBELOW_PATCH 1
|
||||
|
||||
/* This patch adds new clients at the bottom of the stack.
|
||||
* https://dwm.suckless.org/patches/attachbottom/
|
||||
@@ -555,7 +555,7 @@
|
||||
/* The cyclelayouts patch lets you cycle through all your layouts.
|
||||
* https://dwm.suckless.org/patches/cyclelayouts/
|
||||
*/
|
||||
#define CYCLELAYOUTS_PATCH 0
|
||||
#define CYCLELAYOUTS_PATCH 1
|
||||
|
||||
/* Make dwm respect _MOTIF_WM_HINTS property, and not draw borders around windows requesting
|
||||
* for it. Some applications use this property to notify window managers to not draw window
|
||||
@@ -680,7 +680,7 @@
|
||||
* again it shows the bar and restores the layout that was active before going fullscreen.
|
||||
* https://dwm.suckless.org/patches/fullscreen/
|
||||
*/
|
||||
#define FULLSCREEN_PATCH 0
|
||||
#define FULLSCREEN_PATCH 1
|
||||
|
||||
/* This patch provides a keybinding to rotate all clients in the currently selected
|
||||
* area (master or stack) without affecting the other area.
|
||||
@@ -820,7 +820,7 @@
|
||||
/* Removes the border when there is only one window visible.
|
||||
* https://dwm.suckless.org/patches/noborder/
|
||||
*/
|
||||
#define NOBORDER_PATCH 0
|
||||
#define NOBORDER_PATCH 1
|
||||
|
||||
/* Enable modifying or removing dmenu in config.def.h which resulted previously in a
|
||||
* compilation error because two lines of code hardcode dmenu into dwm.
|
||||
@@ -942,7 +942,7 @@
|
||||
* Additionally dwm can quit cleanly by using kill -TERM dwmpid.
|
||||
* https://dwm.suckless.org/patches/restartsig/
|
||||
*/
|
||||
#define RESTARTSIG_PATCH 0
|
||||
#define RESTARTSIG_PATCH 1
|
||||
|
||||
/* Adds rio-like drawing to resize the selected client.
|
||||
* This depends on an external tool slop being installed.
|
||||
@@ -981,10 +981,10 @@
|
||||
* https://lists.suckless.org/hackers/2004/17205.html
|
||||
* https://dwm.suckless.org/patches/scratchpads/
|
||||
*/
|
||||
#define SCRATCHPADS_PATCH 0
|
||||
#define SCRATCHPADS_PATCH 1
|
||||
|
||||
/* Minor alteration of the above allowing clients to keep their size and position when shown */
|
||||
#define SCRATCHPADS_KEEP_POSITION_AND_SIZE_PATCH 0
|
||||
#define SCRATCHPADS_KEEP_POSITION_AND_SIZE_PATCH 1
|
||||
|
||||
/* This alternative patch enables a scratchpad feature in dwm similar to the scratchpad
|
||||
* feature in i3wm.
|
||||
@@ -1002,7 +1002,7 @@
|
||||
*
|
||||
* The above is not persisted across reboots, however.
|
||||
*/
|
||||
#define SEAMLESS_RESTART_PATCH 0
|
||||
#define SEAMLESS_RESTART_PATCH 1
|
||||
|
||||
/* As opposed to the original patch this only adds a rule option allowing fake fullscreen
|
||||
* to be enabled for applications when they start. This is intended to be used in combination
|
||||
@@ -1122,7 +1122,7 @@
|
||||
*
|
||||
* https://github.com/bakkeby/patches/wiki/steam
|
||||
*/
|
||||
#define STEAM_PATCH 0
|
||||
#define STEAM_PATCH 1
|
||||
|
||||
/* Adds toggleable keyboard shortcut to make a client 'sticky', i.e. visible on all tags.
|
||||
* https://dwm.suckless.org/patches/sticky/
|
||||
@@ -1234,7 +1234,7 @@
|
||||
* adjacent monitor.
|
||||
* https://github.com/bakkeby/patches/blob/master/dwm/dwm-tagswapmon-6.2.diff
|
||||
*/
|
||||
#define TAGSWAPMON_PATCH 0
|
||||
#define TAGSWAPMON_PATCH 1
|
||||
|
||||
/* Sync tag actions across all monitors.
|
||||
* This is comparable to a sort of pseudo-desktop environment.
|
||||
@@ -1303,7 +1303,7 @@
|
||||
* https://github.com/bakkeby/patches/blob/master/dwm/dwm-vanitygaps-6.2.diff
|
||||
* https://github.com/bakkeby/patches/blob/master/dwm/dwm-cfacts-vanitygaps-6.2.diff
|
||||
*/
|
||||
#define VANITYGAPS_PATCH 0
|
||||
#define VANITYGAPS_PATCH 1
|
||||
|
||||
/* This patch adds outer gaps for the monocle layout.
|
||||
* Most gaps patches tries to avoid gaps on the monocle layout, as it is often used as a
|
||||
@@ -1383,7 +1383,7 @@
|
||||
/* Bottomstack horizontal layout.
|
||||
* https://dwm.suckless.org/patches/bottomstack/
|
||||
*/
|
||||
#define BSTACKHORIZ_LAYOUT 0
|
||||
#define BSTACKHORIZ_LAYOUT 1
|
||||
|
||||
/* Centered master layout.
|
||||
* https://dwm.suckless.org/patches/centeredmaster/
|
||||
@@ -1409,12 +1409,12 @@
|
||||
/* Fibonacci dwindle layout.
|
||||
* https://dwm.suckless.org/patches/fibonacci/
|
||||
*/
|
||||
#define FIBONACCI_DWINDLE_LAYOUT 0
|
||||
#define FIBONACCI_DWINDLE_LAYOUT 1
|
||||
|
||||
/* Fibonacci spiral layout.
|
||||
* https://dwm.suckless.org/patches/fibonacci/
|
||||
*/
|
||||
#define FIBONACCI_SPIRAL_LAYOUT 0
|
||||
#define FIBONACCI_SPIRAL_LAYOUT 1
|
||||
|
||||
/* Flextile deluxe layout.
|
||||
* A revamped, more flexible, and over-the-top version of the original flextile layout.
|
||||
@@ -1430,7 +1430,7 @@
|
||||
/* Gridmode (grid) layout.
|
||||
* https://dwm.suckless.org/patches/gridmode/
|
||||
*/
|
||||
#define GRIDMODE_LAYOUT 0
|
||||
#define GRIDMODE_LAYOUT 1
|
||||
|
||||
/* Horizontal grid (horizgrid) layout.
|
||||
* https://dwm.suckless.org/patches/horizgrid/
|
||||
|
||||
49
dwm/.dwm/xinitrc.example
Normal file
49
dwm/.dwm/xinitrc.example
Normal file
@@ -0,0 +1,49 @@
|
||||
#!/bin/bash
|
||||
# Taken from:
|
||||
# https://raw.github.com/kaihendry/Kai-s--HOME/master/.xinitrc
|
||||
#
|
||||
# for terminus font in Archlinux :(
|
||||
xset +fp /usr/share/fonts/local
|
||||
xset fp rehash
|
||||
|
||||
xset -b # disable bell
|
||||
eval `/usr/bin/ssh-agent`
|
||||
|
||||
if test -f /usr/lib/openssh/x11-ssh-askpass # Archlinux
|
||||
then
|
||||
SSH_ASKPASS=/usr/lib/openssh/x11-ssh-askpass ssh-add < /dev/null
|
||||
fi
|
||||
|
||||
if test -f /usr/lib/ssh/x11-ssh-askpass # Debian
|
||||
then
|
||||
SSH_ASKPASS=/usr/lib/ssh/x11-ssh-askpass ssh-add < /dev/null
|
||||
fi
|
||||
|
||||
# 1280x720 = 720p X220
|
||||
hash fswebcam && fswebcam -q --no-banner -r 1280x720 ~/private/login-photos/$(date +%Y-%m-%dT%H).jpg &
|
||||
|
||||
xrdb -merge $HOME/.Xresources
|
||||
xmodmap ~/.Xmodmap
|
||||
setxkbmap -layout gb -option ctrl:nocaps
|
||||
|
||||
hash chromium && chromium &
|
||||
|
||||
while true
|
||||
do
|
||||
VOL=$(amixer get Master | tail -1 | sed 's/.*\[\([0-9]*%\)\].*/\1/')
|
||||
LOCALTIME=$(date +%Z\=%Y-%m-%dT%H:%M)
|
||||
OTHERTIME=$(TZ=Europe/London date +%Z\=%H:%M)
|
||||
IP=$(for i in `ip r`; do echo $i; done | grep -A 1 src | tail -n1) # can get confused if you use vmware
|
||||
TEMP="$(($(cat /sys/class/thermal/thermal_zone0/temp) / 1000))C"
|
||||
|
||||
if acpi -a | grep off-line > /dev/null
|
||||
then
|
||||
BAT="Bat. $(acpi -b | awk '{ print $4 " " $5 }' | tr -d ',')"
|
||||
xsetroot -name "$IP $BAT $VOL $TEMP $LOCALTIME $OTHERTIME"
|
||||
else
|
||||
xsetroot -name "$IP $VOL $TEMP $LOCALTIME $OTHERTIME"
|
||||
fi
|
||||
sleep 20s
|
||||
done &
|
||||
|
||||
exec dwm
|
||||
Reference in New Issue
Block a user