mirror of
https://github.com/m-housh/dotfiles.git
synced 2026-02-14 06:12:34 +00:00
feat: Adds weather desktop file, I may need to fix how it gets copied in the dev-env script.
This commit is contained in:
38
env/.config/hypr/keybinds.conf
vendored
38
env/.config/hypr/keybinds.conf
vendored
@@ -52,14 +52,14 @@ bindd = $mainMod, J, Focus window - down, movefocus, d
|
||||
bindd = $mainMod, K, Focus window - up, movefocus, u # move window focus using vim keys
|
||||
bindd = $mainMod, L, Focus window - right, movefocus, r # move window focus using vim keys
|
||||
bindd = $mainMod SHIFT, L, Workspace - forward, workspace, +1
|
||||
bindd = $HYPER, L, [L]ock computer, exec, hyprlock
|
||||
bindd = $mainMod, M, [M]usic - apple, exec, $pwa --focus "https://music.apple.com"
|
||||
bindd = $HYPER, L, [L]ock computer, exec, hyprlock
|
||||
bindd = $mainMod, M, [M]usic - apple, exec, $pwa --special music "https://music.apple.com"
|
||||
bindd = $mainMod SHIFT, M, [M]enu bar - toggle visible, exec, $scripts/toggle-waybar
|
||||
bindd = $mainMod, P, [P]assword manager, exec, $pwa --special pass "https://pass.proton.me"
|
||||
bindd = $mainMod SHIFT, P, Toggle [p]seudo window mode, pseudo, # dwindle
|
||||
bindd = $mainMod SHIFT, R, [R]estart menu bar, exec, $scripts/waybar-restart
|
||||
bindd = $mainMod, S, Toggle [s]pecial workspace, togglespecialworkspace, magic # use $windowMod S to send window to the special workspace
|
||||
bindd = $mainMod, Y, [Y]ouTube, exec, $pwa "https://youtube.com"
|
||||
bindd = $mainMod, Y, [Y]ouTube, exec, $pwa --focus "https://youtube.com"
|
||||
bindd = $mainMod, U, [U]nifi, exec, $pwa "https://unifi.ui.com"
|
||||
bindd = $mainMod SHIFT, U, [U]ninstall desktop app, exec, $uninstallDesktop
|
||||
bindd = $mainMod, V, Clipboard history, exec, $clipboardHistory
|
||||
@@ -81,30 +81,30 @@ bindd = $mainMod, 0, Switch to workspace 1[0], workspace, 10
|
||||
bindd = $mainMod SHIFT, 1, Switch all workspaces to monitor [1], exec, $scripts/mv-all-workspaces-to-monitor 1
|
||||
bindd = $mainMod SHIFT, 0, Switch all workspaces to monitor [0], exec, $scripts/mv-all-workspaces-to-monitor 0
|
||||
|
||||
####################################################
|
||||
#######################################################################################
|
||||
# Window controls
|
||||
#
|
||||
# These should in general use the $windowMod prefix
|
||||
######################################################
|
||||
# MOD # KEY # DESC # Action #
|
||||
######################################################
|
||||
bindd = CTRL SHIFT, F, Toggle [f]loating, exec, $scripts/window-toggle-floating
|
||||
#######################################################################################
|
||||
# MOD # KEY # DESC # Action #
|
||||
#######################################################################################
|
||||
bindd = CTRL SHIFT, F, Toggle [f]loating, exec, $scripts/window-toggle-floating
|
||||
# TODO: Decide which is prefered to switch to fullscreen.
|
||||
bindd = CTRL, F, Toggle [f]ullscreen, fullscreen,
|
||||
bindd = $windowMod, F, Toggle [f]ullscreen, fullscreen,
|
||||
bindd = $windowMod, H, Move window - left, movewindow, l # move windows with windowMod + vim keys
|
||||
bindd = $windowMod, J, Move window - down, movewindow, d # move windows with windowMod + vim keys
|
||||
bindd = $windowMod, K, Move window - up, movewindow, u # move windows with windowMod + vim keys
|
||||
bindd = $windowMod, L, Move window - right , movewindow, r # move windows with windowMod + vim keys
|
||||
bindd = $HYPER, J, Toggle split orientation, togglesplit # dwindle
|
||||
bindd = $windowMod, S, Move window to [s]pecial workspace, movetoworkspacesilent, special:magic
|
||||
|
||||
bindd = CTRL, F, Toggle [f]ullscreen, fullscreen,
|
||||
bindd = $windowMod, F, Toggle [f]ullscreen, fullscreen,
|
||||
bindd = $windowMod, H, Move window - left, movewindow, l # move windows with windowMod + vim keys
|
||||
bindd = $windowMod, J, Move window - down, movewindow, d # move windows with windowMod + vim keys
|
||||
bindd = $HYPER, J, Toggle split orientation, togglesplit # dwindle
|
||||
bindd = $windowMod, K, Move window - up, movewindow, u # move windows with windowMod + vim keys
|
||||
bindd = $windowMod, L, Move window - right , movewindow, r # move windows with windowMod + vim keys
|
||||
bindd = $windowMod, M, Move window to [m]usic workspace, movetoworkspace, special:music
|
||||
bindd = $windowMod, S, Move window to [s]pecial workspace, movetoworkspacesilent, special:magic
|
||||
# FIX: Changes size of window, this works a different depending on if
|
||||
# the window is on the right or left of the screen.
|
||||
#
|
||||
# Resize horizontally
|
||||
bindd = $windowMod, EQUAL, Increase window size - horizontal, resizeactive, 20 0
|
||||
bindd = $windowMod, MINUS, Decrease window size - horizontal, resizeactive, -20 0
|
||||
bindd = $windowMod, EQUAL, Increase window size - horizontal, resizeactive, 20 0
|
||||
bindd = $windowMod, MINUS, Decrease window size - horizontal, resizeactive, -20 0
|
||||
# Resize vertically
|
||||
bindd = $windowMod SHIFT, EQUAL, Increase window size - vertical, resizeactive, 0 20
|
||||
bindd = $windowMod SHIFT, MINUS, Decrease window size - vertical, resizeactive, 0 -20
|
||||
|
||||
14
env/.local/scripts/get-weather
vendored
Executable file
14
env/.local/scripts/get-weather
vendored
Executable file
@@ -0,0 +1,14 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
# Get the weather for the given location.
|
||||
|
||||
location=${1:-Cincinnati}
|
||||
shouldContinue="1"
|
||||
|
||||
while [[ $shouldContinue == "1" ]]; do
|
||||
echo -e "\e[H\e[2J" # clears the screen.
|
||||
curl "wttr.in/$1"
|
||||
shouldContinue=$(gum confirm "Quit / Refresh" --affirmative Quit --negative Refresh && echo "0" || echo "1")
|
||||
done
|
||||
|
||||
echo -e "\e[H\e[2J" # clears the screen.
|
||||
|
Before Width: | Height: | Size: 13 KiB After Width: | Height: | Size: 13 KiB |
|
Before Width: | Height: | Size: 22 KiB After Width: | Height: | Size: 22 KiB |
BIN
env/.local/share/applications/icons/weather.png
vendored
Normal file
BIN
env/.local/share/applications/icons/weather.png
vendored
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 250 KiB |
9
env/.local/share/applications/weather.desktop
vendored
Normal file
9
env/.local/share/applications/weather.desktop
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
[Desktop Entry]
|
||||
Version=1.0
|
||||
Name=Weather
|
||||
Comment=Get weather
|
||||
Exec=ghostty --class=com.ghostty.weather -e /home/michael/.local/scripts/get-weather
|
||||
Icon=/home/michael/.local/share/applications/icons/weather.png
|
||||
Terminal=false
|
||||
Type=Application
|
||||
StartupNotify=true
|
||||
Reference in New Issue
Block a user