Commit Graph

33 Commits

Author SHA1 Message Date
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
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
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
druckdev
6786d8815a Add blur and make dotfiles more flexible
Add blur using the fork from https://github.com/tryone144/compton.
picom seems to be very CPU heavy on my system, so until I figure out how
to fix that I will use this outdated version.
Make the dotfiles a bit more flexible by creating symlinks for stuff
like the wallpaper or the compositor. When switching/exchanging these
components only the symlinks have to be updated.
2020-09-13 04:29:07 +02:00
druckdev
54f73da792 Add global flag to sed
This fixes the bug that the scratchpad-terminal is not able to change
into a directory with multiple spaces since I forgot to substitute the
spaces globally.
2020-09-10 05:00:27 +02:00
druckdev
bf1dc0c7c1 Cleanup
Use better/more readable version of the command that starts the
scratchpad-terminal.
i3 seems to pass the exec arguments to /bin/sh so adding another call
was redundant.
2020-07-14 16:26:09 +02:00
druckdev
c44dea2beb Add support for directories with spaces
Add support for directories with spaces when launching the
scratchpad-terminal.
NOTE: The exact same command but with 6 backlashes instead of 8 seems to
work just fine. That makes no sense in my head. Either I'm missing
something or there is a bug in the escaping of backslashes in i3.
2020-07-14 14:28:50 +02:00
druckdev
c4d4721c0c Scratchpad-terminal changes
Open the scratchpad-terminal in the same working directory as the
current window. This makes sense since I use it for small and quick
tasks that often need to take place in the same place.

Start the terminal in a separate workspace before switching back so that
the window does not break the workspaces layout or its content.
The script has to wait shortly so that the window is "done" (made
floating, sticky, etc.). This is a very dirty hack and should be
replaced in the future.
2020-07-03 02:51:05 +02:00
druckdev
100882f912 Combine keyboard commands
Combine keyboard related commands to have control over the order of
execution. Sometimes the layout was not set properly since xmodmap takes
a while an then xcape gets messed up.
2020-07-03 02:04:55 +02:00
druckdev
2f808717ec Rework keyboard layout
Instead of using an own xkb layout, modify the layout with xmodmap.
Use xcape to use Caps_Lock as Ctrl and Escape depending on if it was
pressed in combination vs alone.
Add hints for xinput.
2020-06-30 02:42:23 +02:00
druckdev
1c91a32ef9 Start gnome-keyring with window manager
Replace calling gnome-keyring-daemon in every zsh instance with just
sourcing the file the daemon returns on startup in i3.
TODO: Use pam for that
2020-06-27 08:20:48 +02:00
druckdev
6cdabb78be Multi monitor support
When restarting i3 check for connected second monitor: scale it and
restart polybar if there is one.
Put polybar tray on the main monitor.
Do not kill polybar and relaunch it when restarting i3, but restart it
using ipc (much faster).
2020-06-25 23:20:08 +02:00
druckdev
e7427ba925 Add scripts collection
Add a couple of utility scripts.
2020-06-24 16:56:47 +02:00
druckdev
31a4bc0768 Use st as terminal
Switch from gnome-terminal to st (see fork on github).
Open new terminal by default in the same working-dir as current window.
Modify scratchpad-terminal to work with every terminal.
2020-06-24 16:05:34 +02:00
druckdev
b85de5d781 change backlight in steps of 5% 2020-04-28 01:41:44 +02:00
druckdev
0c743950ac Initial commit 2020-04-23 14:50:36 +02:00