Commit Graph

63 Commits

Author SHA1 Message Date
a3d2bf985c i3: Use back_and_forth instead of i3-msg+jq 2025-09-17 17:35:19 +02:00
e8c5ec93f1 i3: Re-add stacking and tabbed layout bindings
I removed these in 69d0290afd (i3: Remove bindings for stacked and
tabbed layout, 2023-04-20) since I never need them and I always forgot
how to switch back when I pressed these accidentally.

Bring these back as comments, since the comment above still mentions
these and since I can imagine a rare situation where I might want one
these and simply want to comment them in.
2025-09-17 17:30:51 +02:00
c09ed22389 i3: Move kitty daemonization into own script 2025-08-26 13:06:08 +02:00
5078b6a63f *.sh: Fix some shellcheck issues 2025-06-27 12:59:13 +02:00
0e44a7cb12 i3: Fix Telegram executable name
Telegram changed their binary name from 'telegram-desktop' to 'Telegram'
in version 5.15.0.
2025-06-24 12:54:25 +02:00
616298df72 i3:multi-monitor: Send only one i3-msg command
Moving and then switching in a separate command flickered sometimes.
2025-06-06 12:03:41 +02:00
a67f8c9ec6 i3: Simulate monitor-independent workspaces
Often when I want to open a new workspace, I look at my bar to see which
workspaces are still free. This does not work sometimes when having
multiple monitors connected, as workspace numbers are unique between all
outputs.

Add a script that handles workspace switching/moving by prepending the
index with the index of the current monitor.
2025-06-05 17:43:24 +02:00
c89d3b550b i3: Add note about minimal kitty version 2025-05-30 01:34:41 +02:00
a34a00eae6 i3: Fix opening kitty in the current working dir
Since I run kitty with --single-instance, xcwd does not work for it.
Replace it with a short script that retrieves the CWD for the focused
window through the remote-control ls command.

This changes the current behaviour slightly, since now only terminals
are used and not any X window (which I rarely used or needed) and that
the working dir of the shell running in kitty will be used and not of
any deeper children. I'm still unsure if I want the latter back, but
will figure this out in the future.

