aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOmar Magdy <omar.professional8777@gmail.com>2022-05-30 00:12:11 +0200
committerOmar Magdy <omar.professional8777@gmail.com>2022-05-30 00:12:11 +0200
commit8f5ab51dcce5554153903314c43b931ba7ebfbef (patch)
treeb80336de51d17646256f5b637046b1d97d11e749
parent491c1bf7bfeb03fab156c1464d57292409059a94 (diff)
downloaddotfiles-8f5ab51dcce5554153903314c43b931ba7ebfbef.tar.xz
dotfiles-8f5ab51dcce5554153903314c43b931ba7ebfbef.zip
Editted rc.lua and turned off the functionality that allows mouse scroll to switch beteween workspaces and also added a new script cleanup.sh and tweaked some scripts
-rw-r--r--aliases/.aliases/aliases1
-rw-r--r--awesome/.config/awesome/rc.lua10
-rwxr-xr-xscripts/.scripts/cleanup.sh11
-rwxr-xr-xscripts/.scripts/compiler_cpp.sh4
-rwxr-xr-xscripts/.scripts/cpp_ps.sh12
5 files changed, 28 insertions, 10 deletions
diff --git a/aliases/.aliases/aliases b/aliases/.aliases/aliases
index 6056b7f..19172cf 100644
--- a/aliases/.aliases/aliases
+++ b/aliases/.aliases/aliases
@@ -1,3 +1,4 @@
+alias lg="lazygit"
alias vcpp="~/.scripts/cpp_ps.sh"
alias u="cd .."
alias gs="git status"
diff --git a/awesome/.config/awesome/rc.lua b/awesome/.config/awesome/rc.lua
index b567ff8..4deae21 100644
--- a/awesome/.config/awesome/rc.lua
+++ b/awesome/.config/awesome/rc.lua
@@ -292,11 +292,11 @@ awful.screen.connect_for_each_screen(function(s) beautiful.at_screen_connect(s)
-- {{{ Mouse bindings
-root.buttons(my_table.join(
- awful.button({ }, 3, function () awful.util.mymainmenu:toggle() end),
- awful.button({ }, 4, awful.tag.viewnext),
- awful.button({ }, 5, awful.tag.viewprev)
-))
+-- root.buttons(my_table.join(
+-- awful.button({ }, 3, function () awful.util.mymainmenu:toggle() end),
+-- awful.button({ }, 4, awful.tag.viewnext),
+-- awful.button({ }, 5, awful.tag.viewprev)
+-- ))
-- }}}
diff --git a/scripts/.scripts/cleanup.sh b/scripts/.scripts/cleanup.sh
new file mode 100755
index 0000000..9299f4f
--- /dev/null
+++ b/scripts/.scripts/cleanup.sh
@@ -0,0 +1,11 @@
+#!/bin/sh
+
+files=$(fd --extension cpp | sed 's/\.\///')
+
+for file in $files
+do
+ tmp=$(echo $file | sed 's/.cpp//')
+ mkdir $tmp
+ mv $file $tmp
+done
+
diff --git a/scripts/.scripts/compiler_cpp.sh b/scripts/.scripts/compiler_cpp.sh
index 14f78a5..e2ba3c6 100755
--- a/scripts/.scripts/compiler_cpp.sh
+++ b/scripts/.scripts/compiler_cpp.sh
@@ -1,5 +1,5 @@
#!/bin/bash
NOCPP=$(echo $1 | sed "s/\.cpp//")
-g++ $1 -o $NOCPP
-./$NOCPP
+g++ $1 -o $NOCPP.o
+./$NOCPP.o
diff --git a/scripts/.scripts/cpp_ps.sh b/scripts/.scripts/cpp_ps.sh
index abdfbec..b4cd9a4 100755
--- a/scripts/.scripts/cpp_ps.sh
+++ b/scripts/.scripts/cpp_ps.sh
@@ -1,6 +1,12 @@
#!/bin/sh
-touch $1.cpp
-echo -e "#include<bits/stdc++.h>\n\nusing namespace std;\n\nint main () {\n\tios_base::sync_with_stdio(false);\n\tcin.tie(NULL);\n\tint tt;\n\twhile(tt--){\n\n\t}\n}" > $1.cpp
-nvim $1.cpp
+echo -e "Are you sure? y)es n)o"
+read input
+if [ "$input" = "y" ]; then
+ mkdir $1
+ cd $1
+ touch $1.cpp
+ echo -e "#include<bits/stdc++.h>\n\nusing namespace std;\n\nint main () {\n\tios_base::sync_with_stdio(false);\n\tcin.tie(NULL);\n\tint tt;\n\tcin >> tt;\n\twhile(tt--){\n\n\t}\n}" > $1.cpp
+ nvim $1.cpp
+fi