From 57f9edbf567e06173be6cc9e037301d37bc95650 Mon Sep 17 00:00:00 2001 From: Geoffrey Frogeye Date: Mon, 21 May 2018 10:57:19 +0200 Subject: [PATCH] Hiiiii --- Xresources.d/urxvt | 19 +++++++------- bashrc | 1 + config/i3/config | 8 +++--- config/i3/multimediaKey | 26 +++++++++++++++++++ config/khal/config | 2 +- .../user/default.target.wants/mbsync.timer | 1 + gdbinit | 3 +++ scripts/md2html | 3 ++- 8 files changed, 47 insertions(+), 16 deletions(-) create mode 100755 config/i3/multimediaKey create mode 120000 config/systemd/user/default.target.wants/mbsync.timer create mode 100644 gdbinit diff --git a/Xresources.d/urxvt b/Xresources.d/urxvt index 53f39b1..08bf87e 100644 --- a/Xresources.d/urxvt +++ b/Xresources.d/urxvt @@ -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 diff --git a/bashrc b/bashrc index 37a045a..47fa3ca 100644 --- a/bashrc +++ b/bashrc @@ -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() { diff --git a/config/i3/config b/config/i3/config index 19298d7..94f97fa 100644 --- a/config/i3/config +++ b/config/i3/config @@ -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 diff --git a/config/i3/multimediaKey b/config/i3/multimediaKey new file mode 100755 index 0000000..3a4a808 --- /dev/null +++ b/config/i3/multimediaKey @@ -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 + + diff --git a/config/khal/config b/config/khal/config index f32ce2b..902d4fd 100644 --- a/config/khal/config +++ b/config/khal/config @@ -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 diff --git a/config/systemd/user/default.target.wants/mbsync.timer b/config/systemd/user/default.target.wants/mbsync.timer new file mode 120000 index 0000000..ebd66d7 --- /dev/null +++ b/config/systemd/user/default.target.wants/mbsync.timer @@ -0,0 +1 @@ +/home/geoffrey/.local/share/systemd/user/mbsync.timer \ No newline at end of file diff --git a/gdbinit b/gdbinit new file mode 100644 index 0000000..9569b3d --- /dev/null +++ b/gdbinit @@ -0,0 +1,3 @@ +define hook-quit + set confirm off +end diff --git a/scripts/md2html b/scripts/md2html index 0e79ee1..9564de2 100755 --- a/scripts/md2html +++ b/scripts/md2html @@ -113,7 +113,8 @@ if (latex) { // Conversion htmlString = marked(markdownString, { - renderer: renderer + renderer: renderer, + breaks: true }); // fullHtmlString = htmlString; fullHtmlString = template.replace('%BODY%', () => { return htmlString });