xremap, terminal UI+UX

This commit is contained in:
Jan Andrle 2024-03-01 18:00:42 +01:00
parent 5dd77c49a0
commit 3495c81c49
Signed by: jaandrle
GPG Key ID: B3A25AED155AFFAB
6 changed files with 77 additions and 73 deletions

View File

@ -1,58 +1,59 @@
function setPromt { function setPromt {
if [ "$color_prompt" != yes ]; then if [ "$color_prompt" != yes ]; then
PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\$ ' PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\$ '
return return
fi fi
case "$TERM" in case "$TERM" in
xterm*|rxvt*) xterm*|rxvt*)
;; ;;
*) *)
PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\$ ' PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\$ '
return return
;; ;;
esac esac
PROMPT_COMMAND=updatePromt PROMPT_COMMAND=updatePromt
PS2="|" PS2="|"
} }
function updatePromt { function updatePromt {
local prev_exit="$?" local prev_exit="$?"
# color_helper_>>color<< (Note: \[\]= escaping) # history -n; history -w; history -c; history -r;
local chR="\[\e[1;91m\]" #red # color_helper_>>color<< (Note: \[\]= escaping)
local chW="\[\033[00m\]" #white local chR="\[\e[1;91m\]" #red
local chG="\[\033[01;32m\]" #green local chW="\[\033[00m\]" #white
local chB="\[\033[0;34m\]" #blue local chG="\[\033[01;32m\]" #green
local chP="\[\033[0;35m\]" #purple local chB="\[\033[0;34m\]" #blue
local chY="\[\033[0;33m\]" #yellow local chP="\[\033[0;35m\]" #purple
PS1="" local chY="\[\033[0;33m\]" #yellow
if [ $prev_exit == 0 ]; then PS1=""
PS1+="$chG$chW" if [ $prev_exit == 0 ]; then
else PS1+="$chG$chW"
PS1+="$chR$chW" else
fi PS1+="$chR$chW"
local jobs="$(jobs | wc -l)" fi
if [ $jobs != 0 ]; then local jobs="$(jobs | wc -l)"
PS1+="${chY}$jobs$chW" if [ $jobs != 0 ]; then
fi PS1+="${chY}$jobs$chW"
PS1+="${debian_chroot:+($debian_chroot)}" fi
PS1+=" At ${chG}\A${chW}" PS1+="${debian_chroot:+($debian_chroot)}"
PS1+=" by ${chP}\u${chW}" PS1+=" At ${chG}\A${chW}"
if sudo -n true 2>/dev/null; then PS1+=" by ${chP}\u${chW}"
PS1+="${chR} (sudo)${chW}" if sudo -n true 2>/dev/null; then
fi PS1+="${chR} (sudo)${chW}"
PS1+=" in " fi
if \git rev-parse --is-inside-work-tree >/dev/null 2>&1; then PS1+=" in "
local branch="$(\git symbolic-ref -q HEAD)" if \git rev-parse --is-inside-work-tree >/dev/null 2>&1; then
PS1+="[${branch#refs/heads/}" local branch="$(\git symbolic-ref -q HEAD)"
local status="$(git for-each-ref --format='%(upstream:trackshort)' refs/heads | awk '!seen[$1]++ {printf $1}')" PS1+="[${branch#refs/heads/}"
status+="$(git status --porcelain | awk '!seen[$1]++ {printf $1}')" local status="$(git for-each-ref --format='%(upstream:trackshort)' refs/heads | awk '!seen[$1]++ {printf $1}')"
if [ "$statua"s ]; then status+="$(git status --porcelain | awk '!seen[$1]++ {printf $1}')"
PS1+="|$chY$status$chW" if [ "$statua"s ]; then
fi PS1+="|$chY$status$chW"
PS1+="] " fi
fi PS1+="] "
PS1+="${chB}\w${chW}" fi
PS1+="\n:" PS1+="${chB}\w${chW}"
history -a PS1+="\n:"
history -a
} }
setPromt setPromt
unset color_prompt unset color_prompt

