Compare commits
2 Commits
main
...
fa680ff2e4
| Author | SHA1 | Date | |
|---|---|---|---|
| fa680ff2e4 | |||
| 72c20701b7 |
@@ -10,6 +10,7 @@ history_filter = [
|
||||
"^ls$",
|
||||
"^clear$",
|
||||
"^vim$",
|
||||
"^youtube-dl"
|
||||
]
|
||||
|
||||
[search]
|
||||
|
||||
@@ -48,6 +48,12 @@ output * bg /usr/share/backgrounds/default.jxl fill
|
||||
# your displays after another 300 seconds, and turn your screens back on when
|
||||
# resumed. It will also lock your screen before your computer goes to sleep.
|
||||
|
||||
exec swayidle -w \
|
||||
timeout 5 '/home/tgrosinger/code/wlr-break-timer/break-event idle_start' \
|
||||
resume '/home/tgrosinger/code/wlr-break-timer/break-event idle_end' \
|
||||
before-sleep '/home/tgrosinger/code/wlr-break-timer/break-event idle_start' \
|
||||
after-resume '/home/tgrosinger/code/wlr-break-timer/break-event idle_end'
|
||||
|
||||
### Input configuration
|
||||
# You can get the names of your inputs by running: swaymsg -t get_inputs
|
||||
# Read `man 5 sway-input` for more information about this section.
|
||||
@@ -242,7 +248,6 @@ client.background $base
|
||||
#
|
||||
|
||||
exec copyq
|
||||
exec workrave
|
||||
|
||||
# Include configs from 3 locations:
|
||||
# - /usr/share/sway/config.d
|
||||
|
||||
@@ -15,6 +15,7 @@
|
||||
"sway/window"
|
||||
],
|
||||
"modules-right": [
|
||||
"custom/break-timer",
|
||||
"idle_inhibitor",
|
||||
"pulseaudio",
|
||||
"network",
|
||||
@@ -87,6 +88,19 @@
|
||||
"tooltip-format": "MPD (connected)",
|
||||
"tooltip-format-disconnected": "MPD (disconnected)"
|
||||
},
|
||||
"custom/break-timer": {
|
||||
"exec": "break-status",
|
||||
"return-type": "json",
|
||||
"interval": 2,
|
||||
"format": "⌛ {}",
|
||||
"tooltip": true,
|
||||
"menu": "on-click",
|
||||
"menu-file": "/home/tgrosinger/code/wlr-break-timer/menu.xml",
|
||||
"menu-actions": {
|
||||
"skip-long": "break-event skip_long",
|
||||
"toggle-pause": "break-event toggle-pause",
|
||||
}
|
||||
},
|
||||
"idle_inhibitor": {
|
||||
"format": "{icon}",
|
||||
"format-icons": {
|
||||
|
||||
@@ -164,6 +164,31 @@ label:focus {
|
||||
background-color: @crust;
|
||||
}
|
||||
|
||||
#custom-break-timer {
|
||||
padding: 0 5px;
|
||||
}
|
||||
|
||||
#custom-break-timer.warning {
|
||||
background-color: @yellow;
|
||||
}
|
||||
|
||||
#custom-break-timer.break {
|
||||
background-color: @teal;
|
||||
}
|
||||
|
||||
#custom-break-timer.paused {
|
||||
background-color: @sky;
|
||||
}
|
||||
|
||||
#custom-break-timer.overdue {
|
||||
background-color: @red;
|
||||
animation-name: blink;
|
||||
animation-duration: 0.5s;
|
||||
animation-timing-function: steps(12);
|
||||
animation-iteration-count: infinite;
|
||||
animation-direction: alternate;
|
||||
}
|
||||
|
||||
#pulseaudio.muted {
|
||||
background-color: @crust;
|
||||
color: @subtext1;
|
||||
|
||||
Reference in New Issue
Block a user