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

Compare commits

...

7 Commits

Author SHA1 Message Date
70d4590303 keys: alias for screenkey 2023-01-11 04:36:24 +01:00
29ac61618d record: fixed notifications 2023-01-11 03:58:46 +01:00
1488c9ce5a sxhkd: removed unneccessarities 2023-01-11 01:33:22 +01:00
dfb203063e Merge branch 'master' of github:tiyn/dotfiles 2023-01-11 01:31:51 +01:00
db94baae71 sxhkd: restart moved 2023-01-11 01:31:42 +01:00
marten
0c518edd9b
Update README.md 2023-01-11 01:27:54 +01:00
0d221f7db0 screen-record: added hotkeys and scripts 2023-01-11 01:17:57 +01:00
8 changed files with 48 additions and 10 deletions

View File

@ -102,9 +102,13 @@ alias rsync="rsync -vh --progress --partial"
alias su="sudo -i"
alias sudo="sudo "
#sc-im
# sc-im
alias sc="sc-im"
# screenkey
alias keys="screenkey"
# script
alias scriptclear="cat typescript | perl -pe 's/\e([^\[\]]|\[.*?[a-zA-Z]|\].*?\a)//g' | col -b > typescript-processed"

View File

@ -4,9 +4,17 @@ super + b
$BROWSER
super + f
$TERMINAL -e $FILE
super + i
record_stop
super + m
thunderbird
super + x
super + o
record_replay_start
super + p
record_replay_save
super + u
record_start
super + shift + x
pkill -usr1 -x sxhkd; notify-send 'sxhkd' 'Reloaded config'
super + shift + r
dmenu_run -c -l 20
@ -29,8 +37,6 @@ super + F12
super + Print
maimpick
XF86Launch1
xset dpms force off
XF86AudioMute
lmc m && pkill -RTMIN+4 $STATUSBAR
XF86AudioMicMute

View File

@ -3,7 +3,7 @@
# 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"
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

View File

@ -0,0 +1,3 @@
#!/bin/sh
killall -SIGUSR1 gpu-screen-recorder && notify-send 'Screen record' 'Replay saved'

View File

@ -0,0 +1,11 @@
#!/bin/sh
window=$(xdotool getwindowfocus)
fps=30
audio="$(pactl get-default-sink).monitor"
format="mp4"
lenght=20
output="$HOME/downloads"
gpu-screen-recorder -w $window -f $fps -a $audio -c $format -r $lenght -o $output &
notify-send 'Screen record' 'Replay started'

10
.local/bin/tools/record_start Executable file
View File

@ -0,0 +1,10 @@
#!/bin/sh
window=$(xdotool getwindowfocus)
fps=30
audio="$(pactl get-default-sink).monitor"
format="mp4"
output="$HOME/downloads/recording-$(date '+%Y-%m-%d_%H-%M-%S').$format"
gpu-screen-recorder -w $window -c "mp4" -f $fps -a $audio -o $output &
notify-send 'Screen record' 'Recording started'

3
.local/bin/tools/record_stop Executable file
View File

@ -0,0 +1,3 @@
#!/bin/sh
killall -SIGINT gpu-screen-recorder && notify-send 'Screen record' 'Recording stopped'

View File

@ -45,14 +45,14 @@ There are various shortcuts and hotkeys used in this version. Included in my bui
| ------ | ----- | ----------------- | --------------------------------------------------------- |
| Super | | Return | Spawn terminal |
| Super | | b | Spawn browser |
| Super | Shift | b | Toggle dwmbar |
| Super | | f | Spawn filemanager |
| Super | | i | Spawn intellij-idea-ultimate-edition |
| Super | | i | (gpu-screen-record) stop recording |
| Super | | m | Spawn thunderbird |
| Super | | p | Spawn ncmpcpp in st |
| Super | | o | (gpu-screen-record) start replay |
| Super | | p | (gpu-screen-record) save replay |
| Super | | u | (gpu-screen-record) start recording |
| Super | Shift | r | (dmenu) dmenu\_run |
| Super | Shift | r | Restart sxkd |
| Super | | s | (dmenu) Startpagesearch |
| Super | Shift | x | Restart sxkd |
| Super | | F5 | Enable 2 Screen Monitor |
| Super | | F6 | Toggle touchpad |
| Super | | F7 | (dmenu) Mounting drives |
@ -69,6 +69,7 @@ There are various shortcuts and hotkeys used in this version. Included in my bui
| | | MonBrightnessDown | Brightness decrease |
| | | MonBrightnessUp | Brightness increase |
## Additional configs
Additional configs (and for example firefox plugins) can be found in my [wiki](https://github.com/tiyn/wiki).