Commit Graph

3357 Commits

Author SHA1 Message Date
96e069fe6d dwm: Make GTK programs work with dbus-launch
Fixes an issue where blueman for bluetooth wasn't working.
2024-08-23 23:28:24 -04:00
0cd241e315 dwm: Remove librewolf borders with GTK_CSD=0
Necessary to avoid having a 5px border around librewolf.

https://searchfox.org/mozilla-central/rev/a11b63915bd7810a03635d733123448ab5bfcad3/widget/gtk/nsWindow.cpp#8929,8955,8975
2024-08-23 22:27:04 -04:00
d567a56b4d dwm: Add save floats patch
Now it's possible to float and unfloat windows and those windows will
preserve their floating window size.

Note that this patch was merged with the alwayscenter patch so the diff
applies cleanly.
2024-08-23 21:12:20 -04:00
078fd93168 Revert "overlays: Update picom to v12-rc2 for animations"
After trying the new picom animations for a bit they're a bit too janky
compared to the animations in Hyprland. The "geometry" trigger
replicated the tiling animation when swapping windows, however this came
at the cost of transparency being broken during the animation and the
easing in general not being comparable to Hyprland.

Further issues include the usage of animations breaking fade in/out
support for windows, which I found less intrusive than the appear /
disappear presets with not-so-subtle easing. Using the geometry trigger
also meant that switching tags in dwm had a slide in effect, which felt
disruptive compared to the usual feeling of dwm.

Other issues included the increased probability of things not being
drawn correctly (for example, an animation that "hangs" while in the
middle of animating) and a slightly annoying fade effect every time
windows changed in size such as when toggling fullscreen.

The config used is below for reference, however after trying picom
animations dwm feels considerably better without them.

```
animations = (
  {
    triggers = ["open"];
    preset = "appear";
    scale = 0.5;
  },
  {
    triggers = ["close"];
    preset = "disappear";
    scale = 0.5;
  },
  {
    triggers = ["geometry"];
    preset = "geometry-change";
    duration = 0.5;
  },
);
```
2024-08-23 20:17:36 -04:00
d058a3bd70 overlays: Update picom to v12-rc2 for animations
Trying this out with dwm and it seems to work. Note that we aren't using
the windowmap patch since it causes windows such as kitty to not focus
properly when switching between tags.
2024-08-23 18:20:20 -04:00
fa15715cc7 dwm: Add CJK and emoji fonts for bar
Also uses Maple Mono by default explicitly.
2024-08-23 15:08:10 -04:00
19a33b2de5 dwm(picom): Don't show shadow on top of bar
Fixes an issue where there would previously be two shadows at the top
with a window open without having to exclude shadow from the bar.
2024-08-23 11:24:07 -04:00
8a0153027c dwm: Add bar script 2024-08-23 11:04:38 -04:00
8172b16f56 dwm: Add reorganize tags patch
Automatically moves windows to the leftmost tag when moving them.
Useful to help keep the third workspace unoccupied when two other
workspaces have windows on them.
2024-08-22 23:19:26 -04:00
e7997f5fbc dwm: Use dot indicators for tags
The idea is that the dwm session is actually a simple version of the
Hyprland session, and the tag functionality isn't actually used.
2024-08-22 22:53:26 -04:00
c72bfa9448 dwm: Use stylix colors for status bar 2024-08-22 22:51:35 -04:00
50a3e6e1a2 dwm(picom): Decrease shadow opacity from 0.75 to 0.2
Makes the status bar look nicer with the terminal while still being
prominent enough to help with seeing which window has focus.
2024-08-22 22:49:31 -04:00
61ef31d977 dwm: Add patch to remove floating indicator 2024-08-22 21:43:38 -04:00
4781eafb06 dwm: Make bar opacity match rest of config
256 * 0.95 ~= 243.
2024-08-22 21:41:43 -04:00
b501d089dc dwm: Add patch to remove layout indicator 2024-08-22 21:32:55 -04:00
6dc116c9a4 dwm: Add adjacent tags patch 2024-08-22 21:08:45 -04:00
3c22106938 dwm: Remove unused layouts / keybinds 2024-08-22 20:56:15 -04:00
712d5b141a dwm: Add base config
Changes from the original dwm:

- Removed border from windows
- Changed colors (will replace with stylix ones later)
- Added media keys for brightness / volume
- Changed tag names and amount
- Added transparency to bar
- Made librewolf float to preserve window size
- Removed unused keybinds like layout switching
- Removed unused tag keys
- Set mod key to super instead of alt
- Changed dmenu to rofi and st to kitty
2024-08-22 19:05:06 -04:00
c6fcec26f5 dwm: Add alwayscenter patch
Used for floating librewolf.
2024-08-22 18:30:47 -04:00
c0c3871209 dwm: Add alpha patch 2024-08-22 18:29:47 -04:00
9e76605a80 chore: Improve formatting
Also simplifies the piccom call in .xinitrc.
2024-08-22 16:44:54 -04:00
5efc4364bb dwm: Use actualfullscreen patch over monocle mode
Simplifies things a bit since we no longer need to worry about monocle
mode affecting all tags.
2024-08-22 16:31:32 -04:00
ad0f0619fd dwm: Add patch to fix monocle background transparency
Source: https://old.reddit.com/r/suckless/comments/jiyl4h/hiding_background_windows_in_monocle_and_deck/ga9fmc3/
2024-08-22 11:57:13 -04:00
be44fa4f99 dwm: Make neovim clipboard work with xclip 2024-08-22 10:56:48 -04:00
a8735d7ba1 dwm: Add patch to hide unused tags 2024-08-22 10:55:26 -04:00
dedb462a48 dwm: Add fcitx5 support 2024-08-22 10:46:48 -04:00
c4ad120bf3 dwm: Add .xinitrc 2024-08-22 10:46:07 -04:00
692eaae017 Revert "phone: Enable mmsd for MMS messages"
Seems to cause a significant increase in battery life consumption and
and doesn't seem to work with a VPN enabled.

