visibleWorkspaces shortcut + weather now handles non-responses

This commit is contained in:
2025-07-31 09:26:07 +02:00
parent b1b399fe30
commit 889f06070a
7 changed files with 46 additions and 13 deletions

View File

@@ -1,8 +1,8 @@
Xft.hinting: true
rofi.dpi: 110
dpi: 110
Xcursor.size: 25
rofi.dpi: 160
dpi: 150
Xcursor.size: 50
Xft.hintstyle: hintslight
Xft.rgba: rgba
Xft.antialias: true
Xft.dpi: 110
Xft.dpi: 160

View File

@@ -150,7 +150,7 @@ click-left = firefox https://speedtest.net
[module/weather]
type = custom/script
interval = 900
exec = "curl -s wttr.in/oss?format=1"
exec = "curl -s wttr.in/oss?format=1 | grep -v 'Unknown location' || echo ''"
format = "<label>"
format-prefix-foreground = ${colors.accent}

View File

@@ -3,7 +3,7 @@
<channel name="thunar" version="1.0">
<property name="last-view" type="string" value="ThunarIconView"/>
<property name="last-icon-view-zoom-level" type="string" value="THUNAR_ZOOM_LEVEL_100_PERCENT"/>
<property name="last-window-width" type="int" value="839"/>
<property name="last-window-width" type="int" value="1415"/>
<property name="last-window-height" type="int" value="1846"/>
<property name="last-window-maximized" type="bool" value="false"/>
<property name="last-separator-position" type="int" value="376"/>
@@ -19,11 +19,14 @@
<property name="last-show-hidden" type="bool" value="false"/>
<property name="misc-parallel-copy-mode" type="string" value="THUNAR_PARALLEL_COPY_MODE_ALWAYS"/>
<property name="last-splitview-separator-position" type="int" value="589"/>
<property name="last-side-pane" type="string" value="ThunarTreePane"/>
<property name="last-side-pane" type="string" value="THUNAR_SIDEPANE_TYPE_TREE"/>
<property name="last-location-bar" type="string" value="ThunarLocationButtons"/>
<property name="last-details-view-zoom-level" type="string" value="THUNAR_ZOOM_LEVEL_38_PERCENT"/>
<property name="last-details-view-column-widths" type="string" value="50,50,140,50,50,50,50,50,1316,50,50,78,50,152"/>
<property name="last-details-view-column-widths" type="string" value="50,50,177,50,50,50,50,50,634,50,50,104,50,173"/>
<property name="last-sort-column" type="string" value="THUNAR_COLUMN_TYPE"/>
<property name="last-sort-order" type="string" value="GTK_SORT_ASCENDING"/>
<property name="misc-directory-specific-settings" type="bool" value="true"/>
<property name="last-renamer-dialog-width" type="int" value="942"/>
<property name="last-renamer-dialog-height" type="int" value="520"/>
<property name="last-renamer-dialog-maximized" type="bool" value="false"/>
</channel>

View File

@@ -1,8 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<?xml version="1.1" encoding="UTF-8"?>
<channel name="xfce4-terminal" version="1.0">
<property name="background-darkness" type="double" value="0.90000000000000002"/>
<property name="color-background" type="string" value="#1e1e1e1e1e1e"/>
<property name="color-background" type="string" value="#ffffff"/>
<property name="font-name" type="string" value="Ubuntu Mono 14"/>
<property name="misc-always-show-tabs" type="bool" value="false"/>
<property name="misc-bell" type="bool" value="false"/>
@@ -36,6 +36,19 @@
<property name="scrolling-unlimited" type="bool" value="true"/>
<property name="title-initial" type="string" value=""/>
<property name="background-mode" type="string" value="TERMINAL_BACKGROUND_TRANSPARENT"/>
<property name="color-use-theme" type="bool" value="false"/>
<property name="color-use-theme" type="bool" value="true"/>
<property name="font-use-system" type="bool" value="false"/>
<property name="color-background-vary" type="bool" value="false"/>
<property name="color-foreground" type="string" value="#000000"/>
<property name="color-cursor-foreground" type="string" value=""/>
<property name="color-cursor" type="string" value=""/>
<property name="color-cursor-use-default" type="bool" value="true"/>
<property name="color-selection" type="string" value=""/>
<property name="color-selection-background" type="string" value=""/>
<property name="color-selection-use-default" type="bool" value="true"/>
<property name="color-bold" type="string" value=""/>
<property name="color-bold-use-default" type="bool" value="true"/>
<property name="color-palette" type="string" value="#000000;#cd0000;#00cd00;#cdcd00;#0000cd;#cd00cd;#00cdcd;#e5e5e5;#7f7f7f;#ff0000;#00ff00;#ffff00;#5c5cff;#ff00ff;#00ffff;#ffffff"/>
<property name="color-bold-is-bright" type="bool" value="true"/>
<property name="tab-activity-color" type="string" value="#aa0000"/>
</channel>

View File

@@ -51,7 +51,7 @@ pyenv
dotnet-host
dotnet-runtime
dotnet-sdk
aspnet-runtime
#
# Codecs
@@ -78,7 +78,6 @@ xvidcore
#
alsa-utils
arandr
aspnet-runtime
autorandr
bash-completion
bat

View File

@@ -120,6 +120,9 @@ bindsym $mod+l exec /bin/bash ~/.config/i3/scripts/lock.sh
# Suspend the computer
bindsym $mod+shift+l exec /bin/bash ~/.config/i3/scripts/suspend.sh
# Workspace info popup
bindsym $mod+shift+Tab exec /bin/bash ~/dotfiles/i3/scripts/visibleWorkspaces.sh
############################################
# Application Keys #
############################################

View File

@@ -0,0 +1,15 @@
#!/bin/bash
# Get workspace information from i3
workspaces_json=$(i3-msg -t get_workspaces)
# Extract active workspaces for each output
notification_text=$(echo "$workspaces_json" | jq -r '.[] | select(.focused == true or .visible == true) | "\(.name) on \(.output | gsub("DisplayPort"; "DP"))"' | sort)
# Show notification with better styling
notify-send -u critical \
-i workspace \
-a "i3-workspace-info" \
-t 10000 \
-e \
"Visible workspaces:" "$notification_text"