1
0
forked from extern/nix-config
Commit Graph

1088 Commits

Author SHA1 Message Date
Donovan Glover
b46cda8cfd
meta: Change default browser from librewolf to qutebrowser
Browsers were always a pain point for me due to the manual intervention
they often required to get extensions configured properly across
separate user profiles. qutebrowser has improved significantly since the
last time I tried it (around 2017) and supports modern browsing due to
its usage of Chromium 102 with QtWebEngine 6.4.0.
2022-11-02 18:27:50 -04:00
Donovan Glover
68d1cbb9fe
meta: Remove rofi
rofi was cute, however I no longer have a desire to run an external
interface for simply starting programs. This can be achieved in many
different ways through a shell, and without the disadvantages (such as
having all items listed by default) that rofi came with.
2022-10-26 10:40:22 -04:00
Donovan Glover
3728607f28
rofi: Show current focused desktop
This was cute, however knowing which desktop we're on may be irrelevant
in a future workspace implementation. Adding this information to the
fish prompt with starship may also be an option.
2022-10-25 22:13:37 -04:00
Donovan Glover
d2883d0cb9
rofi: Show window on focused monitor
This makes rofi work nicely with multi-monitor setups, however I was
planning to remove rofi since I can do everything that rofi can do with
a simple shell, and without having to worry about its inconveniences,
such as unreadable default wal color themes.
2022-10-25 22:08:47 -04:00
Donovan Glover
ded1649cea
meta: Use alttab
alttab <https://github.com/sagb/alttab> is a cool alternative to the
more traditional ways of managing windows in bspwm that lets us focus on
the currently open windows instead of which desktop they're on.
2022-10-25 14:05:07 -04:00
Donovan Glover
83ee31d1a5
sxhkd: Add desktop bouncing functionality
Note that I originally used this as a test to see how useful it would
be, however I quickly realized that having unpredictable desktop states
is not ideal, especially when not using a status bar like polybar.

The code was shared as a solution to a post on r/bspwm. Credits to the
original author, however I plan to ditch this solution for more
predictable desktop management.
2022-10-25 13:59:56 -04:00
Donovan Glover
69be5bcc2b
bspwm: Add authentication agent
I don't remember exactly why I needed this, however it should be useful
for certain programs that require it.
2022-10-25 13:30:16 -04:00
Donovan Glover
d7a940a4d0
bspwm: Remove polybar execution
This is no longer needed since we no longer use polybar.
2022-10-25 12:42:47 -04:00
Donovan Glover
45ae547379
meta: Remove polybar
It turns out polybar was bloat and I don't actually need one, at least
that's my current thought process. In particular the advantage of
fullscreen windows without having to worry about whether polybar is
visible or not should outweigh when I temporarily show the bar with a
keybind.

Note that while I was exploring taking advantage of bspwm's monocle
layout more, I went through a point where borders would only be visible
when multiple windows were present, which required me to use the single
monocle config variable and implement the solution proposed in the
GitHub issue below:

https://github.com/polybar/polybar/issues/1880#issuecomment-674518936
2022-10-25 12:32:48 -04:00
Donovan Glover
7b3ac9d5df
meta: Add thunar
I used thunar for a while and it was a great experience with few
exceptions, however I will likely remove it in favor of a more command
line-based experience. Using thunar was a valuable learning exercise and
it helped me understand more about what file browsers actually do, and I
realized that I can replicate this experience fairly trivially while
giving me the benefits of my existing configuration.
2022-10-25 11:34:03 -04:00
Donovan Glover
620c1ac7c8
bspwm: Don't float mpv by default
This makes it easier to manage mpv windows like all other windows, which
lets us take advantage of watching 16:9 videos with mpv tiled while
working on other things.
2022-10-24 17:09:37 -04:00
Donovan Glover
5b9b59073d
sxhkd: Use pamixer instead of pactl
This prevents us from setting the volume above 100%.
2022-10-24 17:07:33 -04:00
Donovan Glover
c816942ec3
git: Change editor from vim to neovim
Neovim has some nice additions like honoring the blinking cursor from
kitty when in insert mode. I don't remember why I used vim instead of
neovim here, but neovim is mature enough that it should be an excellent
choice to use for many years to come.
2022-10-24 17:05:10 -04:00
Donovan Glover
ef3f21ecfd
gtk: Use flat color theme and icons
I originally made this change to take advantage of wpgtk, and although I
was successful and wpgtk was a cool experience, I am not that interested
in updating all my config files to use wpgtk instead of wal.

