Skip to content

Commit

Permalink
Add keyd config and remove uneeded shortcuts
Browse files Browse the repository at this point in the history
  • Loading branch information
Eeems committed Jan 14, 2024
1 parent 4fcae35 commit f5bb0af
Show file tree
Hide file tree
Showing 4 changed files with 40 additions and 10 deletions.
2 changes: 0 additions & 2 deletions applications/system-service/controller.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@ class Controller : public QObject{
Q_INVOKABLE void taskSwitcher(){ appsAPI->openTaskSwitcher(); }
Q_INVOKABLE void processManager(){ appsAPI->openTaskManager(); }
Q_INVOKABLE void back(){ appsAPI->previousApplication(); }
Q_INVOKABLE void suspend(){ systemAPI->suspend(); }
Q_INVOKABLE void powerOff(){ systemAPI->powerOff(); }
Q_INVOKABLE void lock(){ appsAPI->openLockScreen(); }
Q_INVOKABLE void terminal(){ appsAPI->openTerminal(); }
};
8 changes: 0 additions & 8 deletions applications/system-service/main.qml
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,6 @@ Window{
sequences: ["Meta+Backspace", "End+Backspace"]
onActivated: controller.back()
}
Shortcut{
sequences: [Qt.Key_Suspend, "Ctrl+Shift+Alt+S"]
onActivated: controller.suspend()
}
Shortcut{
sequences: [Qt.Key_PowerDown, "Ctrl+Shift+Alt+O"]
onActivated: controller.powerOff()
}
Shortcut{
sequences: [Qt.Key_LogOff, Qt.Key_ScreenSaver, "End+L", "Meta+L"]
onActivated: controller.lock()
Expand Down
4 changes: 4 additions & 0 deletions applications/system-service/system-service.pro
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,10 @@ service.files = ../../assets/etc/systemd/system/tarnish.service
service.path = /etc/systemd/system/
INSTALLS += service

keyd.files = ../../assets/opt/etc/keyd/oxide.conf
keyd.path = /opt/etc/keyd/
INSTALLS += keyd

applications.files = ../../assets/opt/usr/share/applications/xochitl.oxide
applications.path = /opt/usr/share/applications/
INSTALLS += applications
Expand Down
36 changes: 36 additions & 0 deletions assets/opt/etc/keyd/oxide.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
[ids]
2edd:0001 # type folio

[main]
end = layer(meta)
= = -
\ = ~

[shift:S]
= = _
\ = `

[meta:G]
1 = esc
= = =
\ = \
0 = +
, = [
. = ]
right = end
left = home
up = pageup
down = pagedown
backspace = macro(end+backspace)
l = macro(end+l)

[shift+meta]
\ = |
, = {
. = }
s = print

[ctrl:C]

[ctrl+shift]
1 = computer

0 comments on commit f5bb0af

Please sign in to comment.