Commit aecf5f39 authored by David Redondo's avatar David Redondo 🏎

Remove old schemes

They weren't installed anymore since the import into git. Same for the split_kksrc
script. I guess it was used to convert the old_* files to the current ones.
parent 3ce99d4c
[Global Shortcuts]
Halt Computer=none
Popup Launch Menu=Alt+F1
Reboot Computer=none
Show Window List=Alt+F5
Toggle Showing Desktop=Ctrl+Alt+D
[Shortcuts]
AddBookmark=Ctrl+B
Back=Alt+Left
Close=Ctrl+W
Copy=Ctrl+C; Ctrl+Insert
Cut=Ctrl+X; Shift+Del
DeleteWordBack=Ctrl+Backspace
DeleteWordForward=Ctrl+Del
Deselect=Ctrl+Shift+A
End=Ctrl+End
Find=Ctrl+F
FindNext=F3
FindPrev=Shift+F3
Forward=Alt+Right
GotoLine=Ctrl+G
Help=F1
Home=Ctrl+Home
Insert=Ctrl+Insert
New=Ctrl+N
Next=Next
NextCompletion=Ctrl+Down
Open=Ctrl+O
Paste=Ctrl+V; Shift+Insert
PopupMenuContext=Menu
PrevCompletion=Ctrl+Up
Print=Ctrl+P
Prior=Prior
Quit=Ctrl+Q
Redo=Ctrl+Shift+Z
Reload=F5
Replace=Ctrl+R
RotateDown=Down
RotateUp=Up
Save=Ctrl+S
SelectAll=Ctrl+A
ShowMenubar=Ctrl+M
SubstringCompletion=Ctrl+T
TextCompletion=Ctrl+E
Undo=Ctrl+Z
Up=Alt+Up
WhatsThis=Shift+F1
ZoomIn=Ctrl++
ZoomOut=Ctrl+-
[Global Shortcuts]
Halt Computer=none
Popup Launch Menu=Meta+Menu
Reboot Computer=none
Show Window List=Meta+0
Toggle Showing Desktop=Meta+Ctrl+D
[Shortcuts]
AddBookmark=Ctrl+B
Back=Alt+Left
Close=Ctrl+Esc; Ctrl+W
Copy=Ctrl+C; Ctrl+Insert
Cut=Ctrl+X; Shift+Del
DeleteWordBack=Ctrl+Backspace
DeleteWordForward=Ctrl+Del
Deselect=Ctrl+Shift+A
End=Ctrl+End
Find=Ctrl+F
FindNext=F3
FindPrev=Shift+F3
Forward=Alt+Right
GotoLine=Ctrl+G
Help=F1
Home=Ctrl+Home
Insert=Ctrl+Insert
New=Ctrl+N
Next=Next
NextCompletion=Ctrl+Down
Open=Ctrl+O
Paste=Ctrl+V; Shift+Insert
PopupMenuContext=Menu
PrevCompletion=Ctrl+Up
Print=Ctrl+P
Prior=Prior
Quit=Ctrl+Q
Redo=Ctrl+Shift+Z
Reload=F5
Replace=Ctrl+R
RotateDown=Down
RotateUp=Up
Save=Ctrl+S
SelectAll=Ctrl+A
ShowMenubar=Ctrl+M
SubstringCompletion=Ctrl+T
TextCompletion=Ctrl+E
Undo=Ctrl+Z
Up=Alt+Up
WhatsThis=Shift+F1
ZoomIn=Ctrl++
ZoomOut=Ctrl+-
[Global Shortcuts]
Halt Computer=none
Popup Launch Menu=Alt+F1
Reboot Computer=none
Show Window List=Alt+F5
Toggle Showing Desktop=Ctrl+Alt+D
[Shortcuts]
AddBookmark=Ctrl+B
Back=Alt+Left
Close=Ctrl+W
Copy=Ctrl+C
Cut=Ctrl+X
DeleteWordBack=Ctrl+Backspace
DeleteWordForward=Ctrl+Del
Deselect=Ctrl+Shift+A
End=Ctrl+End
Find=Ctrl+F
FindNext=Ctrl+G
FindPrev=Ctrl+Shift+G
Forward=Alt+Right
GotoLine=none
Help=F1
Home=Ctrl+Home
Insert=Ctrl+Insert
New=Ctrl+N
Next=Next
NextCompletion=Ctrl+Down
Open=Ctrl+O
Paste=Ctrl+V
PopupMenuContext=Menu
PrevCompletion=Ctrl+Up
Print=Ctrl+P
Prior=Prior
Quit=Ctrl+Q
Redo=Ctrl+Shift+Z
Reload=F5
Replace=Ctrl+R
RotateDown=Down
RotateUp=Up
Save=Ctrl+S
SelectAll=Ctrl+A
ShowMenubar=Ctrl+M
SubstringCompletion=Ctrl+T
TextCompletion=Ctrl+E
Undo=Ctrl+Z
Up=Alt+Up
WhatsThis=Shift+F1
ZoomIn=Ctrl++
ZoomOut=Ctrl+-
[Global Shortcuts]
Halt Computer=none
Popup Launch Menu=Alt+F1
Reboot Computer=none
Show Window List=none
Toggle Showing Desktop=Ctrl+Alt+D
[Shortcuts]
AddBookmark=Ctrl+B
Back=Alt+Left
Close=Ctrl+W
Copy=Ctrl+C
Cut=Ctrl+X
DeleteWordBack=Ctrl+Backspace
DeleteWordForward=Ctrl+Del
Deselect=Ctrl+Shift+A
End=Ctrl+End
Find=Ctrl+S
FindNext=F3
FindPrev=Shift+F3
Forward=Alt+Right
GotoLine=Ctrl+G
Help=F1
Home=Ctrl+Home
Insert=Ctrl+Insert
New=Ctrl+N
Next=Next
NextCompletion=Ctrl+Down
Open=Ctrl+O
Paste=Ctrl+V
PopupMenuContext=Menu
PrevCompletion=Ctrl+Up
Print=Ctrl+P
Prior=Prior
Quit=Ctrl+Q
Redo=Ctrl+Shift+Z
Reload=F5
Replace=Ctrl+R
RotateDown=Down
RotateUp=Up
Save=Ctrl+S
SelectAll=
ShowMenubar=Ctrl+M
SubstringCompletion=Ctrl+T
TextCompletion=Ctrl+E
Undo=Ctrl+Z
Up=Alt+Up
WhatsThis=Shift+F1
ZoomIn=Ctrl++
ZoomOut=Ctrl+-
[Global Shortcuts]
Halt Computer=none
Popup Launch Menu=Ctrl+Esc
Reboot Computer=none
Show Window List=none
Toggle Showing Desktop=Ctrl+Alt+D
[Shortcuts]
AddBookmark=Ctrl+D
Back=Alt+Left
Close=Ctrl+F4; Ctrl+W
Copy=Ctrl+C; Ctrl+Insert
Cut=Ctrl+X; Shift+Del
DeleteWordBack=Ctrl+Backspace
DeleteWordForward=Ctrl+Del
Deselect=Ctrl+Shift+A
End=Ctrl+End
Find=Ctrl+F
FindNext=F3
FindPrev=Shift+F3
Forward=Alt+Right
GotoLine=Ctrl+G
Help=F1
Home=Ctrl+Home
Insert=Ctrl+Insert
New=Ctrl+N
Next=Next
NextCompletion=Ctrl+Down
Open=Ctrl+O
Paste=Ctrl+V; Shift+Insert
PopupMenuContext=F10
PrevCompletion=Ctrl+Up
Print=Ctrl+P
Prior=Prior
Quit=
Redo=Ctrl+Shift+Z
Reload=F5
Replace=Ctrl+R
RotateDown=Down
RotateUp=Up
Save=Ctrl+S
SelectAll=Ctrl+A
ShowMenubar=Ctrl+M
SubstringCompletion=Ctrl+T
TextCompletion=Ctrl+E
Undo=Ctrl+Z
Up=Alt+Up
WhatsThis=Shift+F1
ZoomIn=Ctrl++
ZoomOut=Ctrl+-
[Global Shortcuts]
Halt Computer=none
Popup Launch Menu=Ctrl+Esc
Reboot Computer=none
Show Window List=none
Toggle Showing Desktop=Meta+D; Win+M
[Shortcuts]
AddBookmark=Ctrl+D
Back=Alt+Left
Close=Ctrl+F4; Ctrl+W
Copy=Ctrl+C; Ctrl+Insert
Cut=Ctrl+X; Shift+Del
DeleteWordBack=Ctrl+Backspace
DeleteWordForward=Ctrl+Del
Deselect=Ctrl+Shift+A
End=Ctrl+End
Find=Ctrl+F
FindNext=F3
FindPrev=Shift+F3
Forward=Alt+Right
GotoLine=Ctrl+G
Help=F1
Home=Ctrl+Home
Insert=Ctrl+Insert
New=Ctrl+N
Next=Next
NextCompletion=Ctrl+Down
Open=Ctrl+O
Paste=Ctrl+V; Shift+Insert
PopupMenuContext=F10
PrevCompletion=Ctrl+Up
Print=Ctrl+P
Prior=Prior
Quit=
Redo=Ctrl+Shift+Z
Reload=F5
Replace=Ctrl+R
RotateDown=Down
RotateUp=Up
Save=Ctrl+S
SelectAll=Ctrl+A
ShowMenubar=Ctrl+M
SubstringCompletion=Ctrl+T
TextCompletion=Ctrl+E
Undo=Ctrl+Z
Up=Alt+Up
WhatsThis=Shift+F1
ZoomIn=Ctrl++
ZoomOut=Ctrl+-
[Global Shortcuts]
Halt Computer=none
Popup Launch Menu=Alt+F1
Reboot Computer=none
Show Window List=Alt+F5
Toggle Showing Desktop=Ctrl+Alt+D
[Shortcuts]
AddBookmark=Ctrl+B
Back=Alt+Left
Close=Ctrl+W
Copy=Ctrl+C; Ctrl+Insert
Cut=Ctrl+X; Shift+Del
DeleteWordBack=Ctrl+Backspace
DeleteWordForward=Ctrl+Del
Deselect=Ctrl+Shift+A
End=Ctrl+End
Find=Ctrl+F
FindNext=F3
FindPrev=Shift+F3
Forward=Alt+Right
GotoLine=Ctrl+G
Help=F1
Home=Ctrl+Home
Insert=Ctrl+Insert
New=Ctrl+N
Next=Next
NextCompletion=Ctrl+Down
Open=Ctrl+O
Paste=Ctrl+V; Shift+Insert
PopupMenuContext=Menu
PrevCompletion=Ctrl+Up
Print=Ctrl+P
Prior=Prior
Quit=Ctrl+Q
Redo=Ctrl+Shift+Z
Reload=F5
Replace=Ctrl+R
RotateDown=Down
RotateUp=Up
Save=Ctrl+S
SelectAll=Ctrl+A
ShowMenubar=Ctrl+M
SubstringCompletion=Ctrl+T
TextCompletion=Ctrl+E
Undo=Ctrl+Z
Up=Alt+Up
WhatsThis=Shift+F1
ZoomIn=Ctrl++
ZoomOut=Ctrl+-
#!/usr/bin/perl
use strict;
use warnings;
foreach my $file( @ARGV )
{
print STDERR "Working on $file\n";
open(my $FILEHD, $file) or do
{
print STDERR "Failed to open $file : $!";
next;
};
open(my $NEWHD, ">new_$file") or do
{
print STDERR "Failed to open new_$file : $!";
next;
};
open(my $OLDHD, ">old_$file") or do
{
print STDERR "Failed to open old_$file : $!";
next;
};
my $process = 0;
my @kwin;
my @krunner;
my @klipper;
my @kxkb;
for( <$FILEHD> )
{
/\[Settings\]/ and do { print $NEWHD $_; next; };
/Name(\[[a-zA-Z_@]*\])?/ and do { print $NEWHD $_; next; };
/Name\[x-test\]/ and do { print $NEWHD $_; next; };
/Uses Win Modifier/ and do { print $NEWHD $_; next; };
/\[Global Shortcuts\]/ and do { print $OLDHD $_; $process = 1; next; };
/\[Shortcuts\]/ and do { print $OLDHD $_; $process = 0; next; };
s/Alt\+Ctrl/Ctrl+Alt/;
s/Delete/Del/;
s/Escape/Esc/;
s/Win/Meta/;
if ($process)
{
/Desktop Screenshot=/ and do { s/Desktop Screenshot=/Desktop Screenshot to Clipboard=/; push @kwin, $_; next; };
/Kill Window=/ and do { push @kwin, $_; next; };
/Mouse Emulation/ and do { push @kwin, $_; next; };
/Switch to Desktop [0-9]+/ and do { push @kwin, $_; next; };
/Switch to (Next|Previous) Desktop=/ and do { push @kwin, $_; next; };
/Switch One Desktop / and do { push @kwin, $_; next; };
/Toggle Window Raise\/Lower=/ and do { push @kwin, $_; next; };
/Walk Through Desktop/ and do { push @kwin, $_; next; };
/Walk Through Windows/ and do { push @kwin, $_; next; };
/Window to (Next |Previous )?Desktop/ and do { push @kwin, $_; next; };
/Window (Close|Minimize|Lower|Move|Raise|Resize|Shade)/ and do { push @kwin, $_; next; };
/Window Maximize/ and do { push @kwin, $_; next; };
/Window Operations Menu=/ and do { s/Window Screenshot=/Window Screenshot to Clipboard=/; push @kwin, $_; next; };
/Window Screenshot=/ and do { s/Window Screenshot=/Window Screenshot to Clipboard=/; push @kwin, $_; next; };
/Switch to Next Keyboard Layout/ and do { push @kxkb, $_; next; };
/clipboard_action/ and do { push @klipper, $_; next; };
/repeat_action/ and do { push @klipper, $_; next; };
/show_klipper_popup/ and do { push @klipper, $_; next; };
/Halt without Confirmation/ and do { s/Halt without Confirmation/Halt Without Confirmation/; push @krunner, $_; next; };
/Lock Session/ and do { push @krunner, $_; next; };
/Log Out/ and do { push @krunner, $_; next; };
/Log Out Without Confirmation/ and do { push @krunner, $_; next; };
/Lock Session/ and do { push @krunner, $_; next; };
/Reboot without Confirmation/ and do { s/Reboot without Confirmation/Reboot Without Confirmation/; push @krunner, $_; next; };
/Run Command/ and do { push @krunner, $_; next; };
/Show Taskmanager/ and do { s/Show Taskmanager/Show System Activity/; push @krunner, $_; next; };
}
print $OLDHD $_;
}
print $NEWHD "\n[klipper][Global Shortcuts]\n";
print $NEWHD sort @klipper;
print $NEWHD "\n[krunner][Global Shortcuts]\n";
print $NEWHD sort @krunner;
print $NEWHD "\n[kwin][Global Shortcuts]\n";
print $NEWHD sort @kwin;
print $NEWHD "\n[kxkb][Global Shortcuts]\n";
print $NEWHD sort @kxkb;
close($FILEHD) or do
{
print STDERR "Failed to close $file : $!";
next;
};
close($NEWHD) or do
{
print STDERR "Failed to close new_$file : $!";
next;
};
close($OLDHD) or do
{
print STDERR "Failed to close old_$file : $!";
next;
};
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment