Skip to content

Commit

Permalink
added new config files
Browse files Browse the repository at this point in the history
  • Loading branch information
jatinkumar-me committed Oct 23, 2023
1 parent 8d1d4e8 commit ae1d784
Show file tree
Hide file tree
Showing 22 changed files with 5,032 additions and 1 deletion.
2 changes: 1 addition & 1 deletion bash/.bashrc
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ alias reloadrc='source ~/.bashrc'
alias copy='rsync -avh --progress'
alias vimconf='cd ~/.config/nvim && nvim .'
alias touchpad="~/scripts/touchpad-toggle.sh"
alias dis-key="~/scripts/toggle-internal-kb.sh"
alias keys="~/scripts/toggle-internal-kb.sh"
alias vi="vim"
alias blue="bluetoothctl connect E8:07:BF:89:A5:97"

Expand Down
72 changes: 72 additions & 0 deletions conky/.config/conky/conky.conf.backup
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
-- Conky, a system monitor https://github.com/brndnmtthws/conky
--
-- This configuration file is Lua code. You can write code in here, and it will
-- execute when Conky loads. You can use it to generate your own advanced
-- configurations.
--
-- Try this (remove the `--`):
--
-- print("Loading Conky config")
--
-- For more on Lua, see:
-- https://www.lua.org/pil/contents.html

conky.config = {
alignment = 'top_left',
background = true,
border_width = 1,
cpu_avg_samples = 2,
default_color = 'white',
default_outline_color = 'white',
default_shade_color = 'white',
double_buffer = true,
draw_borders = false,
draw_graph_borders = true,
draw_outline = false,
draw_shades = false,
extra_newline = false,
font = 'DejaVu Sans Mono:size=12',
gap_x = 60,
gap_y = 60,
minimum_height = 5,
minimum_width = 5,
net_avg_samples = 2,
no_buffers = true,
out_to_console = false,
out_to_ncurses = false,
out_to_stderr = false,
out_to_x = true,
own_window = true,
own_window_class = 'Conky',
own_window_type = 'override',
show_graph_range = false,
show_graph_scale = false,
stippled_borders = 0,
update_interval = 1.0,
uppercase = false,
use_spacer = 'none',
use_xft = true,
}

conky.text = [[
${color grey}Info:$color ${scroll 32 Conky $conky_version - $sysname $nodename $kernel $machine}
$hr
${color grey}Uptime:$color $uptime
${color grey}Frequency (in MHz):$color $freq
${color grey}Frequency (in GHz):$color $freq_g
${color grey}RAM Usage:$color $mem/$memmax - $memperc% ${membar 4}
${color grey}Swap Usage:$color $swap/$swapmax - $swapperc% ${swapbar 4}
${color grey}CPU Usage:$color $cpu% ${cpubar 4}
${color grey}Processes:$color $processes ${color grey}Running:$color $running_processes
$hr
${color grey}File systems:
/ $color${fs_used /}/${fs_size /} ${fs_bar 6 /}
${color grey}Networking:
Up:$color ${upspeed} ${color grey} - Down:$color ${downspeed}
$hr
${color grey}Name PID CPU% MEM%
${color lightgrey} ${top name 1} ${top pid 1} ${top cpu 1} ${top mem 1}
${color lightgrey} ${top name 2} ${top pid 2} ${top cpu 2} ${top mem 2}
${color lightgrey} ${top name 3} ${top pid 3} ${top cpu 3} ${top mem 3}
${color lightgrey} ${top name 4} ${top pid 4} ${top cpu 4} ${top mem 4}
]]
44 changes: 44 additions & 0 deletions conky/.conkyrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
# Conky Metro Clock - http://fav.me/d424h9d
background yes
update_interval 1

override_utf8_locale yes

double_buffer yes
no_buffers yes

text_buffer_size 2048

# Window specifications
own_window yes
own_window_class conky
own_window_type override
own_window_transparent yes
own_window_hints undecorate,below,sticky,skip_taskbar,skip_pager

border_inner_margin 0
border_outer_margin 0

alignment bl
gap_x 100
gap_y 70

# Graphics settings
draw_shades no
draw_outline no
draw_borders no
draw_graph_borders no

# Text settings
use_xft yes
xftalpha 0
text_buffer_size 2048

uppercase no

default_color FFFFFF

TEXT
${voffset 10}${font Open Sans Light:size=15} ${time %A,}${font}${voffset -13}
${voffset 10}${font Open Sans Light:size=18} ${time %B} ${time %e}${font}${voffset -19}
${voffset 5}${font Open Sans Light:size=60}${time %I:%M %P}${font}${voffset 10}
265 changes: 265 additions & 0 deletions i3/.config/i3/config
Original file line number Diff line number Diff line change
@@ -0,0 +1,265 @@
# This file has been auto-generated by i3-config-wizard(1).
# It will not be overwritten, so edit it as you like.
#
# Should you change your keyboard layout some time, delete
# this file and re-run i3-config-wizard(1).
#

# i3 config file (v4)
#
# Please see https://i3wm.org/docs/userguide.html for a complete reference!

