From: Mike Frysinger Date: Fri, 7 Feb 2014 04:18:16 +0000 (-0500) Subject: merge .kde and .kde4 as Gentoo uses .kde4 but Debian uses .kde X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=386aa07591d2142098126648f011b8a61e297c18;p=home.git merge .kde and .kde4 as Gentoo uses .kde4 but Debian uses .kde --- diff --git a/.kde/Autostart/auto-mute b/.kde/Autostart/auto-mute new file mode 100755 index 0000000..d27df75 --- /dev/null +++ b/.kde/Autostart/auto-mute @@ -0,0 +1,2 @@ +#!/bin/sh +exec amixer -q set Master mute diff --git a/.kde/Autostart/gkrellm b/.kde/Autostart/gkrellm new file mode 100755 index 0000000..8024515 --- /dev/null +++ b/.kde/Autostart/gkrellm @@ -0,0 +1,2 @@ +#!/bin/sh +exec kstart --window gkrellm --alldesktops --ontop --skippager --skiptaskbar "$@" gkrellm diff --git a/.kde/Autostart/kde-hidden-settings b/.kde/Autostart/kde-hidden-settings new file mode 100755 index 0000000..c784e9e --- /dev/null +++ b/.kde/Autostart/kde-hidden-settings @@ -0,0 +1,10 @@ +#!/bin/sh + +# Disable the Ctrl-activated rectangles in Konqueror (Access Keys) +kwriteconfig --file khtmlrc --group "Access Keys" --key Enabled --type bool false + +# Close Tab on Middle Click in Konqueror +kwriteconfig --file konquerorrc --group "FMSettings" --key MouseMiddleClickClosesTab --type bool true + +# Hide "New Tab" and "Close Tab" from the Tabbar in Konqueror +kwriteconfig --file konquerorrc --group FMSettings --key AddTabButton --type bool false diff --git a/.kde/Autostart/kill-flash-cookies b/.kde/Autostart/kill-flash-cookies new file mode 100755 index 0000000..f2921dd --- /dev/null +++ b/.kde/Autostart/kill-flash-cookies @@ -0,0 +1,2 @@ +#!/bin/sh +exec rm -rf ~/.macromedia ~/.adobe diff --git a/.kde/Autostart/xhost b/.kde/Autostart/xhost new file mode 100755 index 0000000..27d917a --- /dev/null +++ b/.kde/Autostart/xhost @@ -0,0 +1,2 @@ +#!/bin/sh +exec xhost +local:0 diff --git a/.kde/Autostart/xmodmap b/.kde/Autostart/xmodmap new file mode 100755 index 0000000..389518e --- /dev/null +++ b/.kde/Autostart/xmodmap @@ -0,0 +1,2 @@ +#!/bin/sh +exec xmodmap ~/.Xmodmap diff --git a/.kde/Autostart/xset-rate b/.kde/Autostart/xset-rate new file mode 100755 index 0000000..94d3c58 --- /dev/null +++ b/.kde/Autostart/xset-rate @@ -0,0 +1,25 @@ +#!/bin/bash + +unset xmodmap_pke +keyname_to_keycode() { + : ${xmodmap_pke:=$(xmodmap -pke)} + echo "${xmodmap_pke}" | awk -vkey="$1" '$4 == key { print $2 }' +} + +# disable repeat on some keys (randomly, they get turned on?!) +keys=( + Control_{L,R} # Ctrl key + Shift_{L,R} # Shift key + Alt_{L,R} # Alt key + Super_{L,R} # Windows key + Mode_switch # Capslock +) +for x in ${keys[@]} ; do + for c in $(keyname_to_keycode $x); do + xset -r ${c} + done +done + +# xset r rate +# in milliseconds keys per sec +exec xset r rate 200 40 diff --git a/.kde/env/keychain.sh b/.kde/env/keychain.sh new file mode 120000 index 0000000..1ce4572 --- /dev/null +++ b/.kde/env/keychain.sh @@ -0,0 +1 @@ +../../.profile.d/keychain.sh \ No newline at end of file diff --git a/.kde4 b/.kde4 new file mode 120000 index 0000000..bdb1556 --- /dev/null +++ b/.kde4 @@ -0,0 +1 @@ +.kde \ No newline at end of file diff --git a/.kde4/Autostart/auto-mute b/.kde4/Autostart/auto-mute deleted file mode 100755 index d27df75..0000000 --- a/.kde4/Autostart/auto-mute +++ /dev/null @@ -1,2 +0,0 @@ -#!/bin/sh -exec amixer -q set Master mute diff --git a/.kde4/Autostart/gkrellm b/.kde4/Autostart/gkrellm deleted file mode 100755 index 8024515..0000000 --- a/.kde4/Autostart/gkrellm +++ /dev/null @@ -1,2 +0,0 @@ -#!/bin/sh -exec kstart --window gkrellm --alldesktops --ontop --skippager --skiptaskbar "$@" gkrellm diff --git a/.kde4/Autostart/kde-hidden-settings b/.kde4/Autostart/kde-hidden-settings deleted file mode 100755 index c784e9e..0000000 --- a/.kde4/Autostart/kde-hidden-settings +++ /dev/null @@ -1,10 +0,0 @@ -#!/bin/sh - -# Disable the Ctrl-activated rectangles in Konqueror (Access Keys) -kwriteconfig --file khtmlrc --group "Access Keys" --key Enabled --type bool false - -# Close Tab on Middle Click in Konqueror -kwriteconfig --file konquerorrc --group "FMSettings" --key MouseMiddleClickClosesTab --type bool true - -# Hide "New Tab" and "Close Tab" from the Tabbar in Konqueror -kwriteconfig --file konquerorrc --group FMSettings --key AddTabButton --type bool false diff --git a/.kde4/Autostart/kill-flash-cookies b/.kde4/Autostart/kill-flash-cookies deleted file mode 100755 index f2921dd..0000000 --- a/.kde4/Autostart/kill-flash-cookies +++ /dev/null @@ -1,2 +0,0 @@ -#!/bin/sh -exec rm -rf ~/.macromedia ~/.adobe diff --git a/.kde4/Autostart/xhost b/.kde4/Autostart/xhost deleted file mode 100755 index 27d917a..0000000 --- a/.kde4/Autostart/xhost +++ /dev/null @@ -1,2 +0,0 @@ -#!/bin/sh -exec xhost +local:0 diff --git a/.kde4/Autostart/xmodmap b/.kde4/Autostart/xmodmap deleted file mode 100755 index 389518e..0000000 --- a/.kde4/Autostart/xmodmap +++ /dev/null @@ -1,2 +0,0 @@ -#!/bin/sh -exec xmodmap ~/.Xmodmap diff --git a/.kde4/Autostart/xset-rate b/.kde4/Autostart/xset-rate deleted file mode 100755 index 94d3c58..0000000 --- a/.kde4/Autostart/xset-rate +++ /dev/null @@ -1,25 +0,0 @@ -#!/bin/bash - -unset xmodmap_pke -keyname_to_keycode() { - : ${xmodmap_pke:=$(xmodmap -pke)} - echo "${xmodmap_pke}" | awk -vkey="$1" '$4 == key { print $2 }' -} - -# disable repeat on some keys (randomly, they get turned on?!) -keys=( - Control_{L,R} # Ctrl key - Shift_{L,R} # Shift key - Alt_{L,R} # Alt key - Super_{L,R} # Windows key - Mode_switch # Capslock -) -for x in ${keys[@]} ; do - for c in $(keyname_to_keycode $x); do - xset -r ${c} - done -done - -# xset r rate -# in milliseconds keys per sec -exec xset r rate 200 40 diff --git a/.kde4/env/keychain.sh b/.kde4/env/keychain.sh deleted file mode 120000 index 1ce4572..0000000 --- a/.kde4/env/keychain.sh +++ /dev/null @@ -1 +0,0 @@ -../../.profile.d/keychain.sh \ No newline at end of file