Browse Source

Redshift added

main
Yigit Colakoglu 4 years ago
parent
commit
2fa8e8a4aa
8 changed files with 38 additions and 8 deletions
  1. +1
    -0
      arch-setup/packages.rice
  2. +6
    -5
      config.env.def
  3. +3
    -0
      config/X11/xinitrc
  4. +2
    -2
      config/zsh/cmds
  5. +24
    -0
      local/bin/status-bar/redshift
  6. +0
    -1
      profile
  7. +1
    -0
      suckless/dwm/rules.h
  8. +1
    -0
      suckless/dwmblocks/config.h

+ 1
- 0
arch-setup/packages.rice View File

@ -49,3 +49,4 @@ hicolor-icon-theme
libexif
libxft
udevil
redshift

+ 6
- 5
config.env.def View File

@ -2,13 +2,14 @@
#!/bin/sh
export ETH_IT=enp3s0f0
export WLAN_IT=wlp0s20u7
export TEMP_ZONE=/sys/class/thermal/thermal_zone0/temp
export NO_BAT=true
export ETH_IT=enp2s0
export WLAN_IT=wlp3s0
export TEMP_ZONE=/sys/class/thermal/thermal_zone4/temp
export NO_BAT=false
export NEXTCLOUD=false
export MCONNECT=true
export MCONNECT_DEVICE=/org/mconnect/device/0
export LOCATION=ankara
export ACTIVITYWATCH=false
export FIREFOX_PROFILE=f9atsu8e.default-release
export FIREFOX_PROFILE=a1lv19vn.default-release
export LATLONG="39.92:32.85"

+ 3
- 0
config/X11/xinitrc View File

@ -66,6 +66,9 @@ xset dpms 600 600 600
$BROWSER &
pass 2> /dev/null > /dev/null && qtpass &
redshift -x 2> /dev/null > /dev/null
redshift -r -l "$LATLONG" > /dev/null 2> /dev/null &
touch ~/.cache/dwm-restart
while [ -f /home/yigit/.cache/dwm-restart ];
do


+ 2
- 2
config/zsh/cmds View File

@ -83,13 +83,13 @@ tmate-attach() {
tmate-pair() {
if [ -z "$TMATE_API_KEY" ]; then
if [ -z "$(pass show "AppPass/tmate.com/api-key")" ]; then
echo "You need an api key."
return
fi
if [ ! -e "$TMATE_SOCKET_LOCATION" ]; then
tmate -k $TMATE_API_KEY -r "sharedProgramming" -S "$TMATE_SOCKET_LOCATION" -f "$HOME/.tmate.conf" new-session -d -s "$TMATE_PAIR_NAME"
tmate -k $(pass show "AppPass/tmate.com/api-key") -r "sharedProgramming" -S "$TMATE_SOCKET_LOCATION" -f "$HOME/.tmate.conf" new-session -d -s "$TMATE_PAIR_NAME"
tmate -S $TMATE_SOCKET_LOCATION display -p '#{tmate_ssh_ro}'
while [ -z "$url" ]; do


+ 24
- 0
local/bin/status-bar/redshift View File

@ -0,0 +1,24 @@
#!/bin/bash
source $HOME/.config.env
pid=$(pidof redshift)
case $BLOCK_BUTTON in
1)
redshift -x
if [ ! "$pid" = "" ]; then
kill -9 $pid
redshift -x
pid=""
else
redshift -r -l "$LATLONG" > /dev/null 2> /dev/null &
pid="1"
fi;;
esac
if [ "$pid" = "" ]; then
echo "^c#ebcb8b^^d^"
else
echo "^c#ebcb8b^^d^"
fi

+ 0
- 1
profile View File

@ -4,7 +4,6 @@
export QT_QPA_PLATFORMTHEME="qt5ct"
export _JAVA_AWT_WM_NONREPARENTING=1
export AWT_TOOLKIT=MToolkit
export TMATE_API_KEY=$(pass show AppPass/tmate.com/api-key)
# Environment variables
export SHELL=/bin/zsh


+ 1
- 0
suckless/dwm/rules.h View File

@ -12,6 +12,7 @@ static const Rule rules[] = {
RULE(.class = "tabbed-surf", .tags = 1 << 1)
RULE(.class = "bitwarden", .tags = 1 << 6)
RULE(.class = "QtPass", .tags = 1 << 6)
RULE(.class = "qtpass", .tags = 1 << 6)
RULE(.class = "Bitwarden", .tags = 1 << 6)
RULE(.class = "Mailspring", .tags = 1 << 7)
RULE(.class = "Thunderbird", .tags = 1 << 7)


+ 1
- 0
suckless/dwmblocks/config.h View File

@ -7,6 +7,7 @@ static Block blocks[] = {
{ "", PATH("dunst"), 120, 18},
{ "", PATH("mail"), 120, 23},
{ "", PATH("keyboard"), 120, 24},
{ "", PATH("redshift"), 120, 29},
{ "", PATH("mpc"), 240, 29},
{ "", PATH("bluetooth"), 120, 26},
{ "", PATH("mconnect"), 120, 20},


Loading…
Cancel
Save