set $mod Mod4
set $alt Mod1
# Font for window titles. Will also be used by the bar unless a different font
# is used in the bar {} block below.
font pango:FiraCode Nerd Font 8

# This font is widely installed, provides lots of unicode glyphs, right-to-left
# text rendering and scalability on retina/hidpi displays (thanks to pango).
#font pango:DejaVu Sans Mono 8

# Start XDG autostart .desktop files using dex. See also
# https://wiki.archlinux.org/index.php/XDG_Autostart
exec --no-startup-id dex --autostart --environment i3

# The combination of xss-lock, nm-applet and pactl is a popular choice, so
# they are included here as an example. Modify as you see fit.

# xss-lock grabs a logind suspend inhibit lock and will use i3lock to lock the
# screen before suspend. Use loginctl lock-session to lock your screen.
exec --no-startup-id xss-lock --transfer-sleep-lock -- i3lock --nofork

# NetworkManager is the most popular way to manage wireless networks on Linux,
# and nm-applet is a desktop environment-independent system tray GUI for it.
exec --no-startup-id nm-applet

# Use pactl to adjust volume in PulseAudio.
set $refresh_i3status killall -SIGUSR1 i3status
bindsym XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ +10% && $refresh_i3status
bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ -10% && $refresh_i3status
bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute @DEFAULT_SINK@ toggle && $refresh_i3status
bindsym XF86AudioMicMute exec --no-startup-id pactl set-source-mute @DEFAULT_SOURCE@ toggle && $refresh_i3status

# Brightness control
bindsym XF86MonBrightnessDown exec --no-startup-id brightnessctl -d amdgpu_bl1 set 5%-
bindsym XF86MonBrightnessUp exec --no-startup-id brightnessctl -d amdgpu_bl1 set +5%

# Use Mouse+$mod to drag floating windows to their wanted position
floating_modifier $mod

# move tiling windows via drag & drop by left-clicking into the title bar,
# or left-clicking anywhere into the window while holding the floating modifier.
tiling_drag modifier titlebar

# disable i3 border
default_border pixel 1
default_floating_border pixel 2

# start a terminal
for_window [instance="floating"] floating enabled
for_window [instance="floating"] resize set 480 280
for_window [instance="floating"] move right 600
for_window [instance="floating"] move down 380

bindsym $mod+Return exec --no-startup-id alacritty
bindsym $mod+Shift+Return exec --no-startup-id $HOME/.config/i3/same-directory-terminal.sh
bindsym $alt+Return exec --no-startup-id alacritty --config-file=/home/jatin/.config/alacritty/alacritty2.yml --class floating
bindsym $mod+v+Return split v && exec alacritty
bindsym $mod+b+Return split h && exec alacritty


# kill focused window
bindsym $mod+x kill

# start dmenu (a program launcher)
# bindsym $mod+d exec --no-startup-id dmenu_run
# A more modern dmenu replacement is rofi:
bindcode $mod+40 exec "rofi -modi drun,run -show drun"
# There also is i3-dmenu-desktop which only displays applications shipping a
# .desktop file. It is a wrapper around dmenu, so you need that installed.
# bindcode $mod+40 exec --no-startup-id i3-dmenu-desktop

# change focus
bindsym $mod+h focus left
bindsym $mod+j focus down
bindsym $mod+k focus up
bindsym $mod+l focus right

# alternatively, you can use the cursor keys:
bindsym $mod+Left focus left
bindsym $mod+Down focus down
bindsym $mod+Up focus up
bindsym $mod+Right focus right

# move focused window
bindsym $mod+Shift+h move left 150
bindsym $mod+Shift+j move down 80
bindsym $mod+Shift+k move up 80
bindsym $mod+Shift+l move right 150

# alternatively, you can use the cursor keys:
bindsym $mod+Shift+Left move left
bindsym $mod+Shift+Down move down
bindsym $mod+Shift+Up move up
bindsym $mod+Shift+Right move right

# split in horizontal orientation
bindsym $mod+b split h

# split in vertical orientation
bindsym $mod+v split v

# enter fullscreen mode for the focused container
bindsym $mod+f fullscreen toggle

# change container layout (stacked, tabbed, toggle split)
bindsym $mod+s layout stacking
bindsym $mod+w layout tabbed
bindsym $mod+e layout toggle split

# toggle tiling / floating
bindsym $mod+Shift+space floating toggle

# change focus between tiling / floating windows
bindsym $mod+space focus mode_toggle

# focus the parent container
bindsym $mod+a focus parent

# focus the child container
#bindsym $mod+d focus child

# Define names for default workspaces for which we configure key bindings later on.
# We use variables to avoid repeating the names in multiple places.
set $ws1 "1"
set $ws2 "2"
set $ws3 "3"
set $ws4 "4"
set $ws5 "5"
set $ws6 "6"
set $ws7 "7"
set $ws8 "8"
set $ws9 "9"
set $ws10 "10"

