Commit Graph

1714 Commits

Author SHA1 Message Date
Sravan Balaji
99a906d9e3 Flameshot Autostart & Shortcut
- Add flameshot to autostart script
- Bind print screen button to open flameshot gui
2020-11-06 21:02:41 -05:00
Sravan Balaji
8fe17768f7 Nerd Font, Icons, & Size Changes
- Change font to NotoSans Nerd Font
- Change font size to 10
- Change tag icons and add subscript numbers
2020-11-06 21:02:40 -05:00
Sravan Balaji
bd69540724 Switch from slock to LightDM
- Add background process for light-locker
- lockcmd uses light-locker-command
- sleepcmd uses systemctl suspend
2020-11-06 21:02:40 -05:00
Sravan Balaji
e4457dd31e Media Control
- Bind media track keys to control playerctl for play/pause, next, prev
- Update README with volume and media control
2020-11-06 21:02:40 -05:00
Sravan Balaji
5e3c442a2f Volume Control
- Bind volume control keys to control PuseAudio volume
2020-11-06 21:02:40 -05:00
Sravan Balaji
b788a08745 README Update
- Add list of personal modifications
2020-11-06 21:02:40 -05:00
Sravan Balaji
e9c7ebcddc slstatus
- Add slstatus to background processes to autostart
2020-11-06 21:02:40 -05:00
Sravan Balaji
699c83b6ff GNOME Polkit Authentication Agent
- Add startup background process for polkit agent
2020-11-06 21:02:40 -05:00
Sravan Balaji
5015cfc93b Merge All Autostart Applications & Blocking Processes into Master
- Ignore applications if they don't exist rather than having separate branches for desktop and laptop
- Re-organize scripts to define arrays and run applications with for loops
2020-11-06 21:02:40 -05:00
Sravan Balaji
485c40d5f9 Lock Screen & Sleep Shortcuts
- Add keybinding to lock screen with slock
- Add keybinding to lock screen and go to sleep with slock
2020-11-06 21:02:40 -05:00
Sravan Balaji
41958715d4 Apply movestack patch
- Add keybinds to switch window between master and slaves
- Add movestack.c
2020-11-06 21:02:40 -05:00
Sravan Balaji
5ac75bb689 deadd notification center shortcut
- Add shorcut for opening deadd notification center via bash script
2020-11-06 21:02:40 -05:00
Sravan Balaji
a60b1c5d2f Rofi Launcher w/ Greenclip Manager
- Add greenclip daemon to autostart
- Add background processes section to autostart
- Remove references to dmenu
- Add rofi run and clipboard shortcuts
- Update man page to reference rofi instead of dmenu
2020-11-06 21:02:40 -05:00
Sravan Balaji
0f49dbddfb Combo Tag & View Patches
- Add combo tag & view patch
- Change tag and view functions to combotag and comboview in config.h
2020-11-06 21:02:40 -05:00
Sravan Balaji
d194f2c726 KDE Connect
- Add KDE Connect system tray indicator to autostart
2020-11-06 21:02:40 -05:00
Sravan Balaji
2769ef11ad Redshift Tray Icon
- Move redshift from autostart_blocking to autostart
- Use redshift-gtk instead of redshift to get a tray icon
2020-11-06 21:02:40 -05:00
Sravan Balaji
8faf64215e Add Deadd Autostart
- Add deadd notification center to autostart
2020-11-06 21:02:40 -05:00
Sravan Balaji
c2fa943e86 Add Network Manager Autostart
- Add network manager applet to autostart
2020-11-06 21:02:40 -05:00
Sravan Balaji
eaf997ee88 Add Blueman Autostart
- Add Blueman tray application to autostart
2020-11-06 21:02:40 -05:00
Sravan Balaji
d0b1d46ed4 Autostart Background Fix
- Run autostart programs in background
- Add Nyrna to autostart
- Move system tray startup applications to top of autostart script
2020-11-06 21:02:40 -05:00
Sravan Balaji
4134edfc38 Startup Application
- Remove extra empty line from autostart_blocking.sh
- Add PulseAudio volume control as startup application
2020-11-06 21:02:40 -05:00
Sravan Balaji
5315d6ae96 Systemtray Patch
- Add system tray patch
2020-11-06 21:02:38 -05:00
Sravan Balaji
0a4ab3b407 Move rclone out of autostart_blocking
- Put rclone sync in autostart so dwm isn't prevented from starting
2020-11-06 21:01:45 -05:00
Sravan Balaji
cc1f6ffbc2 Specify Autostart Location, README & LICENSE updates, and Add config.h
- Remove config.h from gitignore
- Move config.def.h modifications to config.h
- Restore config.def.h to original version
- Specify location of autostart instead of searching certain locations
- Rename autostart.sh to autostart_blocking.sh
- Add myself to license
- Change README to markdown and add personal changes
2020-11-06 21:01:45 -05:00
Sravan Balaji
8531dc3158 Autostart Patch w/ Modifications
- Add autostart patch
- Include config directory in autostart search dirs
- Sync cloud drives
- Start compositor
- Restore wallpaper
- Start redshift for blue light filtering
2020-11-06 21:01:45 -05:00
Sravan Balaji
ab1c6e3d00 Increase Font & Replace Icons
- Change font size to 12
- Replace music icon with podcast and spotify icons
- Remove infinity icon
2020-11-06 21:01:45 -05:00
Sravan Balaji
84d1b45060 Font Size & Color Changes
- Change font sizes to 10
- Change active font color to background for contrast with accent color
2020-11-06 21:01:45 -05:00
Sravan Balaji
96163849d6 Dracula Theme & Icons
- Change border size to 2 pixels
- Add font awesome
- Change colors to follow dracula theme
- Add unicode icons for tags
2020-11-06 21:01:45 -05:00
Sravan Balaji
cbf3a73d72 gitignore & config changes
- Add gitignore for vscode folder, dwm executable, output files, and config.h
- Change mod key to super key
- Change terminal from st to alacritty
2020-11-06 21:01:45 -05:00
Ian Remmler
61bb8b2241 Fix x coordinate calculation in buttonpress. 2020-08-21 16:13:22 +02:00
Hiltjo Posthuma
bb2e7222ba dwm.1: fix wrong text in man page 2020-07-08 18:05:50 +02:00
Alex Flierl
f04cac6d6e Fix memory leaks in drw
The function drw_fontset_free in drw.c was never called.
2020-06-11 18:32:21 +02:00
bakkeby
f09418bbb6 dwm crashes when opening 50+ clients (tile layout)
Many users new to dwm find themselves caught out by being kicked out to the login manager (dwm crashing) when they open 50+ clients for demonstration purposes. The number of clients reported varies depending on the resolution of the monitor.