Since this was mainly useful for thunar and nautilus, and since I'm
considering using ranger only and writing my own scripts for additional
functionality, I may change this to a simpler theme in the future.
2022-10-24 17:03:02 -04:00
Donovan Glover
f615fbc4d0
bspwm: Increase pointer_motion_interval
In the theoretical scenario that I use bspwm on a high refresh rate
monitor, this change makes it so resizing windows won't be limited to
60Hz.
2022-10-24 12:30:14 -04:00
Donovan Glover
3321d30827
polybar: Decrease height
This makes polybar less obtrusive, however I've been considering
removing it in the long-term to maximize screen estate. Although polybar
is cute, I don't *need* to know everything in the bar every second I use
the computer. Having specialized commands or keybinds that show certain
information seems more useful in this case.

Some information, such as the date and time, could become a part of the
wallpaper itself, making blank desktops more useful than they are now.
Although widgets are also an option, I have not verified how well these
work under my current setup yet.
2022-10-24 12:25:03 -04:00
Donovan Glover
64029e3c5b
vim: Open Shift JIS files with proper encoding
This makes dealing with certain Japanese files significantly easier
since we no longer have to worry about manually performing a Shift JIS
to UTF-8 conversion before opening the file in vim, nor do we have to
worry about manually changing the encoding with :e ++enc=sjis.
2022-10-24 11:48:22 -04:00
Donovan Glover
5437f3237e
vim: Don't show spelling errors for CJK characters
This makes dealing with CJK files inside vim a much more pleasant
experience. Note that automatically handling Shift JIS encoded files is
something I haven't implemented yet, although a simple keybind could
make things more manageable.
2022-10-24 11:18:20 -04:00
Donovan Glover
a449ddfbec
fish: Export TERMCMD="kitty"
This change makes ranger open new terminal instances with kitty instead
of xterm.
2022-10-24 11:14:11 -04:00
Donovan Glover
02123d0bc4
fish: Add taskwarrior abbreviations
After many years of searching for an optimal task management workflow,
it seems like taskwarrior is the most ideal solution for me.
2022-10-23 21:38:46 -04:00
Donovan Glover
5f056f9f2e
bspwm: Use left/up/right/down desktops
This was an experiment to see if I could make switching between desktops
easier. Instead of thinking about desktops in terms of their contents or
numbers, we can think about them in terms of gestures used to reveal
them.

The main advantage to this setup is that you can access any of the other
desktops with one keystroke. This is in contrast to having to press
super+tab twice. The other advantage is that the desktops are always at
a predictable location. One swipe to the right will always get you the
desktop on the right, whereas two super+tabs can land on any desktop.
2022-10-23 21:00:54 -04:00
Donovan Glover
1cde245d11
picom: Fix flickering screen after resume from dpms
This appears to fix an issue where the screen would occasionally flicker
after resuming from dpms' screen blanking feature. So far I have not
observed any significant performance degradations.