# switch to workspace
bindsym $mod+1 workspace number $ws1
bindsym $mod+2 workspace number $ws2
bindsym $mod+3 workspace number $ws3
bindsym $mod+4 workspace number $ws4
bindsym $mod+5 workspace number $ws5
bindsym $mod+6 workspace number $ws6
bindsym $mod+7 workspace number $ws7
bindsym $mod+8 workspace number $ws8
bindsym $mod+9 workspace number $ws9
bindsym $mod+0 workspace number $ws10

workspace_auto_back_and_forth yes

# move focused container to workspace
bindsym $mod+Shift+1 move container to workspace number $ws1
bindsym $mod+Shift+2 move container to workspace number $ws2
bindsym $mod+Shift+3 move container to workspace number $ws3
bindsym $mod+Shift+4 move container to workspace number $ws4
bindsym $mod+Shift+5 move container to workspace number $ws5
bindsym $mod+Shift+6 move container to workspace number $ws6
bindsym $mod+Shift+7 move container to workspace number $ws7
bindsym $mod+Shift+8 move container to workspace number $ws8
bindsym $mod+Shift+9 move container to workspace number $ws9
bindsym $mod+Shift+0 move container to workspace number $ws10

# reload the configuration file
bindsym $mod+Shift+c reload
# restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
bindsym $mod+Shift+r restart
# exit i3 (logs you out of your X session)
bindsym $mod+Shift+e exec "i3-nagbar -t warning -m 'You pressed the exit shortcut. Do you really want to exit i3? This will end your X session.' -B 'Yes, exit i3' 'i3-msg exit'"

# resize window (you can also use the mouse for that)

# These bindings trigger as soon as you enter the resize mode

# Pressing left will shrink the window’s width.
# Pressing right will grow the window’s width.
# Pressing up will shrink the window’s height.
# Pressing down will grow the window’s height.
bindsym $alt+h resize shrink width 10 px or 10 ppt
bindsym $alt+j resize grow height 10 px or 10 ppt
bindsym $alt+k resize shrink height 10 px or 10 ppt
bindsym $alt+l resize grow width 10 px or 10 ppt
bindsym $alt+o resize grow height 10 px or 10 ppt resize grow width 10 px or 10 ppt
bindsym $alt+p resize shrink height 10 px or 10 ppt resize shrink width 10 px or 10 ppt
# same bindings, but for the arrow keys
# bindsym Left resize shrink width 10 px or 10 ppt
# bindsym Down resize grow height 10 px or 10 ppt
# bindsym Up resize shrink height 10 px or 10 ppt
# bindsym Right resize grow width 10 px or 10 ppt

# back to normal: Enter or Escape or $mod+r
# bindsym Return mode "default"
# bindsym Escape mode "default"
# bindsym $mod+r mode "default"


# bindsym $mod+r mode "resize"

# Start i3bar to display a workspace bar (plus the system information i3status
# finds out, if available)
# bar {
# status_command polybar
# }

# Keybinding for i3lock
bindsym $mod+Shift+x exec i3lock

# Launch polybar
exec_always --no-startup-id $HOME/.config/polybar/launch.sh

# Startup Script
exec_always --no-startup-id $HOME/.config/i3/startup.sh

# Screenshot Script
bindsym Print exec --no-startup-id $HOME/.config/i3/scrot-menu.sh
bindsym $mod+u exec --no-startup-id $HOME/.config/i3/scrot-menu.sh

# Launch picom
exec_always --no-startup-id picom -f

# Setup i3 gaps
# gaps inner 5
# gaps top -5


# Alt + tab switch workspace
bindsym $alt+Tab workspace next

# Emoji
bindsym $mod+y exec rofi -modi emoji -show emoji

# class border backgr. text indicator child_border
client.focused #4c7899 #285577 #ffffff #a53dff #757575
client.focused_inactive #333333 #5f676a #ffffff #310757 #000000
client.unfocused #333333 #222222 #888888 #292d2e #222222
client.urgent #2f343a #900000 #ffffff #900000 #900000
client.placeholder #000000 #0c0c0c #ffffff #000000 #0c0c0c

# Wallpaper
exec_always --no-startup-id feh --bg-scale /media/Files/Pictures/Wallpaper/Nature/vincentiu-solomon-Z4wF0h47fy8-unsplash.jpg

# Power Menu Rofi
bindsym $alt+shift+e exec $HOME/.config/i3/power-menu.sh

# Scratchpad
# bindsym $mod+

# MPC KEYBOARD CONTROL
bindsym XF86_AudioPlay exec --no-startup-id mpc toggle
bindsym XF86_AudioStop exec --no-startup-id mpc stop
bindsym XF86_AudioPrev exec --no-startup-id mpc prev
bindsym XF86_AudioNext exec --no-startup-id mpc next

# SCRATCHPAD
bindsym $mod+Shift+minus move scratchpad
bindsym $mod+minus scratchpad show

3 changes: 3 additions & 0 deletions i3/.config/i3/power-menu.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/usr/bin/env bash

rofi -show p -modi p:'/home/jatin/.config/i3/rofi-power-menu.sh --symbols-font "Symbols Nerd Font Mono"' -theme-str 'window {width: 20em;} listview {lines: 6;}'
Loading

0 comments on commit ae1d784

Please sign in to comment.