See: https://gitlab.com/kop316/mmsd/-/issues/89
2024-08-20 22:37:05 -04:00
2b8602125f system: Set default phone password to 1234 2024-08-18 16:59:55 -04:00
f571481125 phone: Disable documentation
Derivations like the documentation for rustc were taking up huge amounts
of space that *probably* aren't needed on the PinePhone, so disabling
documentation should significantly improve copy times and reduce the
total amount of space necessary for updates.
2024-08-17 16:38:09 -04:00
61d79505af phosh-backgrounds: Set version information
Fixes an issue where I forgot to change the version previously.
2024-08-17 15:23:40 -04:00
25225236c3 phone: Enable mmsd for MMS messages
Seems to work for text MMS.
2024-08-17 15:19:08 -04:00
a463af3bef flake: Update mmsd-tng from 1.12.1 to 2.6.1
Seems to fix some MMS issues.
2024-08-17 15:18:34 -04:00
47d4715d45 phone: Lower max cpu frequency to 0.816 GHz
Was crashing a bit too often with 0.912 GHz unfortunately.
2024-08-16 23:59:41 -04:00
1123ea9dad flake: Update to phosh 0.41.0
Seems to work.
2024-08-16 23:58:16 -04:00
40aca5aff6 system: Don't inherit firefox-addons directly
Fixes an issue where firefox-addons wasn't available in the example
config.
2024-08-16 18:58:44 -04:00
88eec9d0e9 shell: Replace fastfetch with microfetch
Faster and does the job well.
2024-08-16 17:49:57 -04:00
f2d9998249 phone: Update desktop entries list 2024-08-16 17:48:45 -04:00
c51951e3de packages: Add phosh-backgrounds
This is a sane default that works well enough.
2024-08-16 17:44:09 -04:00
8a3c22505e fish: Add mullvad-init script
Note that long-term we can turn this into a home-manager module to make
things more declarative and automatic.
2024-08-16 15:41:57 -04:00
6249d230ab phone: Add script to record video
Note that we're using libopus and libx264 instead of flac and ffvhuff to
significantly reduce the file size and make it easier to play back the
recorded video on the PinePhone.

Note that there will be no preview while recording the video. The video
recording is also delayed a bit, so it's necessary to wait a few seconds
after you finish recording a video before pressing q to stop it.
2024-08-16 15:13:48 -04:00
d38ef7b296 system: Always allow dnsmasq ports
Simplifies things a bit.
2024-08-16 15:13:41 -04:00
e8c2228e76 shell: Replace df with duf
Also removes du since it's easier to read the results of gdu, especially
on smaller devices like the PinePhone.
2024-08-16 12:53:36 -04:00
1cede2c75b chore: Drop unused packages
Note that glib was supposedly added for mounting-related things, but
this should be possible to upstream into the derivation instead if it
hasn't been added already.
2024-08-16 12:52:25 -04:00
4e2fda8b4e shell: Prefer with pkgs; over mkMerge 2024-08-16 03:09:33 -04:00
b513d01715 meta: Merge swaync / swayosd with hyprland module
Helps avoid having modules that are only a single line.
2024-08-16 02:48:41 -04:00
ffb3460c53 fluent-icons: Decrease png resolution
512x512 isn't necessary and doesn't seem to affect eww with hidpi
anyway.
2024-08-16 02:41:38 -04:00
3475c5888c hyprland: Drop old qt environment variables
- QT_AUTO_SCREEN_SCALE_FACTOR is no longer used in Qt6+
  https://doc.qt.io/qt-6/highdpi.html

- QT_QPA_PLATFORM is no longer necessary since it seems like NixOS will
  start Qt applications that support Wayland with it by default
  https://wiki.archlinux.org/title/Anki#Wayland

- QT_WAYLAND_DISABLE_WINDOWDECORATION seems to no longer be necessary
  since this should be handled by the window manager
  https://www.qt.io/blog/2018/12/14/whats-new-wayland-platform-plugin-qt-5-12
2024-08-16 02:26:19 -04:00
00f3365001 fluent-icons: Use lutgen transparency branch
It turns out that alternative solutions like dipc don't produce results
as good as lutgen so the compile time trade-off should be worth it.
2024-08-16 01:57:10 -04:00
a3cd945895 fluent-icons: Generate icons with nix
Unfortunately lutgen doesn't have transparency support added to its main
branch yet and there doesn't seem to be any indicator that this will
ever be added, so we'll have to use an alternative to avoid manually
compiling it.
2024-08-16 01:06:33 -04:00