This commit is contained in:
Geoffrey Frogeye 2018-05-21 10:57:19 +02:00
parent 4a7b5985a6
commit 57f9edbf56
8 changed files with 47 additions and 16 deletions

View file

@ -1,5 +1,5 @@
! Scrollback position
! TODO Do not work
! TODO Does not work
! do not scroll with output
URxvt*scrollTtyOutput: false
@ -12,20 +12,21 @@ URxvt*scrollTtyKeypress: true
! Scrollback buffer in secondary screen
! TODO Do not work
! TODO Does not work
URxvt.secondaryScreen: 1
URxvt.secondaryScroll: 0
! No scroll bar
URxvt*scrollBar: false
! Font declaration
URxvt.font: xft:DejaVu Sans Mono for Powerline:size=12:antialias=true
! Font spacing
URxvt.letterSpace: 0
! No scroll bar
URxvt*scrollBar: false
! Disable Ctrl+Shift default bindings
URxvt.iso14755: false
URxvt.iso14755_52: false
@ -36,11 +37,7 @@ URxvt.keysym.C-S-V: eval:paste_clipboard
! Extensions
URxvt.perl-ext-common: default,matcher,resize-font
! Clickable URL (extension: matcher)
URxvt.url-launcher: /usr/bin/xdg-open
URxvt.matcher.button: 1
URxvt.perl-ext-common: resize-font,bell-command,readline,selection
! Changing font size on the fly (extension: resize-font, package: urxvt-resize-font-git)
URxvt.keysym.C-KP_Subtract: resize-font:smaller
@ -54,3 +51,5 @@ urxvt*shading: 30
!urxvt*depth: 32
!urxvt*background: rgba:2700/2800/2200/c800
! Bell command (extension: bell-command)
URxvt.bell-command: play -n synth sine C5 sine E4 remix 1-2 fade 0.1 0.2 0.1 &> /dev/null

1
bashrc
View file

@ -61,6 +61,7 @@ alias po='eval $(proxy off)'
alias nw="sudo systemctl restart NetworkManager"
alias mc="machines"
alias tracefiles="strace -f -t -e trace=file"
alias n='urxvtc &'
# Superseding commands with better ones if they are present
function vi() {

View file

@ -56,9 +56,9 @@ bindsym XF86AudioLowerVolume exec pactl set-sink-mute @DEFAULT_SINK@ false; exec
bindsym XF86AudioMute exec pactl set-sink-mute @DEFAULT_SINK@ true
bindsym $mod+F7 exec pactl suspend-sink @DEFAULT_SINK@ 1; exec pactl suspend-sink @DEFAULT_SINK@ 0
# Re-synchronize bluetooth headset
bindsym $mod+F8 exec mpc prev
bindsym $mod+F9 exec mpc toggle
bindsym $mod+F10 exec mpc next
bindsym XF86AudioPrev exec mpc prev
bindsym XF86AudioPlay exec mpc toggle
bindsym XF86AudioNext exec mpc next
bindsym $mod+F11 exec urxvtc -e 'pacmixer'
bindsym $mod+F12 exec urxvtc -e 'pacmixer'
@ -364,7 +364,7 @@ bindsym $mod+F5 exec --no-startup-id xautolock -enable
#exec --no-startup-id gnome-keyring-daemon # Password remembering
exec --no-startup-id urxvtd -q -f # urxvt daemon
exec --no-startup-id numlockx on # Activate Num lock
exec --no-startup-id unclutter # Hide mouse cursor after some time
exec --no-startup-id unclutter -root # Hide mouse cursor after some time
#exec --no-startup-id dunst # Notifications (handled by systemd)
exec --no-startup-id keynav # Keyboard cursor controller
#exec --no-startup-id $HOME/.config/i3/clipmenud # Clipboard manager

26
config/i3/multimediaKey Executable file
View file

@ -0,0 +1,26 @@
#!/usr/bin/env bash
# Send a key event to the current multimedia application or to MPD
# Currently since I did not found a way to test if a keystroke
# is grabbed by a windows or not, we test if MPD is playing
echo 8 "$1" "$2" "$(xdotool getactivewindow)" >> /tmp/dbg
if [ $# != 2 ]; then
echo "Usage: $0 KEY MPC_COMMAND"
exit 1
fi
if [ $(mpc status | wc -l) -ne 1 ]; then
# If mpd is running
mpc $2
else
# If mpd is not running
# echo "$1" "$2" "$(xdotool getactivewindow)" >> /tmp/dbg
xdotool key --window $(xdotool getactivewindow) $1
echo xdotool key --window $(xdotool getactivewindow) $1 >> /tmp/dbg
fi
exit 0

View file

@ -18,7 +18,7 @@ local_timezone = Europe/Paris
[default]
default_calendar = "Personnel"
default_command = interactive
default_command = calendar
highlight_event_days = True
show_all_days = True
timedelta = 7d

View file

@ -0,0 +1 @@
/home/geoffrey/.local/share/systemd/user/mbsync.timer

3
gdbinit Normal file
View file

@ -0,0 +1,3 @@
define hook-quit
set confirm off
end

View file

@ -113,7 +113,8 @@ if (latex) {
// Conversion
htmlString = marked(markdownString, {
renderer: renderer
renderer: renderer,
breaks: true
});
// fullHtmlString = htmlString;
fullHtmlString = template.replace('%BODY%', () => { return htmlString });