From 1fe850adaf67cc55cd0d1e4c197ebbf9fead959a Mon Sep 17 00:00:00 2001 From: Yax Date: Mon, 22 Dec 2025 07:37:29 +0100 Subject: [PATCH] Remove cb / flatp --- private_dot_local/bin/executable_cb | 46 -------------------------- private_dot_local/bin/executable_flatp | 33 ------------------ 2 files changed, 79 deletions(-) delete mode 100644 private_dot_local/bin/executable_cb delete mode 100644 private_dot_local/bin/executable_flatp diff --git a/private_dot_local/bin/executable_cb b/private_dot_local/bin/executable_cb deleted file mode 100644 index 1eb491e..0000000 --- a/private_dot_local/bin/executable_cb +++ /dev/null @@ -1,46 +0,0 @@ -#!/usr/bin/env sh - -# Source: https://github.com/niedzielski/cb - -# If not sourced, set safety options. -case "$0" in */cb) set -eu ;; esac - -case "${OSTYPE:-}$(uname)" in - [lL]inux*) ;; - [dD]arwin*) mac_os=1 ;; - [cC]ygwin) win_os=1 ;; - *) echo "Unknown operating system \"${OSTYPE:-}$(uname)\"." >&2; false ;; -esac - -#is_wayland() { [ "$XDG_SESSION_TYPE" = 'wayland' ]; } -is_wayland() { [ 1 -eq 0 ]; } -is_mac() { [ ${mac_os-0} -ne 0 ]; } -is_win() { [ ${win_os-0} -ne 0 ]; } - -if is_mac; then - alias cbcopy=pbcopy - alias cbpaste=pbpaste -elif is_win; then - alias cbcopy=putclip - alias cbpaste=getclip -else - if is_wayland; then - alias cbcopy=wl-copy - alias cbpaste=wl-paste - else - alias cbcopy='xclip -sel c' - alias cbpaste='xclip -sel c -o' - fi -fi - -cb() { - if [ ! -t 0 ] && [ $# -eq 0 ]; then - # No stdin and no call for --help, blow away the current clipboard and copy. - cbcopy - else - cbpaste "$@" - fi -} - -# If not sourced, execute. -case "$0" in */cb) cb "$@" ;; esac diff --git a/private_dot_local/bin/executable_flatp b/private_dot_local/bin/executable_flatp deleted file mode 100644 index e87554d..0000000 --- a/private_dot_local/bin/executable_flatp +++ /dev/null @@ -1,33 +0,0 @@ -#!/bin/bash - -_set_fzf_default_opts() { - local color00='#263238' - local color01='#2C393F' - local color04='#C9CCD3' - local color06='#D5DBE5' - local color0A='#FFCC00' - local color0C='#80CBC4' - local color0D='#89DDFF' - - INFO_HEADER=" Exit, Preview up, Preview down" - - export FZF_DEFAULT_OPTS=" - --color=bg+:$color01,bg:$color00,spinner:$color0C,hl:$color0D - --color=fg:$color04,header:$color0D,info:$color0A,pointer:$color0C - --color=marker:$color0C,fg+:$color06,prompt:$color0A,hl+:$color0D - --cycle --border --layout=reverse-list --preview-window=right:wrap --bind pgdn:preview-down --bind pgup:preview-up --header \"$INFO_HEADER\"" -} - -_set_fzf_default_opts - -APP=$(flatpak list --columns=application --app | sort | uniq | fzf --prompt='Launch >') || exit 0 - -#printf "/usr/bin/flatpak run --branch=stable --arch=x86_64 --file-forwarding $APP" -#/usr/bin/flatpak run --branch=stable --arch=x86_64 --file-forwarding "$APP" - -#CMD="/usr/bin/flatpak run --branch=stable --arch=x86_64 --file-forwarding $APP" -read -p "Arguments pour $APP :" arguments - -/usr/bin/flatpak run --branch=stable --arch=x86_64 --file-forwarding "$APP" "$arguments" - -