This is an addendum to 0139294831 ("Use kitty instead of st as
terminal").
2025-05-27 18:24:06 +02:00
d89fd6653c kitty: Make kitty startup fast
Starting a new kitty process is quite slow. With --single-instance "new
invocations will instead create a new top-level window in the existing
kitty instance"[^1] to allow "kitty to share a single sprite cache on
the GPU"[^1], so that startup is almost instant.

For this to work best, launch one hidden "daemon" instance at startup so
that the kitty process is always running, even when no OS windows
exists.

[^1]: kitty(1)

Link: https://github.com/kovidgoyal/kitty/issues/330
2025-05-22 15:49:03 +02:00
9b0c97b003 i3: Switch to kitty 2025-05-22 01:13:45 +02:00
87ecc40627 i3: Save terminal related stuff in variables 2025-05-22 01:13:45 +02:00
f202f987c5 i3: Remove unneeded window class flag to st
This is the default already.
2025-05-22 01:13:45 +02:00
411f9d8c62 i3: Bind r in resize mode for specific terminal width 2025-01-20 16:22:16 +01:00
a9acba0cde i3: Add binding to switch back to previous workspace 2025-01-20 16:22:16 +01:00
6c022fff67 i3: More robust workspace json parsing
Use the name instead of the number as that could be -1.
2025-01-20 16:22:15 +01:00
d2f685cc8b *: Adjust pictures folder outside user-dirs.dirs
I have these changes since ages ago but never committed them apparently.

Fixes: 1e3aa5108e ("xdg-user-dirs: Move media folders into `~/media/`")
2024-10-22 19:21:46 +02:00
194e96b568 i3: Do not unmute when changing the volume
I want to be able to control the volume **before** unmuting.
2023-12-01 03:44:35 +01:00
b24541fb42 i3: Activate workspace_auto_back_and_forth
Switch back to the previous workspace by pressing the binding that would
focus the current workspace.
2023-04-20 00:15:33 +02:00
69d0290afd i3: Remove bindings for stacked and tabbed layout
I never use these and always forget how to get back if I accidentally
press their bindings.
2023-04-20 00:14:25 +02:00
1ecacf8762 i3: Add mapping to screenshot the whole screen 2022-12-14 18:52:59 +01:00
1453dcf200 i3: Fix screenshotting with scrot
scrot parses `-sf` as `-s f` and complains about the invalid argument. I
This seem to have come with a newer version as I believe that this
mapping used to work.
2022-12-14 18:51:28 +01:00
8cf2a8d421 i3,polybar: Open nmtui in floating window 2022-12-14 18:49:43 +01:00
7f318f0d3a i3: Use updated Bitwarden executable
bitwarden was renamed to bitwarden-desktop.
2022-11-02 18:44:17 +01:00
e564bf0fe6 i3: Add binding to switch between visible monitors
I have not tested this with more than 2 monitors. I am unsure if the
binding will cycle through them or just between two.
2022-10-15 19:02:29 +02:00
32109b5bab i3: Restart polybar after executing monitor-setup 2022-10-09 19:51:03 +02:00
2e6052cd3c i3: Remove vim modeline
Remove the vim modeline that sets the filetype to `i3`, as I do not have
a i3.vim filetype plugin. Now it is recognized as `ft=conf`, providing
at least highlighting of strings.
2022-07-12 21:00:01 +02:00
6fae630b6f i3: Forgot a backslash when wrapping lines at 80
Fixes: e7f0e8b5969b ("*: Wrap lines at 80 columns where appropriate")
2022-07-12 21:00:01 +02:00
00927c8921 *: Use tabs for indentation where appropriate
I am a big supporter of the approach to indent with tabs and align with
spaces. (Read [here][1] f.e.) Thus at some places a simple `s/ {4}/\t/g`
(replace 4 with whatever fits) is not enough and a bit more thought is
needed. Because of that there are still places where I plan to
substitute the whitespace in the future.

This patch contains exclusively whitespace changes. Check for yourself
with `git diff --ignore-all-space`.

[1]: https://dmitryfrank.com/articles/indent_with_tabs_align_with_spaces
2022-06-23 23:59:01 +02:00
b96d32996b *: Wrap lines at 80 columns where appropriate
Wrap lines at 80 columns where appropriate and I had the energy to think
about how/where to wrap.

There are still lines longer than that, which I plan to wrap in the
future. But that is enough for now.
2022-06-23 23:59:00 +02:00
3ced540d3a i3: Unmute on Audio{Raise,Lower}Volume presses 2022-06-23 23:58:59 +02:00
4954576496 i3,picom: Deactivate gaps and rounded corners
While installing i3 (not i3-gaps, as not easily available) on an Ubuntu
system with my dotfiles, I had to deactivate the gaps.

I think I prefer this look now, as it gives more screen real estate and
looks cleaner in my opinion.

Also deactivate rounded corners through picom as they only really make
sense with gaps enabled.
2022-06-23 23:58:53 +02:00
1be73d5e5a i3: Open monitor-setup in a floating terminal
Open monitor-setup in a floating terminal in the upper left corner
instead of a full size window.
2022-02-22 13:19:27 +01:00
322cdb28f2 i3: Add binding for scratchpad bitwarden window 2022-02-22 13:18:34 +01:00
9c593f5e55 xmodmap: Change layout and disable xcape
Change layout so that instead of rebinding caps_lock, escape and ctrl_r
in a circle, the caps_lock key now just emulates escape. Caps_lock can now be
accessed by pressing both Shifts together.

Because of that xcape is disabled for now too. Not sure if I will keep
it this way.
Caps_lock is now triggered on every shift for a very small time too,
that is why the caps_lock binding is removed from the i3 config.
2021-02-16 17:24:27 +01:00
42b32e1244 i3:monitor-setup: Place primary monitor left 2021-01-27 02:09:33 +01:00
f4950002b8 i3: Add binding for monitor-setup 2021-01-05 23:19:04 +01:00
a62cd25021 i3: Use scrot for screenshots 2020-12-19 02:33:03 +01:00
druckdev
22a87097df i3: Add binging for scratchpad signal-desktop 2020-11-18 00:17:27 +01:00
druckdev
5167405417 i3:multi-monitor: Set background on second monitor 2020-11-15 01:28:24 +01:00
druckdev
7753a1f7bf i3,polybar: Add bind and make calendar toggleable 2020-11-05 12:23:43 +01:00
druckdev
cffe17fd77 i3: Start telegram when not done before 2020-11-05 12:20:29 +01:00
druckdev
22fdf96020 i3: Declare and use variables for workspace names 2020-11-03 00:41:10 +01:00
druckdev
62cd1d5b1f polybar: Add calendar popup on date-module click 2020-11-02 23:25:10 +01:00
druckdev
fa7c06a572 i3: Add gaps 2020-10-31 22:34:00 +01:00
druckdev
08c5c66e1e X11: Move pieces from i3 and zshenv into xinitrc
Move everything that is desirable independent of the WM or shell into
xinitrc.
Move .Xresources and .Xmodmap into .config/X11.
Remove all unneeded GNOME bits from i3 config.
Make compositor launch script portable.
Add locker symlink and launch.sh similar to the compositor.
2020-10-31 22:33:26 +01:00
druckdev
84d861112a i3: Update config
Divide config into different sections and move all relevant lines into
those.
Use the $TERMINAL variable wherever possible.
Cleanup some stuff and add a couple of comments.
Add vim modeline to indicate filetype.
Set the key repeat rate.
Ditch scratchpad-terminal.sh:
    The reason why I created that script was that I liked to have
    different bindings for showing and hiding the terminal. At this
    point it just brings too much overhead in a dirty way for a feature
    I do not really need. mod+space can still be used to toggle focus
    and with mod+comma the window is now shown/hidden from/to
    scratchpad.
Use a terminal flag to set the window name instead of using escape
sequences at the start of a new shell.
2020-10-23 20:01:30 +02:00
druckdev
74436f2625 i3: Delete unused parts 2020-10-13 01:36:47 +02:00
druckdev
9f1d45bc41 i3: Use hjkl instead of arrow keys 2020-10-13 01:34:10 +02:00
druckdev
85a68a2c92 Blur and transparency tweaks
Increase blur and the transparency for the scatchpad-terminal.
2020-09-13 16:33:56 +02:00