]> Freerunner's - dotfiles.git/commitdiff
fish: add bash config, exec fish via bashrc, configure hyprland
authorAndre Ramnitz <tux.rising@gmail.com>
Tue, 26 Dec 2023 23:12:16 +0000 (00:12 +0100)
committerAndre Ramnitz <tux.rising@gmail.com>
Sun, 18 Aug 2024 16:18:52 +0000 (18:18 +0200)
config/hypr/hyprland.conf
home/.bash_profile [new file with mode: 0644]
home/.bashrc [new file with mode: 0644]
restow_dots.sh
stow_dots.sh
unstow_dots.sh

index 1d869be53c69243bc4eaf8da1397fa61f9faa8f6..9a34c1a8e527006e350b147cc62ff4856e178f93 100644 (file)
@@ -198,8 +198,8 @@ bind = $suremod, D, denywindowfromgroup, toggle
 bind = $suremod, V, togglefloating,
 
 # Example binds, see https://wiki.hyprland.org/Configuring/Binds/ for more
-bind = $mainmod, Return, exec, foot -L /usr/bin/fish --
-bind = $mainmod Shift, Return, exec, foot -w 1280x800 -a popup -L /usr/bin/fish --
+bind = $mainmod, Return, exec, foot
+bind = $mainmod Shift, Return, exec, foot -w 1280x800 -a popup
 bind = $mainmod, C, exec, foot -w 640x400 -a popup -H hyprpicker
 bind = $mainmod, E, exec, dolphin
 bind = $mainmod, F, fullscreen,1
diff --git a/home/.bash_profile b/home/.bash_profile
new file mode 100644 (file)
index 0000000..27a7acd
--- /dev/null
@@ -0,0 +1,20 @@
+# /etc/skel/.bash_profile
+
+export VDPAU_DRIVER=radeonsi
+export EDITOR="kcr edit"
+export FZF_DEFAULT_OPTS='--multi --layout=reverse --preview-window=down:60%'
+
+# This file is sourced by bash for login shells.  The following line
+# runs your .bashrc and is recommended by the bash info pages.
+if [[ -f ~/.bashrc ]] ; then
+       . ~/.bashrc
+fi
+
+# autorun X11
+if [ -z $(pgrep X) ] ; then
+  #startx
+  #dbus-launch --exit-with-session /usr/bin/startplasma-wayland
+  #dbus-launch --exit-with-session Hyprland
+  tbsm
+fi
+
diff --git a/home/.bashrc b/home/.bashrc
new file mode 100644 (file)
index 0000000..6603ba0
--- /dev/null
@@ -0,0 +1,56 @@
+#!/bin/bash
+# /etc/skel/.bashrc
+#
+# This file is sourced by all *interactive* bash shells on startup,
+# including some apparently interactive shells such as scp and rcp
+# that can't tolerate any output.  So make sure this doesn't display
+# anything or bad things will happen !
+
+export PATH="$PATH:/opt/android-sdk/platform-tools/"
+export PATH="$PATH:~/.cargo/bin:~/.local/bin:~/Applications/"
+
+export BROWSER='qutebrowser "--untrusted-args %u"'
+export EDITOR="kks edit"
+export PAGER="less"
+export VDPAU_DRIVER="radeonsi"
+export XZ_OPT="--threads=16"
+
+alias grep='grep -i'
+alias gcp="git cherry-pick"
+alias glo="git log --oneline"
+alias nano='nano -_qpT4 '
+alias free='free -h --si'
+
+alias ls='exa --icons --time-style=iso --group-directories-first'
+alias ll='exa --icons --group --time-style=iso --group-directories-first -l'
+alias l1='exa --icons --group -1 --grid --time-style=iso --group-directories-first'
+alias la='ll -d && ll'
+alias lw='exa --icons --group --long --grid --time-style=iso --group-directories-first'
+alias lt='exa --icons --group --long --sort=mod -t=mod --time-style=iso --group-directories-first'
+
+alias emergelog='sudo cat /var/log/emerge.log | grep "started\|completed\|exiting"'
+
+alias K='kcr-fzf-shell'
+alias KK='K --working-directory .'
+
+# Open files _from_ and _to_ a session.
+# $ :f src
+# $ f: mawww/kakoune
+alias :f='kcr fzf files'
+alias f:='KK kcr fzf files'
+alias fm:='K sidetree --working-directory'
+
+alias :g='kcr fzf grep'
+alias g:='KK kcr fzf grep'
+
+# Test for an interactive shell.  There is no need to set anything
+# past this point for scp and rcp, and it's important to refrain from
+# outputting anything in those cases.
+if [[ $- != *i* ]] ; then
+       # Shell is non-interactive.  Be done now!
+       return
+fi
+
+# Put your fun stuff here.
+#
+[ -x /bin/fish ] && SHELL=/bin/fish exec fish
index db9982d46c0690d78ce8d43df06c656c07a83582..d059aeb4a91e003fba5130907cfa355e983e3f09 100755 (executable)
@@ -2,4 +2,5 @@
 
 stow -t "$HOME/.config" -R config
 stow -t "$HOME/.local" -R local
+stow -t "$HOME" -R home
 
index 729e33ef88973c4061b4380f23a7a24ec6f1f7bd..dc0e1b56893f5bbecffbdf820b5502d14e671c89 100755 (executable)
@@ -2,4 +2,5 @@
 
 stow -t "$HOME/.config" -S config
 stow -t "$HOME/.local" -S local
+stow -t "$HOME" -S home
 
index f8827113211841e905a8495050f75ee52e6e9a17..e13af4aaabc19aa3bca72e2151b35a5a36c716e1 100755 (executable)
@@ -2,4 +2,5 @@
 
 stow -t "$HOME/.config" -D config
 stow -t "$HOME/.local" -D local
+stow -t "$HOME" -D home