mirror of
https://github.com/purhan/dotfiles.git
synced 2025-12-26 14:24:58 +08:00
add xrandr scripts
This commit is contained in:
parent
15609609cf
commit
360f6f1127
17 changed files with 58 additions and 28 deletions
|
|
@ -14,6 +14,13 @@ end, {
|
|||
end, {
|
||||
description = 'close',
|
||||
group = 'client'
|
||||
}) , awful.key({modkey, 'Shift'}, 'f', function(c)
|
||||
c.sticky = not c.sticky
|
||||
c.ontop = not c.ontop
|
||||
c:raise()
|
||||
end, {
|
||||
description = 'convert to sticky window',
|
||||
group = 'client'
|
||||
}), awful.key({modkey, 'Shift'}, 'c', function(c)
|
||||
c:kill()
|
||||
end, {
|
||||
|
|
|
|||
|
|
@ -16,7 +16,7 @@ local BottomBar = function(s, offset)
|
|||
x = s.geometry.x,
|
||||
y = s.geometry.height - panel_height,
|
||||
stretch = false,
|
||||
bg = beautiful.primary.hue_100,
|
||||
bg = "00000000",
|
||||
fg = beautiful.fg_normal,
|
||||
})
|
||||
|
||||
|
|
|
|||
|
|
@ -92,9 +92,9 @@ local TopBar = function(s, offset)
|
|||
-- Internet Speed
|
||||
wibox.widget{
|
||||
create_icon('', beautiful.accent.hue_200),
|
||||
net_sent.widget,
|
||||
create_icon('', beautiful.accent.hue_300),
|
||||
net_recieved.widget,
|
||||
create_icon('', beautiful.accent.hue_300),
|
||||
net_sent.widget,
|
||||
spacing = dpi(4),
|
||||
layout = wibox.layout.fixed.horizontal
|
||||
},
|
||||
|
|
|
|||
|
|
@ -58,7 +58,6 @@ _G.client.connect_signal('manage', function(c)
|
|||
c.height = (c.screen.geometry.height / 5) * 3
|
||||
c.y = c.screen.geometry.height - c.height - beautiful.border_width - dpi(16)
|
||||
c.floating = true
|
||||
c.skip_taskbar = true
|
||||
c.skip_decoration = true
|
||||
c.ontop = true
|
||||
c.floating = true
|
||||
|
|
|
|||
|
|
@ -6,8 +6,8 @@ local dpi = require('beautiful').xresources.apply_dpi
|
|||
local theme = {}
|
||||
|
||||
-- Color Scheme
|
||||
theme.primary = color_schemes.gruvbox.primary
|
||||
theme.accent = color_schemes.gruvbox.accent
|
||||
theme.primary = color_schemes.gruvbox_material.primary
|
||||
theme.accent = color_schemes.gruvbox_material.accent
|
||||
|
||||
local awesome_overrides = function(theme)
|
||||
theme.dir = os.getenv('HOME') .. '/.config/awesome/theme'
|
||||
|
|
@ -24,11 +24,7 @@ local awesome_overrides = function(theme)
|
|||
-- Taglist
|
||||
theme.taglist_font = theme.font
|
||||
theme.taglist_bg_empty = theme.primary.hue_100
|
||||
theme.taglist_bg_occupied = 'linear:0,0:0,' .. dpi(32) .. ':0,' ..
|
||||
theme.primary.hue_200 .. ':0.1,' ..
|
||||
theme.primary.hue_200 .. ':0.1,' ..
|
||||
theme.primary.hue_100 .. ':0.9,' ..
|
||||
theme.primary.hue_100
|
||||
theme.taglist_bg_occupied = theme.primary.hue_200
|
||||
theme.taglist_bg_urgent = 'linear:0,0:0,' .. dpi(48) .. ':0,' ..
|
||||
theme.accent.hue_700 .. ':0.07,' ..
|
||||
theme.accent.hue_700 .. ':0.07,' ..
|
||||
|
|
|
|||
|
|
@ -1,15 +1,5 @@
|
|||
# https://draculatheme.com/kitty
|
||||
#
|
||||
# Installation instructions:
|
||||
#
|
||||
# cp dracula.conf ~/.config/kitty/
|
||||
# echo "include dracula.conf" >> ~/.config/kitty/kitty.conf
|
||||
#
|
||||
# Then reload kitty for the config to take affect.
|
||||
# Alternatively copy paste below directly into kitty.conf
|
||||
|
||||
foreground #f8f8f2
|
||||
background #282828
|
||||
background #282a36
|
||||
selection_foreground #ffffff
|
||||
selection_background #44475a
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
include gruvbox.conf
|
||||
include gruvbox-material.conf
|
||||
|
||||
background_opacity 0.9
|
||||
font_family FiraCode Nerd Font Mono
|
||||
|
|
|
|||
|
|
@ -68,6 +68,7 @@ Plug 'severin-lemaignan/vim-minimap'
|
|||
Plug 'tpope/vim-surround'
|
||||
Plug 'morhetz/gruvbox'
|
||||
Plug 'sainnhe/gruvbox-material' " I switch when I feel like it :P
|
||||
Plug 'dracula/vim'
|
||||
Plug 'mg979/vim-visual-multi'
|
||||
Plug 'ntpeters/vim-better-whitespace'
|
||||
Plug 'yuttie/comfortable-motion.vim'
|
||||
|
|
|
|||
27
src/.gitconfig
Normal file
27
src/.gitconfig
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
[user]
|
||||
email = purhan01@gmail.com
|
||||
name = purhan
|
||||
[color]
|
||||
ui = true
|
||||
[color "diff-highlight"]
|
||||
oldHighlight = red bold 52
|
||||
newNormal = green bold
|
||||
newHighlight = green bold 22
|
||||
oldNormal = red bold
|
||||
[color "diff"]
|
||||
meta = 11 bold
|
||||
frag = magenta bold
|
||||
commit = yellow bold
|
||||
old = red bold
|
||||
new = green bold
|
||||
whitespace = red reverse
|
||||
[diff-so-fancy]
|
||||
changeHunkIndicators = false
|
||||
stripLeadingSymbols = false
|
||||
markEmptyLines = false
|
||||
rulerWidth =
|
||||
useUnicodeRuler = false
|
||||
; install gh-cli and login with `gh auth login`
|
||||
[credential "https://github.com"]
|
||||
helper = !gh auth git-credential
|
||||
|
||||
|
|
@ -19,6 +19,7 @@ fi
|
|||
# include personal scripts/bin
|
||||
if [ -d "$HOME/scripts/bin" ] ; then
|
||||
PATH="$HOME/scripts/bin:$PATH"
|
||||
PATH="$HOME/scripts/monitor_setups:$PATH"
|
||||
fi
|
||||
|
||||
source "$HOME/.cargo/env"
|
||||
|
|
|
|||
|
|
@ -11,3 +11,9 @@ xset r rate 340 50
|
|||
xinput set-prop "ETPS/2 Elantech Touchpad" "libinput Natural Scrolling Enabled" 1
|
||||
xinput set-prop "ETPS/2 Elantech Touchpad" "libinput Tapping Enabled" 1
|
||||
|
||||
# Turn off laptop screen when monitor connected
|
||||
hdmi_connected=$(xrandr | grep ' connected' | grep 'HDMI' | wc -l)
|
||||
if [ "$hdmi_connected" -eq 1 ]; then
|
||||
eval "~/scripts/monitor_setups/monitor_only"
|
||||
fi
|
||||
|
||||
|
|
|
|||
|
|
@ -24,7 +24,8 @@ apt = firefox \
|
|||
kitty \
|
||||
zsh \
|
||||
stow \
|
||||
arandr
|
||||
arandr \
|
||||
gh
|
||||
|
||||
# Packages to be installed as snaps
|
||||
snap = discord
|
||||
|
|
|
|||
|
|
@ -1,2 +0,0 @@
|
|||
#!/bin/sh
|
||||
xrandr --output eDP1 --mode 1280x720 --pos 0x0 --rotate normal --output HDMI1 --primary --mode 1920x1080 --pos 1280x0 --rotate normal --output VIRTUAL1 --off
|
||||
|
|
@ -1,2 +0,0 @@
|
|||
#!/bin/sh
|
||||
xrandr --output eDP1 --same-as HDMI1
|
||||
2
src/scripts/monitor_setups/laptop_left_primary_monitor_right
Executable file
2
src/scripts/monitor_setups/laptop_left_primary_monitor_right
Executable file
|
|
@ -0,0 +1,2 @@
|
|||
#!/bin/sh
|
||||
xrandr --output eDP1 --mode 1366x768 --pos 0x0 --rotate normal --output HDMI1 --primary --mode 1920x1080 --pos 1366x0 --rotate normal --output VIRTUAL1 --off
|
||||
2
src/scripts/monitor_setups/monitor_only
Executable file
2
src/scripts/monitor_setups/monitor_only
Executable file
|
|
@ -0,0 +1,2 @@
|
|||
#!/bin/sh
|
||||
xrandr --output eDP1 --off --output HDMI1 --primary --mode 1920x1080 --pos 0x0 --rotate normal --output VIRTUAL1 --off
|
||||
2
src/scripts/monitor_setups/primary_laptop_left_monitor_right
Executable file
2
src/scripts/monitor_setups/primary_laptop_left_monitor_right
Executable file
|
|
@ -0,0 +1,2 @@
|
|||
#!/bin/sh
|
||||
xrandr --output eDP1 --primary --mode 1366x768 --pos 0x0 --rotate normal --output HDMI1 --mode 1920x1080 --pos 1366x0 --rotate normal --output VIRTUAL1 --off
|
||||
Loading…
Add table
Add a link
Reference in a new issue