1
0
mirror of https://github.com/frebib/dotfiles.git synced 2024-06-14 12:57:23 +00:00

82 Commits

Author SHA1 Message Date
2cc93a1649 scripts/otp: Refactor & ensure notifications are dismissed
Modernise the script and make it more sane.
Ensure lingering notifications are removed when the script exits to
prevent collecting many notifications if the script is called in a loop.

Signed-off-by: Joe Groocock <me@frebib.net>
2023-03-29 12:43:29 +00:00
2bd257243a xprofile: Run dpi script on startup
Ensures configuration of various graphical services is set correctly on
startup, either before they start, or just after, restarting them
accordingly. This should scale i3, picom, gtk and friends for a seamless
experience.

Use xresources as a source of truth for this information.

Signed-off-by: Joe Groocock <me@frebib.net>
2022-10-26 22:02:34 +00:00
d538b61cb1 scripts/dpi: Constant blur/corner-radius/cursor scaling
Scale picom blur and corner radius and X cursor size according to a
constant scale factor. This ideally would be defined somewhere
centrally, but this is better than nothing.

Signed-off-by: Joe Groocock <me@frebib.net>
2022-10-26 21:54:02 +00:00
839d972e95 systemd-run-i3: Add ExitType=cgroup to user units
systemd v250 added ExitType= which allows systemd to wait for all
processes in the cgroup to exit before terminating the unit, instead of
only the main pid. This has many uses, but for desktop applications in
particular it allows self-restarting (forking) applications to correctly
fork/restart and other background processes that may have been spawned
to continue when their forked parent inevitably exits first (like ssh
processes inside terminals).

Signed-off-by: Joe Groocock <me@frebib.net>
2022-03-21 21:46:28 +00:00
5035afc8b4 X11, dpi: reliably set xcursor size
Other minor tweaks to the dpi script to ensure everything gets updated
correctly.

Signed-off-by: Joe Groocock <me@frebib.net>
2022-03-21 21:41:57 +00:00
a7778c30a7 i3: Add $mod+z otp selector
Signed-off-by: Joe Groocock <me@frebib.net>
2021-11-23 11:05:34 +00:00
a6f162b7e2 scripts/dpi: Add more xsettings configuration from xrdb
Read some standard xsettings values out of xrdb and set them in
xsettingsd. Use bash instead of sh to allow for `set -o pipefail`.

Signed-off-by: Joe Groocock <me@frebib.net>
2021-08-01 19:18:15 +00:00
85ab256484 scripts/dpi: Clean-up, improvements and shellcheck-compliant
Fix all shellcheck warnings, mostly by adding double quotes around vars.
Re-order operations and run multiple jobs in parallel to speed up DPI
change speed.
Remove all use of bc, simple sh integer division is sufficient in all
cases.

Signed-off-by: Joe Groocock <me@frebib.net>
2021-08-01 19:05:07 +00:00
69787bd90f dpi: set cursor size with xsettings
Signed-off-by: Joe Groocock <me@frebib.net>
2021-01-30 11:48:39 +00:00
cdbe8ce855 systemd: parameterise wallpaper.service
Remove all invocations of 'feh' for setting wallpaper that are now
redundant as this service should handle setting the wallpaper in all
relevant situations.

Signed-off-by: Joe Groocock <me@frebib.net>
2020-08-19 20:49:10 +01:00
3f274253ff scripts/systemd-run-i3: bind applications to graphical session
When the graphical-session target exits, this should terminal all units
bound to it.

Signed-off-by: Joe Groocock <me@frebib.net>
2020-08-18 13:17:55 +01:00
9a04e70e77 systemd: default launch systemd apps in app.slice
Unless specified, units will launch in `app.slice` under the assumption
that they are foreground user applications.

Update i3 configuration to remove redundant app.slice definition.

Conform to unit naming of app-{name}-{random}.service as documented in
https://github.com/systemd/systemd/blob/master/docs/DESKTOP_ENVIRONMENTS.md#pre-defined-systemd-units

Signed-off-by: Joe Groocock <me@frebib.net>
2020-08-18 12:49:31 +01:00
715349d0f4 scripts/screenshot: add proper arg parsing
This fixes usage of --active and --clip together. I'm not even sure how
it worked before this tbh.

Signed-off-by: Joe Groocock <me@frebib.net>
2020-08-11 09:14:16 +01:00
561582734e polybar: use 'polybar-msg cmd restart' to reload
This is technically more of a restart than a reload, but it's the
closest thing without actually restarting the main pid.

