Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions bashrc
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ alias cp="cp -i" # confirm before overwriting something
alias df='df -h' # human-readable sizes
alias clangd="clangd-19" # I always use clangd-19
alias gti="git" # I misspell git a lot!
alias ls="eza --icons --group-directories-first"

xhost +local:root > /dev/null 2>&1

Expand Down
5 changes: 5 additions & 0 deletions config/fish/config.fish
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,15 @@ set -g theme_powerline_fonts no
set -g theme_nerd_fonts yes
set -g theme_color_scheme dracula

if status is-interactive
fastfetch
end

if test -f ~/.config/fish/user.fish
source ~/.config/fish/user.fish
end

alias fd="fdfind"
alias cat="batcat"
alias ls="eza --icons --group-directories-first"
fish_add_path "$HOME/.local/bin"
4 changes: 2 additions & 2 deletions config/miracle-wm/matts-config/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,13 @@ impl Plugin for MyPlugin {
action: miracle_plugin::BindingAction::Down,
key: Key("d".to_string()),
modifiers: vec![Modifier::Primary],
command: "wofi --show=drun".to_string(),
command: "wofi --show=drun --allow-images".to_string(),
});
custom_actions.push(CustomKeyAction {
action: miracle_plugin::BindingAction::Down,
key: Key("S".to_string()),
modifiers: vec![Modifier::Primary],
command: "grimshot copy area".to_string(),
command: "~/.local/bin/screenshot.sh".to_string(),
});
custom_actions.push(CustomKeyAction {
action: miracle_plugin::BindingAction::Down,
Expand Down
10 changes: 9 additions & 1 deletion config/waybar/config
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
"modules-left": [
"sway/mode",
"sway/workspaces",
"sway/window"
"sway/window",
"custom/media"
],

"modules-right": [
Expand All @@ -25,6 +26,13 @@

// Modules

"custom/media": {
"format": "{}",
"exec": "~/.config/waybar/scripts/media.sh",
"interval": 3,
"on-click": "playerctl play-pause",
},

"custom/weather": {
"format": "{} ",
"exec": "~/.config/waybar/scripts/weather.sh",
Expand Down
19 changes: 19 additions & 0 deletions config/waybar/scripts/media.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#!/bin/bash
status=$(playerctl status 2>/dev/null)
if [[ "$status" == "Playing" || "$status" == "Paused" ]]; then
artist=$(playerctl metadata artist 2>/dev/null)
title=$(playerctl metadata title 2>/dev/null)
if [[ -n "$artist" && -n "$title" ]]; then
text="$artist - $title"
else
text="$title"
fi
if (( ${#text} > 40 )); then
text="${text:0:37}..."
fi
if [[ "$status" == "Paused" ]]; then
echo "⏸ $text"
else
echo "▶ $text"
fi
fi
6 changes: 6 additions & 0 deletions config/waybar/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,12 @@
border-radius: 0pt 2pt 2pt 0pt;
}

#custom-media {
color: @purple;
padding-left: 8pt;
padding-right: 8pt;
}

#clock.date {
background: rgba(0, 0, 0, 0);
color: @white;
Expand Down
2 changes: 2 additions & 0 deletions config/wofi/config
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
allow_images=true
image_size=24
2 changes: 1 addition & 1 deletion install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ info "Installing miracle-wm..."
sudo apt install miracle-wm -y

info "Installing applications dependencies from archive..."
sudo apt -y install atfs wofi swaylock bat fd-find kitty network-manager-gnome fish wlogout papirus-icon-theme pamixer brightnessctl sway-notification-center grimshot waybar wl-clipboard bibata-cursor-theme slurp pavucontrol nautilus
sudo apt -y install atfs wofi swaylock bat fd-find kitty network-manager-gnome fish wlogout papirus-icon-theme pamixer brightnessctl sway-notification-center grimshot waybar wl-clipboard bibata-cursor-theme slurp pavucontrol nautilus eza playerctl fastfetch
command -v snap &>/dev/null && sudo snap install bibata-all-cursor

. $PWD/scripts/fish.sh
Expand Down
6 changes: 6 additions & 0 deletions local/bin/screenshot.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/bin/bash
mkdir -p ~/Pictures/Screenshots
FILE=~/Pictures/Screenshots/$(date +%Y-%m-%d_%H-%M-%S).png
grimshot save area "$FILE"
wl-copy < "$FILE"
notify-send "Screenshot saved" "$FILE" --icon=camera
Loading