Compare commits
2 Commits
main
...
fa680ff2e4
| Author | SHA1 | Date | |
|---|---|---|---|
| fa680ff2e4 | |||
| 72c20701b7 |
@@ -10,6 +10,7 @@ history_filter = [
|
|||||||
"^ls$",
|
"^ls$",
|
||||||
"^clear$",
|
"^clear$",
|
||||||
"^vim$",
|
"^vim$",
|
||||||
|
"^youtube-dl"
|
||||||
]
|
]
|
||||||
|
|
||||||
[search]
|
[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
|
# 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.
|
# 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
|
### Input configuration
|
||||||
# You can get the names of your inputs by running: swaymsg -t get_inputs
|
# 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.
|
# Read `man 5 sway-input` for more information about this section.
|
||||||
@@ -242,7 +248,6 @@ client.background $base
|
|||||||
#
|
#
|
||||||
|
|
||||||
exec copyq
|
exec copyq
|
||||||
exec workrave
|
|
||||||
|
|
||||||
# Include configs from 3 locations:
|
# Include configs from 3 locations:
|
||||||
# - /usr/share/sway/config.d
|
# - /usr/share/sway/config.d
|
||||||
|
|||||||
@@ -15,6 +15,7 @@
|
|||||||
"sway/window"
|
"sway/window"
|
||||||
],
|
],
|
||||||
"modules-right": [
|
"modules-right": [
|
||||||
|
"custom/break-timer",
|
||||||
"idle_inhibitor",
|
"idle_inhibitor",
|
||||||
"pulseaudio",
|
"pulseaudio",
|
||||||
"network",
|
"network",
|
||||||
@@ -87,6 +88,19 @@
|
|||||||
"tooltip-format": "MPD (connected)",
|
"tooltip-format": "MPD (connected)",
|
||||||
"tooltip-format-disconnected": "MPD (disconnected)"
|
"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": {
|
"idle_inhibitor": {
|
||||||
"format": "{icon}",
|
"format": "{icon}",
|
||||||
"format-icons": {
|
"format-icons": {
|
||||||
|
|||||||
@@ -164,6 +164,31 @@ label:focus {
|
|||||||
background-color: @crust;
|
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 {
|
#pulseaudio.muted {
|
||||||
background-color: @crust;
|
background-color: @crust;
|
||||||
color: @subtext1;
|
color: @subtext1;
|
||||||
|
|||||||
Reference in New Issue
Block a user