Signed-off-by: Joe Groocock <me@frebib.net>
2020-08-10 21:30:40 +01:00
2d414258ca rofi-emoji: replace rofi-emoji script with rofi plugin
https://github.com/Mange/rofi-emoji

Signed-off-by: Joe Groocock <me@frebib.net>
2020-07-22 20:55:17 +01:00
b52496bbb3 scripts/screenshot: add --active and --clip args
--active uses the active window as selection boundary, instead of the root window, or prompting for a window selection
--clip adds the image to the clipboard and exits without uploading

Signed-off-by: Joe Groocock <me@frebib.net>
2020-05-30 00:28:27 +01:00
d407512522 scripts/rofi-emoji: simplify clipboard/typing logic
Always do both, because that is the easiest thing to do
2020-04-02 13:19:23 +01:00
f67a8e5f80 scripts/screenshot: reduce window shadow to 60% opacity 2020-04-02 12:49:11 +01:00
7f79cca7bc scripts/systemd-run-i3: fix overriding unit name
systemd-run uses the last passed argument for each flag, so specify the
default first, and the override afterwards, if set
2020-04-02 11:33:57 +01:00
45680df7c5 scripts/screenshot: add shadow to full-window snaps 2020-03-24 23:07:28 +00:00
90fc09e1a9 scripts/fontawesome: simplify subshell calls 2020-03-22 23:09:04 +00:00
9aeeee58d0 i3: launch i3 programs with systemd
This parents each program within it's own service/scope to the systemd user session, independent of i3
2020-03-22 12:33:26 +00:00
ccce866b55 systemd: add & enable xsettingsd service
Update `dpi` script to interact with systemd units
2020-03-21 23:37:02 +00:00
0256369cd6 scripts/screenshot: update screenshot scp path 2020-03-21 22:56:09 +00:00
1fdb93e356 scripts/gtav: add gtav/netsplit scripts 2020-03-21 22:56:09 +00:00
10ffcecb31 scripts/rofi-*: restart viewer after updating 2019-12-14 22:21:38 +00:00
4c634c402a scripts/fontawesome: load icons from local file 2019-12-14 22:17:49 +00:00
d6289c47ba scripts/screenshot: fix putting capture in clipboard 2019-04-24 10:42:05 +01:00
90750c0ede i3: always set wallpaper from $DOTFILES 2019-03-08 14:20:47 +00:00
ad713cd680 scripts/screenshot: Use shorter hash name 2019-02-18 13:11:33 +00:00
8bd77f63cd scripts/dpi: ensure config directory exists 2018-11-20 15:39:26 +00:00
43a656ee96 scripts/dpi: add DPI live change script 2018-11-20 15:06:09 +00:00
863de0d0ef screenshot: replace imgur-screenshot with self-hosted alt 2018-10-22 21:25:04 +01:00
e4bc126708 git: add diff-highlight script for portability 2018-10-19 15:03:52 +01:00
89e325c503 rofi-{emoji;fontawesome}: use -normal-window for pickers 2018-07-30 09:38:59 +01:00
972ee067ab wallpaper: invoke feh to change wallpaper 2018-07-30 09:32:14 +01:00
1c297d3a77 Reorganise many directories into XDG dirs 2018-04-21 01:03:48 +01:00
4579473479 Add $GOPATH/bin to PATH 2018-04-20 23:58:53 +01:00
fff7fa1452 Fix typo 'emoij' in rofi-emoji 2018-04-17 11:34:21 +01:00
1d590fe8c6 Add rofi-fontawesome picker variation 2018-04-17 11:33:34 +01:00
223034a3ea rofi-emoji: add various updates 2018-04-12 03:20:08 +01:00
2b8ab8cb37 scripts/dock-displays: update fehbg after resize 2018-04-03 17:16:30 +01:00
0b8c2e718d scripts: re-add missing dock-displays utility 2018-03-31 13:42:50 +01:00
9c3b1aa3b0 rofi-emoji: add skin-tone modifiers 2018-03-14 02:16:24 +00:00
b013a98e0d i3/config: add rofi-emoji and rofi-pass keybinds 2018-02-24 11:09:32 +00:00
3351a95a0a Modernise and improve vim-setup script 2017-12-18 17:01:49 +00:00
40da40d718 display: update for new monitor cable arrangement 2017-10-25 13:44:10 +01:00
1a1035570a scripts/zsh-setup: fix pkgfile installation & setup 2017-10-03 10:17:17 +01:00
7da3fc8d9f scripts/4screens: make each display configurable 2017-10-03 10:17:17 +01:00
3460a96b75 Always update repositories before installing packages 2017-07-15 13:34:35 +01:00