Commit Graph

18 Commits

Author SHA1 Message Date
Donovan Glover
2f4aa0e865
sxhkd: Simplify terminal options
Since urxvt and termite now look very similar to each other (except for
transparency), and since images do not play nicely in tmux / transparent
windows, it makes sense to separate tasks between the two.
2018-10-21 21:36:08 -04:00
Donovan Glover
59dc5d1b3a
sxhkd: Don't hardcode top_padding for polybar
Since launch.sh calculates all the bar values for us (as well as bspwm
settings), we can simply store the top_padding value in the user's cache
directory, then reference that number within sxhkd.

This way, if the top_padding value is changed through launch.sh, editing
sxhkdrc manually isn't needed, and the config file doesn't need to be
reloaded.
2018-10-21 11:33:54 -04:00
Donovan Glover
b4b86215b5
sxhkd: Remove resize keybinds
I don't think I've ever used these keybinds after I learned about
holding the left mouse button to move windows and holding the right
mouse button to resize them.

If you don't have access to a mouse, you probably don't need to resize
windows anyway, and certainly not float them. tmux is still an option,
and the preselect ratio option of bspc is still there.

Ultimately, since sxhkd just runs shell commands, you can resize windows
through a terminal or shell script as well.
2018-10-20 10:30:58 -04:00
Donovan Glover
9595c8093d
sxhkd: Refactor bspc keybinds
This commit also removes the "switch to previous node" keybind, since
an option like that changes often and may behave unexpectedly if
another node is focused with the cursor.
2018-10-20 10:20:37 -04:00
Donovan Glover
3b8b3bece4
sxhkd: Move non-bspc commands to the top
The sxhkdrc becomes much easier to manage when all the window manager
commands are at the bottom together.
2018-10-20 03:02:52 -04:00
Donovan Glover
4dfdc10f53
sxhkd: Properly toggle polybar visibility
I tried to do this before, but couldn't figure it out. Now that I
understand more about how windows in X11 work, and now that I know more
about shell scripting, writing this functionality became trivial to do.
2018-10-19 17:33:36 -04:00
Donovan Glover
dfe0e61daf
sxhkd: Combine similar keybindings
There is a shorthand syntax offered by sxhkd that helps us make our
config files more compact. I avoided this syntax at first since I was
new to the software, but now that I've used bspc, sxhkd, and the shell
enough, the shorthand syntax is more concise and easier to read.
2018-10-19 17:17:31 -04:00
Donovan Glover
09e8c16489
Fix bspwm terminology in sxhkdrc
I once tried to simplify bspwm terminology back when I started using the
WM. Although it helped me use bspwm in the short term, there were some
things I was still confused about (for example, I did not know the
difference between a node with the fullscreen state and desktop with the
monocle layout).

This commit fixes that.
2018-10-19 15:11:49 -04:00
Donovan Glover
d42738f4b9
Toggle node modes natively with bspc
There is no need to check for whether or not a certain mode is set,
since bspc has a feature that automatically uses the previous mode if
the same mode was detected.

Also, "monocle" is a desktop layout, not a node mode. And modes are
states, not modes. I confused the terminology quite a bit when I was
starting out with bspwm (maybe to make the transition easier?) but now
that I've used it long enough, I feel comfortable using the proper
terminology. All future bspwm-related commits should (hopefully) contain
the proper wording.
2018-10-19 13:55:31 -04:00
Donovan Glover
a4982e767b
Truly toggle between tiled and fullscreen
I don't know why I couldn't implement it before, but now that I know
more about shell scripting, I know that this works. There's an even
better solution I found in the bspc man pages, which will be covered
in the next commit.
2018-10-19 13:27:48 -04:00
Donovan Glover
30b1f57ebf
Add keybind for current node's mode
This is an example of how to use dunst with sxhkd to show notifications
on demand.
2018-10-19 11:25:53 -04:00
Donovan Glover
f19dc21649
Use symlinks with pywal templates
Instead of manually changing every instance where a program could run to
use the config in the cache directory, and instead of copying files
every time pywal is updated, it makes sense to create symbolic links for
these files instead.

This ensures that the right settings are used even without knowing the
passed parameters.
2018-10-18 11:16:15 -04:00
Donovan Glover
3a524479a3
Use tmux for all termite windows
Since tmux is such a useful program, and since we don't need to worry
about images in termite, it makes sense to start all termite windows
with tmux. This lets us use any and all termite sessions in urxvt as
needed.
2018-10-17 01:56:25 -04:00
Donovan Glover
d4740a92c1
Change bspwm_and_dunst.sh to done.sh
Before pkill would try to terminate the script since it had "dunst" in
its name. This is the solution for that, and it also makes adding new
commands in the future easier.
2018-10-17 01:20:48 -04:00
Donovan Glover
635432b33a
Update termite config
Termite works exceptionally well as a transparent terminal, so I'll just
let termite focus on true color, transparency, and displaying emoji
while urxvt focuses on universal theme changing and images in the
terminal.

There doesn't seem to be a terminal out there (yet) that handles both of
these things in all the software I want, so this compromise is good
enough.
2018-10-17 00:50:41 -04:00
Donovan Glover
ca6935d08b
Update various dots
Lots of minor improvements here.
2018-10-14 22:48:00 -04:00
Donovan Glover
f26f5acedc
Add rofi
Rofi is "a window switcher, application launcher, and dmenu
replacement". It lets you search for and access certain
information at any given time, making it very useful.
2018-10-13 00:41:24 -04:00
Donovan Glover
b7815b4e51
Update sxhkd config
I now use urxvt once more.
2018-10-07 18:37:50 -04:00