Commit graph

24 commits

Author SHA1 Message Date
Marty Oehme b628f7e4e8
sxhkd: Switch dunst pause for history search
Removed the unused dunst pausing hotkey, and switched it for a search of
qutebrowser bookmarks, quickmarks, and history.
Key mapping is fn+<Search-Key> (F9 on my machine), and it will open in a
dmenu-like frame.
Results will open in the last opened browser instance, or open a new
one.
2021-10-20 22:35:49 +02:00
Marty Oehme f94759697d
qutebrowser: Add launcher to open links
Added bemenu launcher (can alternatively use dmenu) to find and
quickly open a link in the current qutebrowser instance (or a new one if
none exist). Will open it by default in a new tab or if `tab` argument
passed, if `open` option is passed it will open it in the current page
instead.

The script can be used both standalone by being invoked as `qutedmenu`,
or from qutebrowser itself, invoked from its commandline as `spawn
--userscript qutedmenu <open|tab>`.

By default uses bemenu, but if that is not found on system will
automatically switch to make use of dmenu. If you want to use rofi as
your dmenu replacement, generally I will assume it is already symlinked
to dmenu.

Added a keymapping to sxhkd `Mod-Shift-O`, which invokes it from
anywhere.
2021-08-18 23:35:24 +02:00
Marty Oehme 3d0446de05
sxhkd: Change chain mode exiting
Changed the way to exit sxhkd chain modes. Instead of using `esc` to get
out of them, now pressing the mode key chain again will also exit out of
the mode (e.g. `alt + m` to get into `media` mode, then `alt + m` once
more to exit it).

This is done since using escape will interfere with many normal-use
scenarios while in a chain-mode, especially if those modes are intended
to be used over somewhat longer periods of time (somewhat like vim-modes
or emacs layers). The key to exit modes has now been moved to `copyright`,
so in the rather improbable case that your keyboard contains a
`copyright` key, be careful of accidentally hitting it when in an sxhkd
chain mode.

Fixed passing arguments to the sxhkd-piped script. It will pass along
any commandline arguments passed now (even `-s`, though then the script
will cease to do anything).

Improved version output of sxhkd-chain-labels a little, invoking
`sxhkd-chain-labels -v` will now show the correct configuration file and
FIFO pipe being used, as well as whether they exist on the file system.
Fixed the versioning of the script to display the correct version.
2021-07-10 18:03:50 +02:00
Marty Oehme c71c553591
rofi: Fix powermenu searchstring display
Since switching to `dash` as the default sh shell, rofi would display
ostensibly hidden strings (like comment tags, or rofi meta options).

This is due to this bug https://github.com/davatorium/rofi/issues/1201
or behavior of dash. Could be possibly fixed by using octal, for now,
the script works with bash rather than sh (i.e. dash).
2021-04-04 12:22:16 +02:00
Marty Oehme a6b3a973bb
sxhkd, polybar, dunst: Add setting no disturb mode
By invoking key combination fn+F9 (XF86Search button), we can quiet
dunst notifications.

This change will be picked up by polybar and a small do not disturb
symbol is shown in the top bar (a tiny moon).

Both scripts are very simple and make use of a temporary file, so a
little brittle but workable.
2021-03-17 14:46:39 +01:00
Marty Oehme bab92816d0
scripts: Switch to own volume script
`pavolume` was nice, but my own volume script is just more flexible. No
real changes yet, but includes notification through dunst and works the
same way as `control-brightness` script does, just invoked through
`control-volume`.
2021-03-17 14:19:28 +01:00
Marty Oehme c12eed218f
scripts: Rename reader, Fix listing, Add sxhkd bind
Renamed general reader script to `wallr`, indicating wallabag as the
underlying reader input.
Fixed listing of unread articles which showed read articles before.

Added shortcuts to sxhkd's academia mode:
the existing `r` invokes wallr with unread article display;
newly added `shift+r` invokes wallr with all articles displayed.
2021-03-08 09:14:33 +01:00
Marty Oehme 5ca27e5fd5
scripts: Add script to read wallabag articles
Added script to easily read wallabag articles on the command line (or
open them in browser), using the wallabag-cli python program in the
background.

Once invoked, will fetch a list of articles (optionally restricted to
read/unread/starred), and allow a choice through fzf.

Will then display the article in the user's preferred pager, editor, or
browser.

Can be invoked through the shell via `reader`, or through sxhkd shortcut
`r` from 'academia' mode (`alt + a`).
2021-03-05 17:07:11 +01:00
Marty Oehme 55442ae232
sxhkd: Add sharefile, emoji keybinds
Updated pass and surfraw to make use of capital letter shortcuts to keep
the general shortcut space a bit less cluttered (`Super + P/Q`
respectively).

Added a shortcut to automatically enter emoji, using rofimoji, via
`super + E`.

Added a shortcut to invoke a floating file picker which will
automatically be shared through `sharefile`, via `super + U`
2021-03-05 17:03:33 +01:00
Marty Oehme d2e44d330d
dunst: Add brightness level notifications
Added notifications on changing brightness, will stack by default to
show the current level before disappearing.

The script to change and notify can be run through the command
`control-brightness`, and is bound to the sxhkd media key shortcuts for
brightness changes.