Reference: https://github.com/yshui/picom/issues/578
2022-09-28 13:32:07 -04:00
Donovan Glover
5e75e08f46
Makefile: Decrease stow verbosity to 1
A verbosity level of 2 was cool during testing, but now that the
Makefile has been stable for years at this point, having all that
verbosity seems unnecessary. This change still shows when things are
stowed, but with less detail than before.
2022-09-28 12:58:48 -04:00
Donovan Glover
433d335c36
meta: Remove keystrings
As far as I can tell, dual-function-keys also works in a tty, so
keystrings is no longer necessary, and you don't have to worry about
making sure that loadkeys is ran either.
2022-09-28 12:55:24 -04:00
Donovan Glover
19efc3f94c
meta: Remove xcape and xmodmap
These are obsolete technologies that are no longer needed thanks to
dual-function-keys, which I'll add in a future commit. This also fixes
an issue where left control would behave like an escape key when tapped,
which caused a lot of accidental escapes.
2022-09-28 12:54:52 -04:00
Donovan Glover
323bf99af5
kitty: Disable audio bell
Now it's possible to use the terminal in peace, and with the volume set
to a cool amount, without worrying about audio bells when scrolling
through man pages.
2022-09-28 11:43:25 -04:00
Donovan Glover
1023dc4d2f
meta: Replace firefox with librewolf
I am personally not amused by some of the defaults that firefox ships
with and would rather not have to deal with them on new configurations.
Although it's possible to sync settings across devices or simply copy
the profile directory, the advantages of librewolf outweigh the cons for
my individual use case, at least for now.
2022-09-28 11:40:49 -04:00
Donovan Glover
188217ce46
sxhkd: Control mpv with mpris + playerctl
I personally love this setup for language learning and it emphasizes how
far one can go with customizing their setup when using a window manager
like bspwm + sxhkd. Although it's possible to achieve the same effect in
other desktop environments, sxhkdrc makes adding new keybinds extremely
simple and easy to maintain.
2022-09-28 11:29:06 -04:00
Donovan Glover
4fb088585d
bspwm: Remove old bspc rules
I no longer use these KDE applications, so having them as bspc rules is
unnecessary.
2022-09-28 11:24:13 -04:00
Donovan Glover
9259386f75
gitattributes: Add mpv scripts to vendored list
This prevents the language statistics from showing up incorrectly.
2022-08-01 12:39:13 -04:00
Donovan Glover
0d5eb9e3d1
Makefile: Remove enable-mpd
This is no longer needed since we no longer use mpd.
2022-08-01 12:29:31 -04:00
Donovan Glover
8f643378dd
fish: Add ex function
This is the command I use to easily extract files with unar, which
automatically handles different character encodings.
2022-07-30 10:40:53 -04:00
Donovan Glover
ad28ef8dcf
fish: Add wav2flac
This used to be a separate script in my ~/.local/bin, however the script
is short enough that it doesn't need to be a separate file, and I don't
use it outside of the shell anyway.
2022-07-30 10:35:00 -04:00
Donovan Glover
bd83212581
sxhkd: Add clipboard to browser
This makes it easy to search for text without having to worry about
browser extensions or even being in the browser itself.
2022-07-30 10:21:08 -04:00
Donovan Glover
5a3b02add8
sxhkd: Add option to save selection screenshots 2022-07-30 08:50:48 -04:00
Donovan Glover
233cb01510
mpv: Disable the default osc
Now the thumbnail osc will be used instead.
2022-07-30 08:37:18 -04:00
Donovan Glover
4f74b1fb48
mpv: Add mpv_thumbnail_script
This is version 0.4.9 and should work out of the box without any
modifications. Note that the mpv config must be edited to support
this script, which I'll add in the next commit.
2022-07-30 08:32:04 -04:00
Donovan Glover
c050cede4a
fish: Add abbreviation for japanese locale 2022-07-30 08:24:45 -04:00
Donovan Glover
89361ae0af
fish: Add abbreviation for ansible-playbook
Note that right now abbreviations are only added once to improve startup
time, although the difference may be negligible on modern hardware.
2022-07-30 08:15:06 -04:00
Donovan Glover
3a189b31f6
sxhkd: Prioritize color scheme over background
In the future it may be nice to automatically add a selection of
backgrounds that can be rotated through, or support getting those
images from an external source.
2022-07-30 08:02:18 -04:00
Donovan Glover
9bc5d45278
mpv: Automatically make playlists from directories
This makes it easier to play a series of files without worrying about
starting mpv with those specific files.
2022-07-30 07:50:47 -04:00
Donovan Glover
1de898c54b
mpv: Add total_playtime.lua
Currently this script works by getting the total play time of the
playlist when pressing F12. Time will tell if I decide to improve upon
it later, although it already does a good job at what it's supposed to
do.
2022-07-30 07:42:08 -04:00
Donovan Glover
d23080a789
mpv: Don't use titles from file metadata
This fixes an issue where some files would have incorrect metadata,
although it may be more useful to overwrite the metadata on those files
instead.
2022-07-30 01:18:03 -04:00
Donovan Glover
e1cd81f9b4
vim: Add Caddyfile support 2022-07-30 01:04:28 -04:00
Donovan Glover
f223c6c2f6
fish: Add du abbreviation 2022-07-30 00:33:25 -04:00
Donovan Glover
2fa0d928ef
fish: Add vagrant abbreviations 2022-07-30 00:32:46 -04:00
Donovan Glover
a06b1d06cb
fish: Replace youtube-dl with yt-dlp 2022-07-30 00:30:37 -04:00
Donovan Glover
6db6521e7c
fish: Add docker abbreviations 2022-07-29 21:08:21 -04:00
Donovan Glover
ae900bda97
meta: Replace ripgrep config with alias
Stowing an entire config directory for one line was too funny to not
change, so I converted it to an alias instead.
2022-07-29 17:56:38 -04:00
Donovan Glover
917e50c37f
meta: Replace httpie config with fish functions
This simplifies our dotfiles a bit since we no longer need to worry
about stowing a separate httpie config.
2022-07-29 17:18:12 -04:00