]> www.git.dmfe.net Git - dotfiles/commitdiff
Refactor shell init scripts. Change tmux configs. Change 'dmunumount' script. Add...
authorDmitry Fedotov <dm.fe@yandex.ru>
Sat, 6 Apr 2024 12:36:16 +0000 (15:36 +0300)
committerDmitry Fedotov <dm.fe@yandex.ru>
Sat, 6 Apr 2024 12:36:16 +0000 (15:36 +0300)
scripts/dmenumount.sh
scripts/xephyr.sh [new file with mode: 0755]
shell/aliases/00-aliases
shell/bashrc
shell/envs/03-java [new file with mode: 0644]
shell/envs/04-options [new file with mode: 0644]
shell/inputrc [new file with mode: 0644]
tmux/theme.sh
tmux/tmux.conf.symlink

index 489e725aa7f2ee999bc89c6756ae5ff8345db3bc..732dc4b4753f6aeff5df0736e6e0ea55133cd5e6 100755 (executable)
@@ -1,8 +1,8 @@
 #!/bin/bash
 
 font="Monospace-18"
-panel_background=$(xrdb -query | grep '*.panel_background' | awk '{print $NF}')
-selected_background=$(xrdb -query | grep '*.ws_focused' | awk '{print $NF}')
+panel_background=$(xrdb -query | grep '*.normbgcolor' | awk '{print $NF}')
+selected_background=$(xrdb -query | grep '*.selbgcolor' | awk '{print $NF}')
 
 pgrep -x dmenu && exit
 
diff --git a/scripts/xephyr.sh b/scripts/xephyr.sh
new file mode 100755 (executable)
index 0000000..8905dbc
--- /dev/null
@@ -0,0 +1,12 @@
+#!/bin/bash
+
+Xephyr -br -ac -reset -screen 1920x1080 :1 &
+# Xephyr -br -ac -reset -screen 800x600 :1 &
+sleep 1s
+
+export DISPLAY=:1
+
+wallpaper 20 &
+xrdb ~/.Xresources
+$1 &
+
index 0856897de02ec626dc8f431cbc7ae4764d1446f7..bf065d7bc58d7b3d4881e0f33ecda924a7b47d8a 100644 (file)
@@ -1,7 +1,8 @@
 # files 
-alias lla="ls -la"
-alias ll="ls -l"
-alias llr="ls -laRh"
+alias ls="ls $LS_OPTIONS"
+alias ll="ls $LS_OPTIONS -l"
+alias l="ls $LS_OPTIONS -la"
+alias lr="ls $LS_OPTIONS -laRh"
 
 # packet manager
 alias p="pacman"
@@ -16,6 +17,9 @@ alias shutdown="sudo shutdown"
 alias shtd="shutdown -h now"
 alias reboot="sudo reboot"
 
+# rsync
+alias rsync="rsync -vrP --delete-after"
+
 # arango db
 alias arangor="sudo /etc/init.d/arangodb start"
 alias arangos="sudo /etc/init.d/arangodb stop"
index 7bd8c2b2055a8c50ed72c63e334bb857d68e3393..f22d0d6cc66bf896cc4d553ae822637c000611b5 100644 (file)
@@ -31,5 +31,17 @@ fi
 complete -cf sudo
 complete -cf man
 
+# Enable vi mode
+set -o vi
+
 # Environment for interactive mode
 export EDITOR=nvim
