Compare commits
2
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
4207f91f5a | ||
|
|
8f7f7b0c36 |
@@ -1,139 +0,0 @@
|
||||
[env]
|
||||
TERM = "xterm-256color"
|
||||
WINIT_X11_SCALE_FACTOR = "1"
|
||||
|
||||
[window]
|
||||
dynamic_padding = true
|
||||
decorations = "full"
|
||||
title = "Alacritty"
|
||||
opacity = 0.3
|
||||
decorations_theme_variant = "Dark"
|
||||
|
||||
[window.dimensions]
|
||||
columns = 100
|
||||
lines = 30
|
||||
|
||||
[window.class]
|
||||
instance = "Alacritty"
|
||||
general = "Alacritty"
|
||||
|
||||
[scrolling]
|
||||
history = 10000
|
||||
multiplier = 4
|
||||
|
||||
[font]
|
||||
size = 11
|
||||
|
||||
[font.normal]
|
||||
family = "monospace"
|
||||
style = "Regular"
|
||||
|
||||
[font.bold]
|
||||
family = "monospace"
|
||||
style = "Bold"
|
||||
|
||||
[font.italic]
|
||||
family = "monospace"
|
||||
style = "Italic"
|
||||
|
||||
[font.bold_italic]
|
||||
family = "monospace"
|
||||
style = "Bold Italic"
|
||||
|
||||
[selection]
|
||||
semantic_escape_chars = ",│`|:\"' ()[]{}<>\t"
|
||||
save_to_clipboard = true
|
||||
|
||||
[cursor]
|
||||
style = "Underline"
|
||||
vi_mode_style = "None"
|
||||
unfocused_hollow = true
|
||||
thickness = 0.15
|
||||
|
||||
[mouse]
|
||||
hide_when_typing = true
|
||||
|
||||
[[mouse.bindings]]
|
||||
mouse = "Middle"
|
||||
action = "PasteSelection"
|
||||
|
||||
[keyboard]
|
||||
[[keyboard.bindings]]
|
||||
key = "Paste"
|
||||
action = "Paste"
|
||||
|
||||
[[keyboard.bindings]]
|
||||
key = "Copy"
|
||||
action = "Copy"
|
||||
|
||||
[[keyboard.bindings]]
|
||||
key = "L"
|
||||
mods = "Control"
|
||||
action = "ClearLogNotice"
|
||||
|
||||
[[keyboard.bindings]]
|
||||
key = "L"
|
||||
mods = "Control"
|
||||
mode = "~Vi"
|
||||
chars = "\f"
|
||||
|
||||
[[keyboard.bindings]]
|
||||
key = "PageUp"
|
||||
mods = "Shift"
|
||||
mode = "~Alt"
|
||||
action = "ScrollPageUp"
|
||||
|
||||
[[keyboard.bindings]]
|
||||
key = "PageDown"
|
||||
mods = "Shift"
|
||||
mode = "~Alt"
|
||||
action = "ScrollPageDown"
|
||||
|
||||
[[keyboard.bindings]]
|
||||
key = "Home"
|
||||
mods = "Shift"
|
||||
mode = "~Alt"
|
||||
action = "ScrollToTop"
|
||||
|
||||
[[keyboard.bindings]]
|
||||
key = "End"
|
||||
mods = "Shift"
|
||||
mode = "~Alt"
|
||||
action = "ScrollToBottom"
|
||||
|
||||
[[keyboard.bindings]]
|
||||
key = "V"
|
||||
mods = "Control|Shift"
|
||||
action = "Paste"
|
||||
|
||||
[[keyboard.bindings]]
|
||||
key = "C"
|
||||
mods = "Control|Shift"
|
||||
action = "Copy"
|
||||
|
||||
[[keyboard.bindings]]
|
||||
key = "F"
|
||||
mods = "Control|Shift"
|
||||
action = "SearchForward"
|
||||
|
||||
[[keyboard.bindings]]
|
||||
key = "B"
|
||||
mods = "Control|Shift"
|
||||
action = "SearchBackward"
|
||||
|
||||
[[keyboard.bindings]]
|
||||
key = "C"
|
||||
mods = "Control|Shift"
|
||||
mode = "Vi"
|
||||
action = "ClearSelection"
|
||||
|
||||
[[keyboard.bindings]]
|
||||
key = "Key0"
|
||||
mods = "Control"
|
||||
action = "ResetFontSize"
|
||||
|
||||
[general]
|
||||
live_config_reload = true
|
||||
working_directory = "None"
|
||||
import = ["colors.toml"]
|
||||
|
||||
@@ -1,32 +0,0 @@
|
||||
[colors.bright]
|
||||
black = "#8E969B"
|
||||
red = "#58120D"
|
||||
green = "#744E72"
|
||||
yellow = "#517185"
|
||||
blue = "#DD2A4A"
|
||||
magenta = "#DEACB3"
|
||||
cyan = "#A9BFCE"
|
||||
white = "#CCD7DE"
|
||||
|
||||
[colors.cursor]
|
||||
cursor = "#8e8e8e"
|
||||
text = "#080808"
|
||||
|
||||
[colors.normal]
|
||||
black = "#424345"
|
||||
red = "#58120D"
|
||||
green = "#744E72"
|
||||
yellow = "#517185"
|
||||
blue = "#DD2A4A"
|
||||
magenta = "#DEACB3"
|
||||
cyan = "#A9BFCE"
|
||||
white = "#CCD7DE"
|
||||
|
||||
[colors.primary]
|
||||
background = "#1B1D1E"
|
||||
bright_foreground = "#eeeeee"
|
||||
foreground = "#E1E9EE"
|
||||
|
||||
[colors.selection]
|
||||
background = "#b2ceee"
|
||||
text = "#080808"
|
||||
@@ -0,0 +1,62 @@
|
||||
// PowerMenuPopup.qml - the popup that appears when you click the power button
|
||||
import QtQuick
|
||||
import QtQuick.Layouts
|
||||
import Quickshell.Io
|
||||
import ".."
|
||||
|
||||
Popup {
|
||||
popupName: "powerMenu"
|
||||
|
||||
ColumnLayout {
|
||||
spacing: 2
|
||||
|
||||
Repeater {
|
||||
model: [
|
||||
{ icon: "", label: "Suspend", cmd: ["systemctl", "suspend"]},
|
||||
{ icon: "", label: "Hibernate", cmd: ["systemctl", "hibernate"]},
|
||||
{ icon: "", label: "Logout", cmd: ["hyprctl", "dispatch", "hl.dsp.exec_cmd('hyprshutdown -t \"Logging out...\"')"]},
|
||||
{ icon: "", label: "Reboot", cmd: ["hyprctl", "dispatch", "hl.dsp.exec_cmd('hyprshutdown -t \"Restarting...\" --post-cmd \"systemctl reboot\"')"]},
|
||||
{ icon: "", label: "Shutdown", cmd: ["hyprctl", "dispatch", "hl.dsp.exec_cmd('hyprshutdown -t \"Shutting down...\" --post-cmd \"systemctl poweroff\"')"]},
|
||||
]
|
||||
|
||||
delegate: Rectangle {
|
||||
required property var modelData
|
||||
readonly property var cmd: modelData.cmd
|
||||
|
||||
Layout.fillWidth: true
|
||||
implicitWidth: row.implicitWidth + 24
|
||||
height: 28
|
||||
radius: Theme.radius
|
||||
color: itemHover.containsMouse ? Theme.pillHover : "transparent"
|
||||
Behavior on color { ColorAnimation { duration: 150 } }
|
||||
|
||||
RowLayout {
|
||||
id: row
|
||||
anchors { left: parent.left; verticalCenter: parent.verticalCenter; leftMargin: 10 }
|
||||
spacing: 8
|
||||
|
||||
Text {
|
||||
text: modelData.icon
|
||||
font { family: Theme.fontMono; pixelSize: Theme.fontSize }
|
||||
color: Theme.pillText
|
||||
}
|
||||
Text {
|
||||
text: modelData.label
|
||||
font { family: Theme.fontSans; pixelSize: Theme.fontSize }
|
||||
color: Theme.pillText
|
||||
}
|
||||
}
|
||||
|
||||
MouseArea {
|
||||
id: itemHover
|
||||
anchors.fill: parent
|
||||
hoverEnabled: true
|
||||
onClicked: {
|
||||
GlobalStates.popups.close()
|
||||
Exec.run(modelData.cmd)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user