View File

@ -7,7 +7,7 @@ pos=@Point(1094 150)
size=@Size(640 585) size=@Size(640 585)
[RepoTreeView] [RepoTreeView]
expandedCategories-e77d1fb=Moje knihovny\tSd\xedleno se skupinama\tNed\xe1vno aktualizovan\xe9 expandedCategories-e77d1fb=Sd\xedleno se skupinama\tNed\xe1vno aktualizovan\xe9\tMoje knihovny
[Settings] [Settings]
computerName=TUXEDO-InfinityBook-s15gen6 computerName=TUXEDO-InfinityBook-s15gen6

4
.config/xremap.yml Normal file
View File

@ -0,0 +1,4 @@
keymap:
- name: Ctrl+tab alias
remap:
C-KEY_KPSLASH: C-KEY_TAB

View File

@ -12,4 +12,5 @@ Name=Můj
Parent=FALLBACK/ Parent=FALLBACK/
[Scrolling] [Scrolling]
HistoryMode=2
ScrollBarPosition=2 ScrollBarPosition=2

View File

@ -34,20 +34,6 @@ see for example [How to Store Dotfiles - A Bare Git Repository \| Atlassian Git
1. `gitdotfiles checkout -f` 1. `gitdotfiles checkout -f`
1. `gitdotfiles submodule update --init --recursive` 1. `gitdotfiles submodule update --init --recursive`
## KDE Neon
- [KDE Plasma5 Fixes](https://zren.github.io/kde/)
- Using HTML Wallpaper (wip)
- [Bing Image Of The Day](./Obrázky/Bing Image Of The Day/index_template.html)
- [GNOME Keyring in KDE Plasma - JWillikers](https://www.jwillikers.com/gnome-keyring-in-kde-plasma)
- `sudo apt install $(check-language-support)`, see [Popup Language support is incomplete](http://unix.stackexchange.com/questions/421066/ddg#421079)
- [KDE Neon does not have an hibernation option? : kde](https://www.reddit.com/r/kde/comments/6n5m49/kde_neon_does_not_have_an_hibernation_option/dk7hd8v/)
- [kde plasma 5 - How to use miracast as an extended desktop on Linux? - Super User](https://superuser.com/questions/1160078/how-to-use-miracast-as-an-extended-desktop-on-linux)
- [Best tiling extensions for kwin? : kde](https://www.reddit.com/r/kde/comments/qgsv2u/best_tiling_extensions_for_kwin/?sort=new)
- [KDE Plasma5 Fixes](https://zren.github.io/kde/)
- [Setup git on the CLI to use 2FA with GitHub](https://gist.github.com/ateucher/4634038875263d10fb4817e5ad3d332f)
- [G'MIC - GREYC's Magic for Image Computing: A Full-Featured Open-Source Framework for Image Processing - Main](https://gmic.eu/)
## PC log (cs) ## PC log (cs)
Sekce obsahuje log změn v Tuxedo laptopu s KDE Neon. Sekce obsahuje log změn v Tuxedo laptopu s KDE Neon.
@ -65,6 +51,9 @@ Sekce obsahuje log změn v Tuxedo laptopu s KDE Neon.
- [ ] html wallpaper → workaround just concat images (see [./bin/§wallpaper\_BIOTD](./bin/§wallpaper_BIOTD)) - [ ] html wallpaper → workaround just concat images (see [./bin/§wallpaper\_BIOTD](./bin/§wallpaper_BIOTD))
- [ ] tilling → try to use native, try to use [zeroxoneafour/polonium: Tiling window manager for KWin 5.27](https://github.com/zeroxoneafour/polonium) (when there will be a new release) - [ ] tilling → try to use native, try to use [zeroxoneafour/polonium: Tiling window manager for KWin 5.27](https://github.com/zeroxoneafour/polonium) (when there will be a new release)
- [ ] hud ([Zren/plasma-hud](https://github.com/Zren/plasma-hud) still works on X11), but maybe Ctrl+Alt+i and so on is OK? - [ ] hud ([Zren/plasma-hud](https://github.com/Zren/plasma-hud) still works on X11), but maybe Ctrl+Alt+i and so on is OK?
- [ ] [Fingerprint reader support : r/tuxedocomputers](https://www.reddit.com/r/tuxedocomputers/comments/176fscp/fingerprint_reader_support/), still receiving “no match”
- [ ] [Clipboard support in Wayland · Issue #5157 · vim/vim](https://github.com/vim/vim/issues/5157#issuecomment-776008833)
- [x] ctrl+tab using [k0kubun/xremap: Key remapper for X11 and Wayland](https://github.com/k0kubun/xremap) and `sudo crontab -e`+`@reboot` and [./.config/xremap.yml](./.config/xremap.yml)
```bash ```bash
qdbus org.kde.ksmserver /KSMServer org.kde.KSMServerInterface.logout 1 qdbus org.kde.ksmserver /KSMServer org.kde.KSMServerInterface.logout 1
@ -106,9 +95,18 @@ Exec=/usr/bin/krunner
Postupováno podle návodu [Rename the `~/.local/lib/python3.8/site-packages/pkg_resources` folder to `pkg_resources_back`](https://askubuntu.com/a/1398073). Postupováno podle návodu [Rename the `~/.local/lib/python3.8/site-packages/pkg_resources` folder to `pkg_resources_back`](https://askubuntu.com/a/1398073).
### kwin-tiling ### KDE Neon
- https://gitlab.com/faho/kwin-tiling/ - [KDE Plasma5 Fixes](https://zren.github.io/kde/)
- Using HTML Wallpaper (wip)
- [Bing Image Of The Day](./Obrázky/Bing Image Of The Day/index_template.html)
- [GNOME Keyring in KDE Plasma - JWillikers](https://www.jwillikers.com/gnome-keyring-in-kde-plasma)
- `sudo apt install $(check-language-support)`, see [Popup Language support is incomplete](http://unix.stackexchange.com/questions/421066/ddg#421079)
- [KDE Neon does not have an hibernation option? : kde](https://www.reddit.com/r/kde/comments/6n5m49/kde_neon_does_not_have_an_hibernation_option/dk7hd8v/)
- [kde plasma 5 - How to use miracast as an extended desktop on Linux? - Super User](https://superuser.com/questions/1160078/how-to-use-miracast-as-an-extended-desktop-on-linux)
- [Best tiling extensions for kwin? : kde](https://www.reddit.com/r/kde/comments/qgsv2u/best_tiling_extensions_for_kwin/?sort=new), https://gitlab.com/faho/kwin-tiling/
- [KDE Plasma5 Fixes](https://zren.github.io/kde/)
- [Setup git on the CLI to use 2FA with GitHub](https://gist.github.com/ateucher/4634038875263d10fb4817e5ad3d332f)
- [G'MIC - GREYC's Magic for Image Computing: A Full-Featured Open-Source Framework for Image Processing - Main](https://gmic.eu/)
<details> <details>
<summary>`{… cmd}$` explanation</summary> <summary>`{… cmd}$` explanation</summary>

View File

@ -93,8 +93,8 @@
{ {
"repository": "dynobo/normcap", "repository": "dynobo/normcap",
"name": "NormCap", "name": "NormCap",
"description": "OCR powered screen-capture tool to capture information instead of images", "description": "Switched to flatpak version | OCR powered screen-capture tool to capture information instead of images",
"group": "nondev", "group": "skip",
"file_name": "normcap", "file_name": "normcap",
"exec": "yes", "exec": "yes",
"last_update": "2023-12-12T22:23:37Z", "last_update": "2023-12-12T22:23:37Z",