aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorClyhtsuriva <aimeric@adjutor.xyz>2021-05-05 10:40:31 +0200
committerClyhtsuriva <aimeric@adjutor.xyz>2021-05-05 10:40:31 +0200
commitb2e26b65e40fdab204d1207ecc2cfc17637ee653 (patch)
tree4cb1a7990a5bb05d24b1b0b67edbe15059db4a09
parent069be1d0e13739ab9badee36b8d573dfc91fa88e (diff)
x config files added and shortcuts
-rw-r--r--.config/shortcutrc3
-rw-r--r--.xinitrc22
-rw-r--r--.xprofile26
3 files changed, 51 insertions, 0 deletions
diff --git a/.config/shortcutrc b/.config/shortcutrc
new file mode 100644
index 0000000..fc7d7c4
--- /dev/null
+++ b/.config/shortcutrc
@@ -0,0 +1,3 @@
+# vim: filetype=sh
+alias pp="cd ~/Pictures && ls -a" \
+vv="cd ~/Videos && ls -a" \
diff --git a/.xinitrc b/.xinitrc
new file mode 100644
index 0000000..ab29663
--- /dev/null
+++ b/.xinitrc
@@ -0,0 +1,22 @@
+#!/bin/sh
+
+# xinitrc runs automatically when you run startx.
+
+# There are some small but important commands that need to be run when we start
+# the graphical environment. I keep those commands in ~/.xprofile because that
+# file is run automatically if someone uses a display manager (login screen)
+# and so they are needed there. To prevent doubling up commands, I source them
+# here with the line below.
+
+[ -f ~/.xprofile ] && . ~/.xprofile
+
+
+###PERSONAL EDIT###
+exec i3
+start-pulseaudio-x11 &
+
+ibus-daemon -xd
+
+xset s off
+xset -dpms
+xset s noblank
diff --git a/.xprofile b/.xprofile
new file mode 100644
index 0000000..0c1f0d0
--- /dev/null
+++ b/.xprofile
@@ -0,0 +1,26 @@
+#!/bin/sh
+
+# This file runs when a DM logs you into a graphical session.
+# If you use startx/xinit like a Chad, this file will also be sourced.
+
+setbg & # set the background with the `setbg` script
+xcompmgr & # xcompmgr for transparency
+#dunst & # dunst for notifications
+#sxhkd & # Bind keys with sxhkd
+xset r rate 300 50 & # Speed xrate up
+unclutter & # Remove mouse when idle
+
+# Set Caps to Mod/Escape
+setxkbmap -option caps:super && killall xcape 2>/dev/null ; xcape -e 'Super_L=Escape' &
+# Properties button extra Mod/Escape
+xmodmap -e 'keycode 135 = Super_R' &
+
+# This loop will run the `refbar` script to refresh the statusbar whenever a
+# command changes the music player's status.
+while pgrep -x mpd; do
+ mpc idle >/dev/null 2>&1
+ refbar
+done &
+ibus-daemon -xd &
+sct 3500 &
+xbacklight -set 25 &