The cause of this is due to how the default tile layout calculates the height of the next client based on the position of the previous client. Because clients have a minimum size the (ty) position can exceed that of the window height, resulting in (m->wh - ty) becoming negative. The negative height stored as an unsigned int results in a very large height ultimately resulting in dwm crashing.

This patch adds safeguards to prevent the ty and my positions from exceeding that of the window height.
2020-04-25 13:31:02 +02:00
Chris Down
ed3ab6b4fc drawbar: Don't shadow sw global
This jarred me a bit while reading the code, since "sw" usually refers
to the global screen geometry, but in drawbar() only it refers to
text-related geometry. Renaming it makes it more obvious that these are
not related.
2020-04-22 20:33:39 +02:00
Chris Down
f087d20e6e getatomprop: Add forward declaration
No functional changes, but for every other function we have a forward
declaration here. getatomprop should be no exception.
2020-04-22 20:33:26 +02:00
Chris Down
a8e9513783 setmfact: Unify bounds for compile-time and runtime mfact
There are two places that mfact can be set:

- In the mfact global, which is defined at compile time and passed
  into m->mfact during monitor setup. No bounds checks are performed,
  but the comment alongside it says that valid values are [0.05..0.95]:

      static const float mfact = 0.55; /* factor of master area size [0.05..0.95] */

