From 9c2e9f955ea6240c2dec68647a4b71cd3f1ed7b8 Mon Sep 17 00:00:00 2001 From: Adam <56338480+adastx@users.noreply.github.com> Date: Sun, 10 Oct 2021 13:02:00 +0200 Subject: some dotfiles organization --- .bash_profile | 7 +++++++ .config/i3/config | 2 +- .config/i3/custom/screenshot | 4 ++++ .profile | 27 --------------------------- bin/screenshot | 4 ---- 5 files changed, 12 insertions(+), 32 deletions(-) create mode 100644 .bash_profile create mode 100755 .config/i3/custom/screenshot delete mode 100644 .profile delete mode 100755 bin/screenshot diff --git a/.bash_profile b/.bash_profile new file mode 100644 index 0000000..b82ed01 --- /dev/null +++ b/.bash_profile @@ -0,0 +1,7 @@ +# +# ~/.bash_profile +# + +[[ -f ~/.bashrc ]] && . ~/.bashrc + +[[ $(fgconsole 2>/dev/null) == 1 ]] && exec startx -- vt1 diff --git a/.config/i3/config b/.config/i3/config index 06df6b6..e4f41e5 100644 --- a/.config/i3/config +++ b/.config/i3/config @@ -16,7 +16,7 @@ bindsym $mod+Return exec --no-startup-id alacritty bindsym $mod+b exec --no-startup-id firefox bindsym $mod+e exec --no-startup-id pcmanfm bindsym $mod+f fullscreen toggle -bindsym $mod+Shift+s exec --no-startup-id screenshot +bindsym $mod+Shift+s exec --no-startup-id ~/.config/i3/custom/screenshot bindsym $mod+d exec --no-startup-id rofi -show drun -show-icons -drun-display-format {name} bindsym $alt+Tab exec --no-startup-id rofi -show window -show-icons -drun-display-format {name} diff --git a/.config/i3/custom/screenshot b/.config/i3/custom/screenshot new file mode 100755 index 0000000..a3bae84 --- /dev/null +++ b/.config/i3/custom/screenshot @@ -0,0 +1,4 @@ +#!/bin/sh + +sleep 0.2 +scrot -sfe 'mv $f ~/Pictures/screenshots/' diff --git a/.profile b/.profile deleted file mode 100644 index d89ea5a..0000000 --- a/.profile +++ /dev/null @@ -1,27 +0,0 @@ -# ~/.profile: executed by the command interpreter for login shells. -# This file is not read by bash(1), if ~/.bash_profile or ~/.bash_login -# exists. -# see /usr/share/doc/bash/examples/startup-files for examples. -# the files are located in the bash-doc package. - -# the default umask is set in /etc/profile; for setting the umask -# for ssh logins, install and configure the libpam-umask package. -#umask 022 - -# if running bash -if [ -n "$BASH_VERSION" ]; then - # include .bashrc if it exists - if [ -f "$HOME/.bashrc" ]; then - . "$HOME/.bashrc" - fi -fi - -# set PATH so it includes user's private bin if it exists -if [ -d "$HOME/bin" ] ; then - PATH="$HOME/bin:$PATH" -fi - -# set PATH so it includes user's private bin if it exists -if [ -d "$HOME/.local/bin" ] ; then - PATH="$HOME/.local/bin:$PATH" -fi diff --git a/bin/screenshot b/bin/screenshot deleted file mode 100755 index a3bae84..0000000 --- a/bin/screenshot +++ /dev/null @@ -1,4 +0,0 @@ -#!/bin/sh - -sleep 0.2 -scrot -sfe 'mv $f ~/Pictures/screenshots/' -- cgit v1.2.3-70-g09d2