summaryrefslogtreecommitdiff
path: root/bspwm
diff options
context:
space:
mode:
Diffstat (limited to 'bspwm')
-rwxr-xr-xbspwm/.config/bspwm/scripts/.fullscreen.bak47
-rwxr-xr-xbspwm/.config/bspwm/scripts/.screenshot.bak13
-rwxr-xr-xbspwm/.config/bspwm/scripts/.snip.bak13
-rwxr-xr-xbspwm/.config/bspwm/scripts/.truefull26
4 files changed, 0 insertions, 99 deletions
diff --git a/bspwm/.config/bspwm/scripts/.fullscreen.bak b/bspwm/.config/bspwm/scripts/.fullscreen.bak
deleted file mode 100755
index a3062dd..0000000
--- a/bspwm/.config/bspwm/scripts/.fullscreen.bak
+++ /dev/null
@@ -1,47 +0,0 @@
-#!/bin/bash
-# Toggle fullscreen mode: hide all other nodes and fullscreen current node
-
-STATE_FILE="/tmp/bspwm_fullscreen_state"
-
-# Check if we're already in fullscreen mode
-if [ -f "$STATE_FILE" ]; then
- # Restore mode: unhide all nodes and exit fullscreen
- while IFS= read -r node_id; do
- # First line is the fullscreen node, rest are hidden nodes
- if [ -z "$fullscreen_node" ]; then
- fullscreen_node="$node_id"
- # Exit fullscreen on the current fullscreen node
- bspc node "$fullscreen_node" -t tiled 2>/dev/null
- else
- # Unhide the hidden nodes
- bspc node "$node_id" -g hidden=off 2>/dev/null
- fi
- done < "$STATE_FILE"
-
- # Remove state file
- rm "$STATE_FILE"
-else
- # Enter fullscreen mode: hide all other nodes
- focused_node=$(bspc query -N -n focused)
-
- if [ -z "$focused_node" ]; then
- echo "No focused node found"
- exit 1
- fi
-
- # Store the focused node ID first
- echo "$focused_node" > "$STATE_FILE"
-
- # Get all visible windows on current desktop except the focused one
- bspc query -N -d focused -n .window | while read -r node_id; do
- if [ "$node_id" != "$focused_node" ]; then
- # Hide the node
- bspc node "$node_id" -g hidden=on
- # Store the hidden node ID
- echo "$node_id" >> "$STATE_FILE"
- fi
- done
-
- # Make the focused node fullscreen
- bspc node "$focused_node" -t fullscreen
-fi
diff --git a/bspwm/.config/bspwm/scripts/.screenshot.bak b/bspwm/.config/bspwm/scripts/.screenshot.bak
deleted file mode 100755
index f15b6f1..0000000
--- a/bspwm/.config/bspwm/scripts/.screenshot.bak
+++ /dev/null
@@ -1,13 +0,0 @@
-#!/bin/bash
-
-# Ensure the folder exists
-mkdir -p ~/Pictures/Screenshots
-
-# Create timestamped filename
-FILE=~/Pictures/Screenshots/$(date '+%Y-%m-%d_%H-%M-%S').png
-
-# Take screenshot (full screen) using maim
-maim "$FILE" | xclip -selection clipboard -t image/png
-
-# Notify via dunst
-dunstify "Screenshot Taken!" -i "$FILE"
diff --git a/bspwm/.config/bspwm/scripts/.snip.bak b/bspwm/.config/bspwm/scripts/.snip.bak
deleted file mode 100755
index 02c8784..0000000
--- a/bspwm/.config/bspwm/scripts/.snip.bak
+++ /dev/null
@@ -1,13 +0,0 @@
-#!/bin/bash
-
-# Ensure folder exists
-mkdir -p ~/Pictures/Screenshots
-
-# Timestamped filename
-FILE=~/Pictures/Screenshots/$(date '+%Y-%m-%d_%H-%M-%S').png
-
-# Take screenshot (interactive selection)
-maim -s "$FILE" | xclip -selection clipboard -t image/png
-
-# Notify with dunst, explicitly setting icon as the screenshot
-dunstify -a "Screenshot Taken!" -i "$FILE"
diff --git a/bspwm/.config/bspwm/scripts/.truefull b/bspwm/.config/bspwm/scripts/.truefull
deleted file mode 100755
index 85ebeab..0000000
--- a/bspwm/.config/bspwm/scripts/.truefull
+++ /dev/null
@@ -1,26 +0,0 @@
-#!/usr/bin/env bash
-
-# Get the focused window
-FOCUSED=$(bspc query -N -n focused)
-if [ -z "$FOCUSED" ]; then
- exit 1
-fi
-
-# Check if the window is already on the temporary fullscreen desktop
-TEMP_DESKTOP="fullscreen-$$"
-CURRENT_DESKTOP=$(bspc query -D -d focused --names)
-
-# Toggle behavior
-if bspc query -D -d "$TEMP_DESKTOP" &>/dev/null; then
- # The temporary desktop exists → move back to original desktop
- ORIGINAL=$(bspc query -D -d | grep -v "$TEMP_DESKTOP" | head -n1)
- bspc node "$FOCUSED" -d "$ORIGINAL"
- bspc desktop "$ORIGINAL" -f
- bspc desktop "$TEMP_DESKTOP" --remove
-else
- # Create temporary desktop and move the window there
- bspc monitor -d "$TEMP_DESKTOP"
- bspc node "$FOCUSED" -d "$TEMP_DESKTOP"
- bspc desktop "$TEMP_DESKTOP" -f
- bspc node "$FOCUSED" -t fullscreen
-fi