This commit is contained in:
Tumble 2023-12-16 15:50:58 +00:00
parent 2e57bf38ce
commit 3dcce43bbb
No known key found for this signature in database
10 changed files with 136 additions and 11 deletions

View File

@ -7,3 +7,4 @@
# Get the aliases and functions
[ -f $HOME/.bashrc ] && . $HOME/.bashrc
. "$HOME/.cargo/env"

View File

@ -16,3 +16,4 @@ PS1='[\u@\h \W]\$ '
export PATH="$PATH:/home/tumble/.local/bin:/home/tumble/.pyenv/bin"
# Ruby
eval "$(rbenv init - bash)"
. "$HOME/.cargo/env"

View File

@ -70,3 +70,4 @@ xterm*|rxvt*)
esac
PS1="$PS1$BASH_PROMPT"
export TERM="xterm"

View File

@ -7,7 +7,8 @@ kdewallet=Code - OSS,Chromium,Opera
[Wallet]
Close When Idle=false
Close on Screensaver=false
Enabled=true
Default Wallet=kdewallet
Enabled=false
First Use=false
Idle Timeout=10
Launch Manager=true

View File

@ -102,9 +102,9 @@ MountRemovable=true
AlwaysShowTabs=true
FixedHeight=480
FixedWidth=640
LastWindowHeight=427
LastWindowHeight=479
LastWindowMaximized=true
LastWindowWidth=948
LastWindowWidth=680
PathBarButtons=true
RememberWindowSize=true
ReopenLastTabs=false
@ -113,6 +113,7 @@ ShowTabClose=true
SidePaneMode=places
SidePaneVisible=true
SplitView=false
SplitViewTabsNum=0
SplitterPos=278
SwitchToNewTab=false
TabPaths=@Invalid()

75
.config/sway/config Normal file
View File

@ -0,0 +1,75 @@
set $alt Mod1
set $win Mod4
set $defaultApps ~/defaultapps.list
set $web `awk -F'=' '/WebBrowser/{print $2}' $defaultApps`
set $files `awk -F'=' '/FileManager/{print $2}' $defaultApps`
set $term `awk -F'=' '/TerminalEmulator/{print $2}' $defaultApps`
set $editor `awk -F'=' '/TextEditor/{print $2}' $defaultApps`
set $spreadsheet `awk -F'=' '/Spreadsheet/{print $2}' $defaultApps`
set $word `awk -F'=' '/WordProcessor/{print $2}' $defaultApps`
set $slides `awk -F'=' '/Presentation/{print $2}' $defaultApps`
set $calendar `awk -F'=' '/Calendar/{print $2}' $defaultApps`
set $contacts `awk -F'=' '/ContactManager/{print $2}' $defaultApps`
set $email `awk -F'=' '/Email/{print $2}' $defaultApps`
set $player `awk -F'=' '/Player/{print $2}' $defaultApps`
set $menu `nwggrid`
xwayland enable
workspace_layout tabbed
input * xkb_layout "gb"
bar {
position top
status_command swaybar
}
for_window [class=".*"] floating enable
for_window [class=".*"] layout tabbed
######################
# WORKSPACE TRAVERSAL (win+ctrl)
######################
# Change to specific workspace
# WIN +[1-0]
# Change tp Adjacent Workspace
# WIN + SCROLL
# CTRL + WIN + Arrows - Similar to windows
bindsym $win+Ctrl+Left workspace prev_on_output
bindsym $win+Ctrl+Right workspace next_on_output
####################
# WINDOW MANAGEMENT (win+shift)
####################
# Toggle if window is tiled
bindsym $win+Shift+f floating toggle
bindsym $win+Shift+t layout toggle tabbed stacked
bindsym $win+Shift+Up floating disable; exec ID=`swaymsg -t get_tree | jq '.. | select(.type?) | select(.focused==true) | .name'` && swaymsg move container to workspace "$ID" && swaymsg workspace "$ID"
#bindsym $win+Shift+Up floating disable
#bindsym $win+Shift+Down floating enable
# Move window tile position
bindsym $win+Left move left
bindsym Ctrl+$alt+t exec $term
bindsym $win+e exec $files
bindsym $win+n exec $term $editor
bindsym $win+w exec $web
bindsym $win+r exec $menu
bindsym $win+Shift+r reload
bindsym $win+Shift+q exec swaynag -t warning -m 'You pressed the exit shortcut. Do you really wait sway? This will end your Wayland session.' -B 'Yes, exit sway' 'swaymsg exit'
output * bg /home/tumble/.local/share/wallpapers/windowsxp.jpeg fill
exec dex -a -e GNOME
exec swayidle -w \
timeout 300 'swaylock -f -c 000000' \
timeout 600 'swaymsg "output * power off"' resume 'swaymsg "output * power on"' \
before-sleep 'swaylock -f -c 000000'

35
.local/bin/create-ssh-key Executable file
View File

@ -0,0 +1,35 @@
#!/bin/sh
ask() {
eval "$1=\"$2\""
if [ -z "$2" ]; then
echo "$3"
read $1
fi
}
ask SSH_HOSTNAME "$1" "Enter hostname of remote server:"
ask SSH_PORT "$2" "Enter ssh port of remote server:"
ask SSH_PUBLIC "$3" "Enter public hostname of remote server:"
ssh-keygen -t ed25519 -f $HOME/.ssh/$SSH_HOSTNAME
cat << EOF
##################################
SSH PUBLIC KEY:
##################################
$(cat ~/.ssh/${SSH_HOSTNAME}.pub)
###################################
Put the following in .ssh/config:
###################################
Host $SSH_HOSTNAME
#HostName $SSH_PUBLIC
Port $SSH_PORT
IdentityFile ~/.ssh/$SSH_HOSTNAME
####################################
EOF

2
.local/bin/followredirect Normal file → Executable file
View File

@ -1,3 +1,3 @@
#!/bin/sh
wget $1 2>&1 | grep Location:
wget --no-check-certificate --no-cache --no-cookies $1 2>&1 | grep Location:

View File

@ -13,3 +13,6 @@ else
. $XDG_RUNTIME_DIR/ssh-agent-env
fi
fi
. "$HOME/.cargo/env"

View File

@ -1,17 +1,24 @@
Host steamdeck
HostName steamdeck
HostName jirachi
User deck
Host tumble-pi
# Raspbery Pi
Host porygon
HostName tumble.beanofficial.co
Port 3022
IdentityFile ~/.ssh/tumble-pi
IdentityFile ~/.ssh/porygon
Host tumble-server
# server
Host onyx
HostName tumble.beanofficial.co
Port 3023
IdentityFile ~/.ssh/tumble-server
IdentityFile ~/.ssh/onyx
Host tumble-tv
IdentityFile ~/.ssh/tumble-tv
# laptop server
Host alakazam
HostName tumble.beanofficial.co
Port 3024
IdentityFile ~/.ssh/alakazam
Host sarpnt
HostName sarpnt.beanofficial.co