Removed the brightness indicator from polybar since it should be easy
enough to check current brightness by doing a quick higher-lower and
that's it.

Kept the module in polybar configuration script since I might reconsider
its removal if it turns out to have been useful.
2020-12-21 22:55:52 +01:00
Marty Oehme 5bdb16e113
sxhkd: Add toggleable statusbar
Added toggle key for polybar, just in case I ever need the extra screen
real estate (*without* i3's `Mod+f` full-screen mode).

Should come handy rarely, but if it does it now exists. Can be toggled
with `super+F7`, since that is close to the other styling option and not
used in any other way (not even with media keys or similar).
2020-12-03 12:41:04 +01:00
Marty Oehme e015c4b5f1
Tiny fixes
Clarified naming scheme in sxhkd-chain-labels documentation.

Updated year for vim copyright shortcut.

Enabled automatic copying to clipboard by neovim for every yank action.
2020-09-22 22:34:50 +02:00
Marty Oehme def968aefd
sxhkd: Switch to rofi-pass and pavolume invocation
Switched sxhkd shortcut from rofi-gopass to new rofi-pass
implementation.

Additionally switched from pulsemixer to pavolume for media key volume
control. Pulsemixer works well as a tui application, but its cli
implementation is unbearably slow (on my setup at the very least).

After pressing the volume up/down/mute key it could take up to 3 seconds
to take effect. With pavolume this change happens almost
instantaneously, and it displays a libnotify message on top (can be
disabled).
2020-09-12 17:54:19 +02:00
Marty Oehme 219f9a912d
sxhkd: Fix volume media keys
Changed the order of volume media keys so raising vol key raises
volume and lower vol key lowers volume, not the other way round as
before. oops.
2020-08-01 09:19:26 +02:00
Marty Oehme 966d87b3ea
[sxhkd] Separate calculator and run shortcuts
Previously, super + r would open an extended run menu which contained
all programs to run, ssh servers to connect to, clipboard history, open
windows, *and* the calculator. It was cumbersome to open the window,
switch the mode to calculator and then have it obscure half the screen.
It was also the mode most often used.

So, these two modes have been split, and their mappings updated:
`super + shift + spacebar` opens the old extended run menu (sans calc),
the mapping mimicking the 'extended' version of the normal run mapping.

`super (+ shift) + r` opens the calculator. Without shift it opens top
left of the screen, with shift bottom right.
2020-07-05 10:29:56 +02:00
Marty Oehme 4d96b19163
[sxhkd] Fix pipe enabled sxhkd start 2020-05-29 14:01:47 +02:00
Marty Oehme 11a6eda0ce
[sxhkd] Fix shortcuts, Add bib-due overview
Changed sxhkd being hard-coded to use alacritty as a terminal. Though I
don't see myself switching soon, changed the shortcut to make use of the
already existing environment variable "$TERMINAL" which gets set as part
of my basic env settings on the machine.

Added pre-defined filter for styler entries, removing 256 color versions
of base16 themes, as well as all atelier styles. I never use -256
versions of the themes so they can be hidden. If I want to use an
atelier style (which is rarely), I can quickly remove the pre-defined
filter since it is the last one added.

Added a mapping to academia mode which shows *all* due papers, to get an
overview at a glance. Uses F3, so that academia mappings go F1->F3 from
most restricted to most encompassing views.
2020-05-28 10:30:58 +02:00
Marty Oehme 7be23bb4b8
[sxhkd] Add sxhkdrc parsing to mode script
Can now parse the usual sxhkdrc file in looking for mode chain
combinations. Will prefer explicit configuration files if they exist.
Read the -h to learn more.
2020-05-26 14:55:06 +02:00
Marty Oehme 1c789a9e72
[sxhkd] Add basic mode keybinds
Moved media mode keys from i3 to sxhkd without changes.

Added F1 and F2 to academia mode display, to display upcoming and all
bibfile readings (only urgent by default, with shift it displays
priorities).
2020-05-26 13:59:57 +02:00
Marty Oehme cb5f09c414
[sxhkd] Add script to show current sxhkd mode
Script can be used in a statusbar or otherwise and will return the
currently active sxhkd mode. Look into the README for further
explanation.
2020-05-26 11:50:20 +02:00
Marty Oehme 42379b25eb
[sxhkd] Move media control mode to sxhkd from i3wm
Most modes should reside in sxhkd, to unify the 'hotkey' settings of the
configuration, and since controlling playback has little to do with the
window manager.
2020-05-26 10:33:32 +02:00
Marty Oehme 68de6bbbd8
[rofi] Use dropdown theme for more menu lists
Make run menu, password list, and theme selection use the unified
dropdown theme by default.
2020-05-25 17:53:26 +02:00
Marty Oehme ad8decb4ef Integrate dynamic colorschemes into applications
Makes polybar use Xresources color values for its colors. Resets rofi
values to their default after being overwritten by the base16 themes.
Makes qutebrowser include the colorscheme in its configuration file.

Ignore dynamically generated colorschemes in .gitignore file.
2020-02-01 11:01:26 +01:00
Marty Oehme d34cecb27e Switch to GNU stow 2019-12-29 23:12:13 +01:00