1
0
mirror of https://github.com/tiyn/dotfiles.git synced 2025-04-09 20:27:46 +02:00

Compare commits

...

4 Commits

Author SHA1 Message Date
marten
42c6831850
Update README.md 2023-01-10 01:58:41 +01:00
a96c307688 maimpick: added sxhkd key 2023-01-10 01:25:26 +01:00
9bd93f5e4e nvim: fixed outdated function 2023-01-10 01:15:12 +01:00
76aaa776d5 maimpick: adapted from lukesmithxyz 2023-01-10 01:14:44 +01:00
4 changed files with 38 additions and 12 deletions

View File

@ -119,7 +119,7 @@ let g:bookmark_highlight_lines = 1
lua << EOF
-- Add additional capabilities supported by nvim-cmp
local capabilities = vim.lsp.protocol.make_client_capabilities()
capabilities = require("cmp_nvim_lsp").update_capabilities(capabilities)
capabilities = require("cmp_nvim_lsp").default_capabilities(capabilities)
-- Set completeopt to have a better completion experience
vim.o.completeopt = 'menuone,noselect'

View File

@ -6,6 +6,8 @@ super + f
$TERMINAL -e $FILE
super + m
thunderbird
super + x
pkill -usr1 -x sxhkd; notify-send 'sxhkd' 'Reloaded config'
super + shift + r
dmenu_run -c -l 20
super + F5
@ -24,6 +26,9 @@ super + F11
prompt "Shutdown computer?" "sudo -A shutdown -h now"
super + F12
prompt "Reboot computer?" "sudo -A reboot now"
super + Print
maimpick
XF86Launch1
xset dpms force off
XF86AudioMute
@ -38,3 +43,4 @@ XF86MonBrightnessDown
light -U 15
XF86MonBrightnessUp
light -A 15

18
.local/bin/tools/maimpick Executable file
View File

@ -0,0 +1,18 @@
#!/bin/sh
# Requires maim. It lets you choose the kind of screenshot to take,
# including copying the image or even highlighting an area to copy.
output="$HOME/downloads/screenshot-$(date '+%y%m%d-%H%M-%S').png"
xclip_cmd="xclip -sel clip -t image/png"
case "$(printf "a selected area\\ncurrent window\\nfull screen\\na selected area (clipboard)\\ncurrent window (clipboard)\\nfull screen (clipboard)\\ncolor picker (clipboard)" | dmenu -l 6 -i -p "Screenshot which area?")" in
"a selected area") maim -s $output ;;
"current window") maim -i "$(xdotool getactivewindow)" $output ;;
"full screen") maim $output ;;
"a selected area (clipboard)") maim -s | ${xclip_cmd} ;;
"current window (clipboard)") maim -i "$(xdotool getactivewindow)" | ${xclip_cmd} ;;
"full screen (clipboard)") maim | ${xclip_cmd} ;;
"color picker (clipboard)") maim -st 0 | convert - -resize 1x1\! -format '%[pixel:p{0,0}]' info:- | ${xclip_cmd} ;;
esac

View File

@ -43,23 +43,25 @@ There are various shortcuts and hotkeys used in this version. Included in my bui
| ModKey | Shift | Key | Function |
| ------ | ----- | ----------------- | --------------------------------------------------------- |
| Super | | Return | Spawn terminal |
| Super | | Return | Spawn terminal |
| Super | | b | Spawn browser |
| Super | Shift | b | Toggle dwmbar |
| Super | | f | Spawn filemanager |
| Super | | f | Spawn filemanager |
| Super | | i | Spawn intellij-idea-ultimate-edition |
| Super | | m | Spawn thunderbird |
| Super | | p | Spawn ncmpcpp in st |
| Super | Shift | r | (dmenu) dmenu\_run |
| Super | | s | (dmenu) startpagesearch |
| Super | | F5 | enable 2 Screen Monitor |
| Super | | F6 | toggle touchpad |
| Super | | F7 | (dmenu) mounting drives |
| Super | | F8 | (dmenu) unmounting drives |
| Super | Shift | r | (dmenu) dmenu\_run |
| Super | Shift | r | Restart sxkd |
| Super | | s | (dmenu) Startpagesearch |
| Super | | F5 | Enable 2 Screen Monitor |
| Super | | F6 | Toggle touchpad |
| Super | | F7 | (dmenu) Mounting drives |
| Super | | F8 | (dmenu) Unmounting drives |
| Super | | F9 | Restart NetworkManager |
| Super | | F10 | (dmenu) prompt, if yes: slock |
| Super | | F11 | (dmenu) prompt, if yes: reboot |
| Super | | F12 | (dmenu) prompt, if yes: shutdown |
| Super | | F10 | (dmenu) Prompt, if yes: slock |
| Super | | F11 | (dmenu) Prompt, if yes: reboot |
| Super | | F12 | (dmenu) Prompt, if yes: shutdown |
| Super | | Print | (dmenu) Prompt to take a screenshot |
| | | AudioMute | Volume mute |
| | | AudioMicMute | Mic Mute |
| | | AudioLowerVolume | Volume lower |