add configRequest rule update
REVIEW: 111193
This commit is contained in:
parent
3c593f4357
commit
93ef0226ba
3 changed files with 18 additions and 2 deletions
|
@ -59,9 +59,9 @@ install( TARGETS kwin_update_settings_411 DESTINATION ${LIB_INSTALL_DIR}/kconf_u
|
|||
|
||||
install( FILES fsp_workarounds_1.kwinrules DESTINATION ${DATA_INSTALL_DIR}/kwin/default_rules )
|
||||
install( FILES pop.wav DESTINATION ${SOUND_INSTALL_DIR} )
|
||||
install( FILES kwin_fsp_workarounds_1.upd kwin_update_tabbox_settings.upd kwin_remove_effects.upd kwin_update_tabbox_qml_settings.upd kwin_remove_delay_focus.upd kwin_update_49.upd kwin_update_410.upd kwin_translate_activity_rule.upd
|
||||
install( FILES kwin_fsp_workarounds_1.upd kwin_update_tabbox_settings.upd kwin_remove_effects.upd kwin_update_tabbox_qml_settings.upd kwin_remove_delay_focus.upd kwin_update_49.upd kwin_update_410.upd kwin_translate_activity_rule.upd kwin_translate_confrequest_rule.upd
|
||||
kwin_update_411.upd
|
||||
DESTINATION ${KCONF_UPDATE_INSTALL_DIR} )
|
||||
install( PROGRAMS kwin_remove_delay_focus.sh kwin_translate_activity_rule.sh DESTINATION ${KCONF_UPDATE_INSTALL_DIR} )
|
||||
install( PROGRAMS kwin_remove_delay_focus.sh kwin_translate_activity_rule.sh kwin_translate_confrequest_rule.sh DESTINATION ${KCONF_UPDATE_INSTALL_DIR} )
|
||||
install( FILES stripTitle.js DESTINATION ${DATA_INSTALL_DIR}/kwin )
|
||||
|
||||
|
|
14
data/kwin_translate_confrequest_rule.sh
Executable file
14
data/kwin_translate_confrequest_rule.sh
Executable file
|
@ -0,0 +1,14 @@
|
|||
#!/bin/sh
|
||||
COUNT=`kreadconfig --file kwinrulesrc --group General --key count`
|
||||
if [ -z "$COUNT" ]; then
|
||||
exit 0 # nothing to do for us
|
||||
fi
|
||||
|
||||
# can you imaging how *much* faster sed is?
|
||||
# it's however less reliable (installation, ini config, etc.)
|
||||
|
||||
for i in `seq 1 $COUNT`; do
|
||||
if [ "`kreadconfig --file kwinrulesrc --group $i --key ignoregeometryrule`" = "2" ]; then
|
||||
kwriteconfig --file kwinrulesrc --group $i --key ignoregeometryrule "3"
|
||||
fi
|
||||
done
|
2
data/kwin_translate_confrequest_rule.upd
Normal file
2
data/kwin_translate_confrequest_rule.upd
Normal file
|
@ -0,0 +1,2 @@
|
|||
Id=Kwin-4.11
|
||||
Script=kwin_translate_confrequest_rule.sh
|
Loading…
Reference in a new issue