- By setmfact, which adjusts m->mfact at runtime. It also does some
  minimum and maximum bounds checks, allowing [0.1..0.9]. Values outside
  of that range are ignored, and mfact is not adjusted.

These different thresholds mean that one cannot setmfact 0.95 or 0.05,
despite the comment above that lists the legal range for mfact.

Clarify this by enforcing the same bounds in setmfact at runtime as
those listed for mfact at compile time.
2020-04-20 17:56:41 +02:00
Hiltjo Posthuma
c82db690cc config.mk: fix POSIX_C_SOURCE macro for feature test for snprintf()
The feature test was incorrect:
_POSIX_C_SOURCE=2

"The value 2 or greater additionally exposes definitions for POSIX.2-1992."
http://man7.org/linux/man-pages/man7/feature_test_macros.7.html

A higher value is needed (atleast 1995):
https://pubs.opengroup.org/onlinepubs/9699919799/functions/snprintf.html

FreeBSD feature test macro:
on
https://github.com/freebsd/freebsd/blob/master/include/stdio.h line 297

This was already fixed in dmenu.

This fixes a warning on FreeBSD, reported by Plasmoduck on IRC, thanks.
2020-04-03 15:36:32 +02:00
Anselm R Garbe
cb3f58ad06 Prepare 6.2 release. 6.2 2019-02-02 04:50:42 -08:00
Hiltjo Posthuma
b69c870a30 pledge: add rpath promise for the ugly Xft font fallback 2018-06-02 17:15:42 +02:00
Hiltjo Posthuma
e78b4a9207 Makefile: just show the compiler output
Don't be fancy and just show the actual output so debugging is simpler.
2018-06-02 17:10:28 +02:00
Klemens Nanni
3cd4023fb3 Do not strip at link stage
Building with debug symbols is worthless unless LDFLAGS are manually
adjusted as well.
2018-06-02 16:56:10 +02:00
Klemens Nanni
f40f86fa87 Pledge on OpenBSD 2018-05-25 11:49:30 +02:00
Hiltjo Posthuma
c3a2e016bb config.def.h: ClkTagBar missing from comment
by Christopher Drelich <cd@cdrakka.com>

Patch was mangled on the ML, also adjusted the order to be the same as
the enum in dwm.c
2018-05-25 06:56:36 +02:00
Christopher Drelich
c8e9479186 Function declarations in correct order.
In dwm.c function declarations are in alphabetical order except for
updategeom(). There doesn't appear to be any reason for this, so this
patch corrects that, and now all function declarations are in
alphabetical order.
2018-05-12 19:19:20 +02:00
Hiltjo Posthuma
10dfa65860 remove old TODO and BUGS entries
the bug in the dwm man page is an (ancient) Java issue.

Thanks David and quinq for the patches and feedback!
2018-05-12 19:14:19 +02:00
Hiltjo Posthuma
3bd8466e93 update README: remove mentioning the old dextra repo
Thanks Christopher Drelich <cd@cdrakka.com>
2018-03-14 21:03:11 +01:00
Christopher Drelich
76c8c16d79 All functions in alphabetical order except for this one. 2018-03-14 21:02:06 +01:00
Christopher Drelich
3cb34830eb ColBorder has been moved to the enum with ColFg and ColBg. 2018-03-14 17:46:48 +01:00
Hiltjo Posthuma
db2236001c dont NUL terminate _NET_WM_NAME
Reported by Kernc, thanks!

"This makes a particular program that uses libwnck [1] fail after:

    Wnck-WARNING **: Property _NET_WM_NAME contained invalid UTF-8

in this code [2] because the returned string contains a '\0' and the
documentation for g_utf8_validate() [3] explicitly states that when
string length is provided, no nul bytes are allowed."

It is not entirely clear it is incorrect, other WM's seem to not
NUL terminate it either though.
2017-12-27 13:36:53 +01:00
Hiltjo Posthuma
3756f7f6b8 sync dmenu drw.{c,h} code: use Clr* (was Scm) 2017-11-03 21:20:48 +01:00