+
+eval "$(dircolors)"
+
+# Powerline configuration
+powerline-daemon -q
+POWERLINE_BASH_CONTINUATION=1
+POWERLINE_BASH_SELECT=1
+. /usr/share/powerline/bindings/bash/powerline.sh
+
diff --git a/shell/envs/03-java b/shell/envs/03-java
new file mode 100644 (file)
index 0000000..2cec07a
--- /dev/null
@@ -0,0 +1,3 @@
+export JAVA_HOME=/opt/jdks/jdk-17.0.9+9
+export GRADLE_HOME=/opt/build/gradle-8.2.1
+
diff --git a/shell/envs/04-options b/shell/envs/04-options
new file mode 100644 (file)
index 0000000..f9cc4f5
--- /dev/null
@@ -0,0 +1 @@
+export LS_OPTIONS="--color=auto"
diff --git a/shell/inputrc b/shell/inputrc
new file mode 100644 (file)
index 0000000..70db596
--- /dev/null
@@ -0,0 +1,3 @@
+set show-mode-in-prompt on
+set vi-cmd-mode-string "\1\e[1;48;5;246;38;5;237m\2 CMD \1\e[48;5;239;38;5;246m\2\1\e[0m\2"
+set vi-ins-mode-string "\1\e[1;48;5;109;38;5;237m\2 INS \1\e[48;5;239;38;5;109m\2\1\e[0m\2"
index 7d1d77657d052c76f3f960aa016c5e8cb28448ca..06bad92508476fc32fba951d3af8b0223e24d265 100644 (file)
@@ -17,19 +17,19 @@ base0D='#6a9fb5' # - Functions, Methods, Attribute IDs, Headings
 base0E='#3781fa' # - Keywords, Storage, Selector, Markup Italic, Diff Changed
 base0F='#8f5536' # - Deprecated, Opening/Closing Embedded Language Tags, e.g. <? php ?>
 
-set -g status-left-length 32
-set -g status-right-length 150
-set -g status-interval 5
+set -g status-left-length 32
+set -g status-right-length 150
+set -g status-interval 5
 
 # default statusbar colors
-set-option -g status-style fg=$base03,bg=$base00
-
-set-window-option -g window-status-style fg=$base03,bg=$base00
-set-window-option -g window-status-format " [#I] #W "
+set-option -g status-style fg=$base03,bg=$base00
+#
+set-window-option -g window-status-style fg=$base03,bg=$base00
+set-window-option -g window-status-format " [#I] #W "
 
 # active window title colors
-set-window-option -g window-status-current-style fg=$base06,bg=$base0C
-set-window-option -g window-status-current-format " #[bold][#I] #W "
+set-window-option -g window-status-current-style fg=$base06,bg=$base0C
+set-window-option -g window-status-current-format " #[bold][#I] #W "
 
 # pane border colors
 set-window-option -g pane-active-border-style fg=$base00
@@ -42,14 +42,14 @@ set-window-option -g mode-style fg=$base06,bg=$base0C
 set-option -g message-style bg=$base00,fg=$base06
 
 # pane number display
-set-option -g display-panes-active-colour $base0C
-set-option -g display-panes-colour $base03
+set-option -g display-panes-active-colour $base0C
+set-option -g display-panes-colour $base03
 
 # clock
-set-window-option -g clock-mode-colour $base0C
-
-set-option -g status-right ''
-
-tm_session_name="#[default,bg=$base00,fg=$base06] #S "
-set -g status-left "$tm_session_name"
+set-window-option -g clock-mode-colour $base0C
+#
+set-option -g status-right ''
+#
+tm_session_name="#[default,bg=$base00,fg=$base06] #S "
+set -g status-left "$tm_session_name"
 
index 22b1f9ee1d1856392ae00308383d9dd37a08a3b8..357847840496d6e33bacab2bd2e1962212622077 100644 (file)
@@ -44,7 +44,7 @@ set-option -g set-titles-string "#T - #W"
 ######################
 
 # reload config file
-bind r source-file ~/.dotfiles/tmux/tmux.conf.symlink \; display '~/.dotfiles/tmux/tmux.conf.symlink'
+bind r source-file ~/dotfiles/tmux/tmux.conf.symlink \; display '~/dotfiles/tmux/tmux.conf.symlink'
 
 # split window and fix path for tmux 1.9
 bind | split-window -h -c "#{pane_current_path}"
@@ -84,4 +84,6 @@ bind-key b select-pane -t 2 \; send-keys Up C-m \; last-pane
 #### Color $ Style Settings####
 ###############################
 
-source ~/.dotfiles/tmux/theme.sh
+source ~/dotfiles/tmux/theme.sh
+run-shell "powerline-config tmux setup"
+