-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathButtons.qml
More file actions
76 lines (72 loc) · 2.19 KB
/
Buttons.qml
File metadata and controls
76 lines (72 loc) · 2.19 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
import QtQuick 2.0
ListModel {
ListElement {
elements: [
ListElement {
type: "slider"
title: "Volume"
action: "amixer -c0 set Master %1"
max: 87
min: 0
},
ListElement {
type: "slider"
title: "Brightness"
action: "xbacklight -set %1"
min: 1
max: 100
//integerOnly: true
}
]
}
ListElement {
elements: [
ListElement {
type: "toggle"
title: "Touch on/off"
toggleOff: "xsetwacom --set 'Wacom ISDv4 E6 Finger touch' Touch off"
toggleOn: "xsetwacom --set 'Wacom ISDv4 E6 Finger touch' Touch on"
},
ListElement {
type: "toggle"
title: "TouchPad on/off"
toggleOff: "synclient TouchpadOff=1"
toggleOn: "synclient TouchpadOff=0"
},
ListElement {
type: "toggle"
title: "Gestures on/off"
toggleOff: "xsetwacom --set 'Wacom ISDv4 E6 Finger touch' Gesture off"
toggleOn: "xsetwacom --set 'Wacom ISDv4 E6 Finger touch' Gesture on"
}
]
}
ListElement {
elements: [
ListElement {title: "Rotate normal"; action: "xrotate normal" }
,ListElement {title: "Rotate inverted"; action: "xrotate inverted"}
,ListElement {title: "Rotate left"; action: "xrotate left"}
,ListElement {title: "Rotate right"; action: "xrotate right"}
]
}
ListElement {
elements: [
ListElement {
title: "XKill"
action: "xkill"
hideAfter: true
},
ListElement {
title: "Scrot"
action: "scrot -s -e 'mv $f ~/'"
hideAfter: true
},
ListElement {
type: "confirm"
title: "Sleep"
action: "systemctl suspend"
hideAfter: true
}
]
}
}